/* =========================================================
   CONECTEMOS CHILE - DISEÑO VANGUARDISTA Y DISRUPTIVO 2025
   ========================================================= */

:root {
  /* Paleta de colores ajustada para accesibilidad */
  --primary: #4285F4;      /* Azul profesional */
  --secondary: #FFA726;    /* Naranja-ámbar para elementos secundarios */
  --accent: #FFA726;       /* Mismo tono naranja para acentos */
  --light: #FFFFFF;        /* Blanco puro */
  --dark: #2D3142;         /* Gris azulado oscuro para texto */
  --gray-100: #F8F9FB;     /* Gris muy claro con toque de azul */
  --gray-200: #EDF1F7;     /* Gris claro con toque de azul */
  --gray-300: #DEE2E9;     /* Gris medio claro */
  --gray-800: #3E4555;     /* Gris azulado oscuro */
  --text-dark: #1F2937;    /* Negro suave para textos de nombres y descripciones */
  
  /* Colores mejorados para botones con mejor contraste */
  --agenda-button: #E09600;            /* Naranja más oscuro para contraste */
  --agenda-button-hover: #D87A00;      /* Naranja aún más oscuro para hover */
  --agenda-button-shadow: rgba(224, 150, 0, 0.3); /* Sombra para botones de agenda */
  
  /* Colores para WhatsApp (no flotante) */
  --whatsapp-soft: #25D366;   /* Verde WhatsApp */
  --whatsapp-soft-hover: #1DA851; /* Hover para botones whatsapp no flotantes */
  
  /* Colores para secciones alternativas */
  --alt-bg-1: #F0F5FD;     /* Fondo azul muy suave */
  --alt-bg-2: #FFF8EF;     /* Fondo melocotón muy suave */
  
  /* Propiedades de diseño avanzadas */
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 8px 32px rgba(45, 49, 66, 0.08);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-blur: blur(10px);
  
  /* Tipografía contemporánea */
  --font-main: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
  --font-secondary: 'Inter', 'Open Sans', sans-serif;
  
  /* Espaciado y ritmo vertical */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* Bordes y sombras */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 999px;
  
  --shadow-sm: 0 2px 10px rgba(45, 49, 66, 0.05);
  --shadow-md: 0 8px 24px rgba(45, 49, 66, 0.08);
  --shadow-lg: 0 16px 40px rgba(45, 49, 66, 0.1);
  --shadow-accent: 0 8px 24px rgba(224, 150, 0, 0.15);
  --shadow-primary: 0 8px 24px rgba(66, 133, 244, 0.15);
  
  /* Transiciones */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Z-index layers */
  --z-base: 1;
  --z-menu: 100;
  --z-header: 1000;
  --z-modal: 2000;
  --z-floating: 3000;
  --z-top: 9999;
  
  /* Sección padding */
  --section-spacing: clamp(4rem, 8vw, 8rem);
}

/* ================= RESET Y ESTILOS BASE ================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-secondary);
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #3264C8; /* Más oscuro que --primary para contraste */
  text-decoration: underline; /* Mejor para accesibilidad */
  transition: color var(--transition-normal);
}

a:hover {
  color: #1a56db; /* Aún más oscuro al hover para contraste */
}

/* No subrayar enlaces en navegación, botones y ciertos elementos UI */
.nav-menu a,
.btn,
.logo a,
.footer-logo a,
.social-link,
.floating-buttons a,
.header-cta a {
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-main);
}

ul {
  list-style: none;
}

/* ================= LAYOUT Y CONTENEDORES ================= */

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
  position: relative;
}

.section-padding {
  padding-block: var(--section-spacing);
}

/* Decoración de sección con formas */
.section-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.decoration-circle {
  position: absolute;
  top: 10%;
  right: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(66, 133, 244, 0.05),
    rgba(255, 167, 38, 0.05)
  );
  z-index: -1;
}

