/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;700&display=swap');

/* Variables de colores */
:root {
  --primary-color: #1A1A2E;
  --secondary-color: #16213E;
  --accent-color-1: #0F3460;
  --accent-color-2: #E94560;
  --text-color: #F0F0F0;
  --text-color-secondary: #B8B8B8;
  --background-color: #0F0F0F;
  --background-color-secondary: #1A1A1A;
  --success-color: #4CAF50;
}

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
  position: relative;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color-2);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-color-secondary);
}

a {
  color: var(--accent-color-2);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--text-color);
}

button, .btn {
  background-color: var(--accent-color-2);
  color: var(--text-color);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

button:hover, .btn:hover {
  background-color: #d83a54;
  transform: translateY(-2px);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

section {
  padding: 3rem 0;
}

/* Estilos de navegación */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
}

.navbar-brand h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--accent-color-2);
}

.nav-menu {
  display: none;
  list-style: none;
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  padding: 1rem 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item {
  margin: 0.5rem 0;
  text-align: center;
}

.nav-link {
  color: var(--text-color);
  font-weight: 400;
  padding: 0.5rem 1rem;
  display: inline-block;
  width: 100%;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-color-2);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 50%;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  overflow: visible;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding-top: 90px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  object-fit: cover;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, rgba(10, 10, 10, 0.9), rgba(26, 26, 46, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

.btn-primary {
  background-color: var(--accent-color-2);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--accent-color-2);
}

.btn-secondary:hover {
  background-color: var(--accent-color-2);
}

/* Zen Card Styles */
.zen-card {
  background-color: var(--background-color-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.zen-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--accent-color-2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.zen-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.zen-card:hover::before {
  transform: scaleY(1);
}

.zen-card h3 {
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.zen-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color-2);
}

.zen-card p {
  font-size: 0.95rem;
}

.zen-card-icon {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--accent-color-2);
}

/* Services Section */
.services {
  background-color: var(--primary-color);
  padding: 4rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* About Section */
.about {
  padding: 4rem 0;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-text {
  margin-bottom: 2rem;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  height: 250px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Features Section */
.features {
  background-color: var(--background-color-secondary);
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 8px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-color-2);
  margin-bottom: 1rem;
}

/* Contact Form */
.contact {
  padding: 4rem 0;
}

.contact-form {
  background-color: var(--primary-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #2a2a40;
  border-radius: 4px;
  background-color: #1e1e30;
  color: var(--text-color);
  font-family: 'Raleway', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color-2);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--text-color-secondary);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--accent-color-2);
}

.footer-links h4 {
  color: var(--text-color);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color-2);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-color-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color-2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #2a2a40;
  margin-top: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-color-2);
  transform: translateY(-3px);
}

.social-links i {
  color: var(--text-color);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-consent.show {
  display: block;
  animation: slideUp 0.5s ease forwards;
}

.cookie-text {
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-settings-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-content {
  background-color: var(--background-color-secondary);
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cookie-settings-header h3 {
  margin: 0;
}

.cookie-close {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.cookie-category {
  margin-bottom: 1.5rem;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-category-description {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .cookie-toggle-slider {
  background-color: var(--accent-color-2);
}

input:checked + .cookie-toggle-slider:before {
  transform: translateX(26px);
}

.cookie-settings-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Privacy Policy, Terms, Cookie Policy Pages */
.policy-content {
  padding: 2rem;
  background-color: var(--background-color-secondary);
  border-radius: 8px;
  margin-top: 90px;
}

.policy-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content p, .policy-content ul, .policy-content ol {
  margin-bottom: 1rem;
}

.policy-content ul, .policy-content ol {
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-content .date-updated {
  margin-top: 2rem;
  font-style: italic;
  color: var(--text-color-secondary);
}

/* Thanks Page */
.thanks-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.thanks-icon {
  font-size: 5rem;
  color: var(--success-color);
  margin-bottom: 2rem;
}

.thanks-section h1 {
  margin-bottom: 1.5rem;
}

.thanks-section p {
  max-width: 600px;
  margin-bottom: 2rem;
}

.back-home {
  margin-top: 2rem;
}

/* International Telephone Input */
.iti {
  width: 100%;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Media Queries */
@media (min-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: row;
  }
  
  .services-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }
  
  .nav-item {
    margin: 0 0.5rem;
  }
  
  .nav-link {
    width: auto;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .about-content {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  
  .about-text {
    flex: 1;
    margin-bottom: 0;
  }
  
  .about-image {
    flex: 1;
    height: 350px;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .container {
    width: 85%;
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  .services-grid,
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 80%;
  }
  
  .services-grid,
  .features-grid {
    gap: 2rem;
  }
}

/* Page-specific styles */
.diversificacion-page,
.riesgos-page,
.contactos-page {
  padding-top: 90px;
}

.page-header {
  background-color: var(--primary-color);
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.page-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent-color-2);
}

.page-content {
  padding: 2rem 0;
}