.decoration-dots {
  position: absolute;
  bottom: 10%;
  left: -100px;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(
    rgba(66, 133, 244, 0.2) 1px,
    transparent 1px
  );
  background-size: 16px 16px;
  z-index: -1;
}

/* ================= TIPOGRAFÍA ================= */

h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--dark);
  background: linear-gradient(135deg, var(--dark), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
}

/* Mejorar contraste para texto en tarjetas */
.disorder-item h3,
.reason-card h3,
.about-card h3,
.professional-info h3,
.info-card h3,
.contact-item h3,
.price-name {
  color: #1F2937 !important; /* Color oscuro para mejor contraste */
}

p {
  margin-bottom: var(--space-md);
  font-size: 1rem;
  color: #2D3142; /* Color oscuro para mejor contraste */
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  position: relative;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-sm);
  color: var(--primary);
  font-weight: 700;
}

.section-title span {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: -0.1em;
  right: -0.1em;
  height: 0.3em;
  background-color: var(--secondary);
  opacity: 0.15;
  z-index: -1;
  border-radius: var(--radius-xs);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-800);
  max-width: 80%;
  margin-inline: auto;
  font-weight: 400;
}

/* ================= BOTONES Y ACCIONES ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.75em;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: var(--font-main);
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
  min-width: 120px;
}

.btn-primary {
  background-color: var(--agenda-button);
  color: #000000; /* Negro para mejor contraste */
  font-weight: 700;
}

.btn-primary:hover, 
.btn-primary:focus {
  background-color: var(--agenda-button-hover); /* Un poco más oscuro */
  box-shadow: var(--shadow-accent);
  transform: translateY(-3px);
  color: #000000; /* Mantiene el texto oscuro para contraste */
}

.btn-secondary {
  background-color: rgba(66, 133, 244, 0.2); /* Más opaco para contraste */
  color: #1a56db; /* Azul más oscuro para contraste */
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: rgba(66, 133, 244, 0.3); /* Aún más opaco al hover */
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 0.85em 2em;
}

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

/* ===== BOTONES DE WHATSAPP (NO FLOTANTES) ===== */
/* Estos son los botones de WhatsApp dentro de la página */
.btn-whatsapp,
a[href*="whatsapp"],
a[href*="wa.me"] {
  background-color: #1AA251 !important; /* Verde más oscuro para mejor contraste */
  color: white !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(26, 162, 81, 0.2) !important;
}

.btn-whatsapp:hover,
a[href*="whatsapp"]:hover,
a[href*="wa.me"]:hover {
  background-color: #158F43 !important; /* Aún más oscuro para mejor contraste */
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(21, 143, 67, 0.3) !important;
}

/* ===== BOTÓN DE AGENDA TU PRIMERA SESIÓN ===== */
/* Este es el estilo específico para cualquier botón relacionado con agendar */
a[href*="agenda"]:not([href*="whatsapp"]):not([href*="wa.me"]),
[class*="agenda"]:not([class*="whatsapp"]),
.header a[href*="agendar"],
.header-cta a,
.professional-card a[href*="agenda"]:not([href*="whatsapp"]),
.professional-card button[class*="agenda"]:not([class*="whatsapp"]),
.professional-info a[href*="agenda"]:not([href*="whatsapp"]),
.price-card a[href*="agenda"]:not([href*="whatsapp"]),
.price-card-inner a[href*="agenda"]:not([href*="whatsapp"]),
a[href*="angel"]:not([href*="whatsapp"]),
button[class*="angel"]:not([class*="whatsapp"]),
[class*="angel"]:not([class*="whatsapp"]),
[id*="angel"]:not([id*="whatsapp"]) {
  background-color: var(--agenda-button) !important;
  color: #000000 !important; /* Negro para mejor contraste */
  font-weight: 700;
  box-shadow: 0 4px 15px var(--agenda-button-shadow) !important;
  transition: all var(--transition-bounce);
}

a[href*="agenda"]:not([href*="whatsapp"]):not([href*="wa.me"]):hover,
[class*="agenda"]:not([class*="whatsapp"]):hover,
.header a[href*="agendar"]:hover,
.header-cta a:hover,
.professional-card a[href*="agenda"]:not([href*="whatsapp"]):hover,
.professional-card button[class*="agenda"]:not([class*="whatsapp"]):hover,
.professional-info a[href*="agenda"]:not([href*="whatsapp"]):hover,
.price-card a[href*="agenda"]:not([href*="whatsapp"]):hover,
.price-card-inner a[href*="agenda"]:not([href*="whatsapp"]):hover,
a[href*="angel"]:not([href*="whatsapp"]):hover,
button[class*="angel"]:not([class*="whatsapp"]):hover,
[class*="angel"]:not([class*="whatsapp"]):hover,
[id*="angel"]:not([id*="whatsapp"]):hover {
  background-color: var(--agenda-button-hover) !important;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(224, 150, 0, 0.4) !important;
  color: #000000 !important; /* Mantiene el texto oscuro para contraste */
}

/* Tratamiento específico para botones en tarjetas de profesionales */
.professional-card .btn:not(.btn-whatsapp),
.professional-card a.btn:not(.btn-whatsapp),
.professional-card button.btn:not(.btn-whatsapp),
.professional-info .btn:not(.btn-whatsapp),
.professional-info a.btn:not(.btn-whatsapp) {
  background-color: var(--agenda-button) !important;
  color: #000000 !important; /* Negro para mejor contraste */
}

.professional-card .btn:not(.btn-whatsapp):hover,
.professional-card a.btn:not(.btn-whatsapp):hover,
.professional-card button.btn:not(.btn-whatsapp):hover,
.professional-info .btn:not(.btn-whatsapp):hover,
.professional-info a.btn:not(.btn-whatsapp):hover {
  background-color: var(--agenda-button-hover) !important;
}

/* Tratamiento específico para botones en tarjetas de precios */
.price-card .btn:not(.btn-whatsapp),
.price-card a.btn:not(.btn-whatsapp),
.price-card button.btn:not(.btn-whatsapp),
.price-card-inner .btn:not(.btn-whatsapp),
.price-card-inner a.btn:not(.btn-whatsapp),
.price-card-inner button.btn:not(.btn-whatsapp) {
  background-color: var(--agenda-button) !important;
  color: #000000 !important; /* Negro para mejor contraste */
  border-color: var(--agenda-button) !important;
}

.price-card .btn:not(.btn-whatsapp):hover,
.price-card a.btn:not(.btn-whatsapp):hover,
.price-card button.btn:not(.btn-whatsapp):hover,
.price-card-inner .btn:not(.btn-whatsapp):hover,
.price-card-inner a.btn:not(.btn-whatsapp):hover,
.price-card-inner button.btn:not(.btn-whatsapp):hover {
  background-color: var(--agenda-button-hover) !important;
  border-color: var(--agenda-button-hover) !important;
}

/* Badges destacados */
.featured-badge {
  background-color: var(--agenda-button) !important;
  color: #000000 !important; /* Negro para mejor contraste */
}

/* Efecto de ripple para botones */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s linear;
  z-index: 0;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ================= HEADER Y NAVEGACIÓN ================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  z-index: var(--z-header);
  transition: all var(--transition-normal);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
}

.header.scrolled {
  padding: 0.75rem 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.header.header-hidden {
  transform: translateY(-100%);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: var(--z-menu);
}

.logo img {
  height: 40px;
  transition: transform var(--transition-normal);
}

.logo:hover img {
  transform: rotate(5deg) scale(1.05);
}

.logo h1 {
  font-size: 1.2rem !important; /* Reducido de 1.4rem */
  margin: 0;
  background: linear-gradient(135deg, #4285F4, #0F2C78); /* Gradiente azul con mejor contraste */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* Menú de navegación */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.5rem) !important; /* Reducido el espacio entre items */
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
  padding: 0.5rem 0;
  transition: color var(--transition-normal);
}

.nav-link span {
  position: relative;
  z-index: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

/* Botón de menú móvil */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 10px;
  z-index: var(--z-menu);
  position: relative;
}

.toggle-icon {
  display: block;
  position: relative;
  width: 28px;
  height: 2px;
  background-color: var(--dark);
  transition: all var(--transition-normal);
}

.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  transition: all var(--transition-normal);
}

.toggle-icon::before {
  top: -8px;
}

.toggle-icon::after {
  bottom: -8px;
}

.mobile-toggle.active .toggle-icon {
  background-color: transparent;
}

.mobile-toggle.active .toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle.active .toggle-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Ajuste del contenedor del header */
.container.header-content {
  padding-inline: clamp(0.75rem, 3vw, 1.5rem) !important; /* Reducido el padding lateral */
}

/* Ajuste del botón de Agendar Ahora en el header */
.header-cta .btn {
  padding: 0.65em 1.25em !important; /* Reducido el padding */
  font-size: 0.9rem !important; /* Reducido el tamaño de fuente */
  min-width: 100px !important; /* Reducido el ancho mínimo */
}

/* ================= HERO SECTION ================= */

.hero {
  min-height: 100vh;
  padding-top: 6rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Estilos específicos para el botón de "Agenda tu primera sesión" en el hero */
.hero .btn-primary,
.hero a[href*="agenda"]:not([href*="whatsapp"]):not([href*="wa.me"]),
.hero button[class*="agenda"]:not([class*="whatsapp"]) {
  background-color: var(--agenda-button) !important;
  color: #000000 !important; /* Negro para mejor contraste */
  font-weight: 700;
  box-shadow: 0 4px 15px var(--agenda-button-shadow) !important;
  min-width: 220px;
  font-size: 1.1rem;
  padding: 0.85em 2em;
}

.hero .btn-primary:hover,
.hero a[href*="agenda"]:not([href*="whatsapp"]):not([href*="wa.me"]):hover,
.hero button[class*="agenda"]:not([class*="whatsapp"]):hover {
  background-color: var(--agenda-button-hover) !important;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(224, 150, 0, 0.4) !important;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-shape {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity: 0.1;
}

.shape-1 {
  top: -15%;
  left: -10%;
  width: 45%;
  height: 60%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  animation: morphing 15s ease-in-out infinite alternate;
}

.shape-2 {
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  animation: morphing 20s ease-in-out infinite alternate-reverse;
}

.shape-3 {
  top: 30%;
  right: 20%;
  width: 25%;
  height: 35%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  animation: morphing 25s ease-in-out infinite alternate;
}

@keyframes morphing {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
  }
  25% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 30% 70% 70% 30% / 50% 60% 30% 60%;
  }
  75% {
    border-radius: 50% 50% 20% 80% / 60% 30% 70% 40%;
  }
  100% {
    border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%;
  }
}

.hero-content {
  max-width: 750px;
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: -20px;
  width: 60px;
  height: 5px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  border-radius: var(--radius-full);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 2.5rem;
  color: var(--gray-800);
  max-width: 90%;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 0.5rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.hero-feature i {
  color: var(--primary);
}

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-800);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
}

.scroll-icon {
  width: 24px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.scroll-icon::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background-color: currentColor;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
  }
}

/* ================= ABOUT SECTION ================= */

.about {
  position: relative;
  background-color: var(--alt-bg-1);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.image-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  z-index: -1;
}

.decoration-shape {
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  opacity: 0.1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-card {
  background-color: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(66, 133, 244, 0.2);
}

.about-card h3 {
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--text-dark) !important; /* Color negro para títulos */
}

.about-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: var(--radius-full);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.value-item i {
  font-size: 1.5rem;
  color: var(--primary);
  background-color: rgba(66, 133, 244, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.value-item:hover i {
  background-color: var(--primary);
  color: white;
  transform: translateY(-5px);
}

/* ================= PROFESSIONALS SECTION ================= */

.professionals {
  background-color: var(--light);
  position: relative;
}

.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.professional-card {
  height: 100%;
  perspective: 1000px;
}

.professional-card-inner {
  position: relative;
  background-color: var(--light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  transform-style: preserve-3d;
}

.professional-image {
  height: 320px;
  position: relative;
  overflow: hidden;
}

.professional-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}

.professional-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.5)
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.professional-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.professional-info h3 {
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
  color: var(--text-dark) !important; /* Color negro para el nombre */
}

.professional-info h4 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.professional-details {
  margin-bottom: 1.5rem;
}

.professional-details p {
  color: var(--text-dark); /* Color negro para descripciones */
}

.professional-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.professional-specialties span {
  padding: 0.35rem 0.75rem;
  background-color: rgba(66, 133, 244, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.professional-card:hover .professional-card-inner {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.professional-card:hover .professional-image img {
  transform: scale(1.05);
}

.professional-card:hover .professional-overlay {
  opacity: 1;
}

/* ================= WHY US SECTION ================= */

.why-us {
  background-color: var(--alt-bg-2);
  position: relative;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.reason-card {
  background-color: var(--light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.reason-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(66, 133, 244, 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.reason-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(66, 133, 244, 0.2);
}

.reason-card:hover .reason-icon {
  background-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

.reason-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark) !important;
  font-size: 1.3rem;
}

/* ================= PRICES SECTION ================= */

.prices {
  background-color: var(--light);
  position: relative;
}

.pricing-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.price-card {
  perspective: 1000px;
  height: 100%;
}

.price-card-inner {
  position: relative;
  background-color: var(--light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  transform-style: preserve-3d;
}

/* Solución para evitar que se opaque la tarjeta central al hacer hover */
.price-card.featured .price-card-inner {
  border-color: var(--agenda-button);
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.price-card.featured:hover .price-card-inner::before {
  content: none; /* Evita que se cree una capa que opaque el contenido */
}

.price-card:hover .price-card-inner::before {
  content: none; /* Evita que se cree una capa que opaque el contenido en cualquier tarjeta */
}

.featured-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background-color: var(--agenda-button) !important;
  color: #000000 !important; /* Negro para mejor contraste */
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.price-name {
  color: var(--text-dark) !important;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.price-cycle {
  color: var(--gray-800);
  opacity: 0.8;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.price-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.price-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  color: var(--gray-800);
  position: relative;
  padding-left: 1.5rem;
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.price-card:hover .price-card-inner {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(66, 133, 244, 0.2);
  /* Asegurarse de que el contenido permanezca visible */
  background-color: var(--light);
}

.price-card.featured:hover .price-card-inner {
  transform: translateY(-15px);
  box-shadow: var(--shadow-accent);
  /* Asegurarse de que el contenido permanezca visible */
  background-color: var(--light);
}

.price-info {
  text-align: center;
  color: var(--gray-800);
  font-size: 0.95rem;
  margin-top: 2rem;
}

.price-info i {
  color: var(--primary);
  margin-right: 0.5rem;
}

/* ================= DISORDERS SECTION ================= */

.disorders {
  background-color: var(--alt-bg-1);
  position: relative;
}

.disorders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.disorder-item {
  background-color: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.disorder-icon {
  font-size: 1.5rem;
  color: var(--primary);
  background-color: rgba(66, 133, 244, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  transition: all var(--transition-normal);
}

.disorder-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  opacity: 0.2;
  transition: all var(--transition-normal);
}

.disorder-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(66, 133, 244, 0.2);
}

.disorder-item:hover::before {
  width: 100%;
  opacity: 0.05;
}

.disorder-item:hover .disorder-icon {
  background-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

.disorder-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--text-dark) !important;
}

.disorder-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-dark); /* Color negro para descripciones */
}

/* ================= TESTIMONIALS SECTION ================= */

.testimonials {
  background-color: var(--light);
  position: relative;
}

.google-reviews-widget {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  margin-bottom: 3rem;
}

.google-reviews-widget:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.view-all-reviews {
  text-align: center;
}

/* ================= BOOKING SECTION ================= */

.booking {
  background-color: var(--alt-bg-2);
  position: relative;
}

.booking-container {
  margin-bottom: 3rem;
}

.booking-container iframe {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
}

.booking-container iframe:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.booking-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.info-card {
  background-color: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(66, 133, 244, 0.2);
}

.info-icon {
  font-size: 1.5rem;
  color: var(--primary);
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(66, 133, 244, 0.1);
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.info-card:hover .info-icon {
  background-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

.info-text h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark) !important;
  font-size: 1.2rem;
}

.info-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-dark); /* Color negro para descripciones */
}

/* ================= CONTACT SECTION ================= */

.contact {
  background-color: var(--alt-bg-1);
  position: relative;
}

.map-container {
  position: relative;
  height: 450px;
  margin-bottom: 3rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.map-container:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-overlay {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1;
}

.map-info {
  background-color: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 300px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.map-info:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-accent);
}

.map-info h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--text-dark) !important;
}

.map-info h3 i {
  color: var(--accent);
}

.map-info p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-dark); /* Color negro para descripciones */
}

/* Botón "Cómo llegar" con color igual al botón "Agendar Ahora" */
.map-info .btn.btn-primary,
.map-info a[href*="maps"].btn {
    background-color: var(--agenda-button) !important;
    color: #000000 !important; /* Negro para mejor contraste */
    font-weight: 700 !important;
    box-shadow: 0 4px 15px var(--agenda-button-shadow) !important;
    border-color: var(--agenda-button) !important;
}

.map-info .btn.btn-primary:hover,
.map-info a[href*="maps"].btn:hover {
    background-color: var(--agenda-button-hover) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(224, 150, 0, 0.4) !important;
    color: #000000 !important; /* Mantiene el texto oscuro para contraste */
    border-color: var(--agenda-button-hover) !important;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition-normal);
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-icon {
  font-size: 1.2rem;
  color: var(--primary);
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(66, 133, 244, 0.1);
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.contact-item:hover .contact-icon {
  background-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

.contact-text h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark) !important;
  font-size: 1.1rem;
}

.contact-text p, 
.contact-text a {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-dark); /* Color negro para descripciones */
  transition: color var(--transition-normal);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(66, 133, 244, 0.1);
  color: var(--primary);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background-color: var(--primary);
  color: white;
  transform: scale(1.1) rotate(10deg);
}

.contact-form {
  background-color: var(--light);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
}

.contact-form:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-secondary);
  transition: all var(--transition-normal);
  background-color: var(--light);
  position: relative;
  z-index: 1;
}

.form-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transition: width var(--transition-normal);
  z-index: 0;
}

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

.form-control:focus + .form-highlight {
  width: 100%;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.quick-contact {
  margin-top: 2rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
}

.quick-contact h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--text-dark) !important;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* ================= FOOTER ================= */

.footer {
  background-color: var(--dark);
  color: white;
  padding: 5rem 0 2rem;
  position: relative;
  margin-top: 3rem;
}

.footer-wave {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.footer-wave svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.footer-wave svg path {
  fill: var(--primary);
  fill-opacity: 0.05;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-logo img {
  height: 35px;
}

.footer-logo h3 {
  color: white;
  margin: 0;
  font-size: 1.3rem;
}

.footer-about p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: var(--radius-full);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 0;
  text-decoration: none;
}

.footer-links a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-normal);
  position: absolute;
  left: -20px;
}

.footer-links a:hover {
  color: white;
  padding-left: 20px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  color: var(--secondary);
  min-width: 20px;
  display: flex;
  justify-content: center;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.footer-social a:hover {
  background-color: var(--primary);
  color: white;
  transform: scale(1.1) rotate(10deg);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.developer-credit {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.developer-credit a {
  color: var(--accent);
  transition: color var(--transition-normal);
  text-decoration: underline;
}

.developer-credit a:hover {
  color: var(--secondary);
}

/* ================= ANIMACIONES DE ELEMENTOS ================= */

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.loaded .animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ================= CARRUSEL ================= */

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px; /* Altura fija importante para evitar el estiramiento */
    overflow: hidden;
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

/* Adaptaciones responsive */
@media screen and (max-width: 767px) {
    .carousel-container {
        height: 300px; /* Altura reducida para móviles */
    }
}

@media screen and (max-width: 480px) {
    .carousel-container {
        height: 250px; /* Altura aún más reducida para móviles pequeños */
    }
}

/* Indicadores de carrusel más pequeños y sutiles */
.carousel-indicator {
  width: 8px;          /* Reducido de 12px a 8px */
  height: 8px;         /* Reducido de 12px a 8px */
  margin: 0 4px;       /* Espaciado reducido entre indicadores */
  padding: 0;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(66, 133, 244, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0.6;        /* Ligeramente transparentes cuando no están activos */
}

.carousel-indicator.active {
  width: 8px;          /* Mantiene el mismo tamaño cuando está activo */
  height: 8px;
  background-color: rgba(66, 133, 244, 0.7);
  opacity: 1;
  transform: scale(1.2);
}

/* Posición más discreta de los indicadores */
.carousel-indicators {
  bottom: 8px;         /* Más cercano al borde inferior */
}

/* Mejorar visibilidad de los controles */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; /* Aumentado para mejor accesibilidad táctil */
  height: 48px; /* Aumentado para mejor accesibilidad táctil */
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a56db; /* Color mejorado para contraste */
  font-size: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
  visibility: visible !important;
}

.carousel-control:hover {
  opacity: 1;
  background-color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 1 !important;
}


/* Colores nativos para los iconos de redes sociales en la sección de Contacto */
.social-links .social-link[aria-label="Facebook"] {
  background-color: #1877F2 !important;
  color: white !important;
}

.social-links .social-link[aria-label="Instagram"] {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
  color: white !important;
}

.social-links .social-link[aria-label="TikTok"] {
  background-color: #000000 !important;
  color: white !important;
}

.social-links .social-link[aria-label="WhatsApp"] {
  background-color: #25D366 !important;
  color: white !important;
}

/* Efecto hover mejorado para los íconos */
.social-links .social-link:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Asegurar que todos los iconos del footer tengan el mismo color */
.footer-social a {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

/* Mantener el efecto hover para todos los iconos del footer */
.footer-social a:hover {
  background-color: var(--primary) !important;
  color: white !important;
  transform: scale(1.1) rotate(10deg);
}

/* ================= MODO RESPONSIVO ================= */

@media screen and (max-width: 1199px) {
  :root {
    --section-spacing: clamp(3rem, 6vw, 6rem);
  }
}

@media screen and (max-width: 991px) {
  .header-cta {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background-color: var(--light);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-menu);
  }
  
  .nav-menu.active {
    right: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
  
  .nav-menu {
    right: -100% !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateX(100%) !important;
    transition: all 0.3s ease-in-out !important;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    display: block;
    padding: 1.5rem 0; /* Más grande para mejor accesibilidad en móvil */
    font-size: 1.1rem;
  }
  
  .hero {
    text-align: center;
    padding-top: 5rem;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-title::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-features {
    justify-content: center;
  }
  
  body.menu-open {
    overflow: hidden;
  }
}

@media screen and (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  
  .hero-features {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-wave {
    top: -50px;
    height: 50px;
  }
  
  .pricing-container {
    gap: 3rem;
  }
  
  .price-card.featured .price-card-inner {
    transform: scale(1.03);
  }
  
  .contact-container {
    gap: 3rem;
  }
  
  .map-overlay {
    position: static;
    margin-top: 1rem;
  }
  
  .map-info {
    max-width: 100%;
  }
  
  .quick-links {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .footer-heading::after {
    width: 30px;
  }
}

/* ================= UTILIDADES ================= */

/* Ajustes para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.hero {
  position: relative;
  background-image: url('../img/hero-section.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Efecto parallax suave */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: linear-gradient(135deg, 
    rgba(66, 133, 244, 0.4) 0%, 
    rgba(224, 150, 0, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Ajustes para mejorar la legibilidad del hero-section */

/* 1. Mejorar el título principal con palabras destacadas */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

/* Crear clase para palabras destacadas */
.hero-highlight {
  color: var(--accent); /* Color ámbar/naranja */
  position: relative;
  display: inline-block;
}

/* 2. Mejorar la visibilidad del texto descriptivo */
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 2.5rem;
  color: white;
  max-width: 90%;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 8px;
}

/* 3. Mejorar los botones */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 3;
}

.hero-buttons .btn {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.85em 2em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
  background-color: var(--agenda-button);
  color: #000000;
  border-color: var(--agenda-button);
}

/* Botón secundario (Conoce más) - color azul como el calendar */
.hero-buttons .btn-secondary {
  background-color: #3B78E7; /* Azul del calendar flotante */
  color: white;
  border-color: #3B78E7;
}

.hero-buttons .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Ajuste para las características */
.hero-feature {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Ajuste adicional para el overlay de fondo */
.hero::before {
  background: linear-gradient(135deg, 
    rgba(45, 49, 66, 0.65) 0%, 
    rgba(45, 49, 66, 0.45) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
  .hero {
    background-position: 70% center; /* Ajusta la posición para móviles */
  }
  
  .hero::before {
    /* Aumentar ligeramente la opacidad del overlay en móviles para mejorar legibilidad */
    background: linear-gradient(135deg, 
      rgba(45, 49, 66, 0.9) 0%, 
      rgba(45, 49, 66, 0.7) 100%);
  }
}

@media screen and (max-width: 767px) {
  .hero {
    background-image: url('../img/hero-section-mobile.webp'); /* Quitar ../ */
    background-attachment: scroll !important; /* Crucial para iOS */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: rgba(45, 49, 66, 0.8); /* Color de fallback más oscuro */
  }
  .hero::before {
    background: linear-gradient(135deg, 
      rgba(45, 49, 66, 0.75) 0%, 
      rgba(45, 49, 66, 0.65) 100%);
    backdrop-filter: none; /* Eliminar para iOS */
    -webkit-backdrop-filter: none; /* Eliminar para iOS */
  }
}

/* Mejoras para el icono toggle del menú móvil */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 10px;
  z-index: 1500; /* Valor alto para asegurar que permanezca sobre el menú */
  position: relative;
  cursor: pointer;
  width: 44px;
  height: 44px;
}

.toggle-icon {
  display: block;
  position: relative;
  width: 28px;
  height: 3px; /* Aumentado a 3px para mejor visibilidad */
  background-color: var(--dark);
  transition: all 0.3s ease;
}

.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px; /* Aumentado a 3px para mejor visibilidad */
  background-color: var(--dark);
  transition: all 0.3s ease;
}

.toggle-icon::before {
  top: -8px;
}

.toggle-icon::after {
  bottom: -8px;
}

/* Transformación explícita a X cuando está activo */
.mobile-toggle.active .toggle-icon {
  background-color: transparent !important;
}

.mobile-toggle.active .toggle-icon::before {
  top: 0 !important;
  transform: rotate(45deg) !important;
}

.mobile-toggle.active .toggle-icon::after {
  bottom: 0 !important;
  transform: rotate(-45deg) !important;
}

/* Estilo específico para el estado activo */
.mobile-toggle.active {
  position: fixed; /* Mantiene el botón visible al desplazar */
  right: 20px;
}

@media screen and (max-width: 767px) {
  .mobile-toggle {
    display: block;
  }
}

