/* ==========================================================================
   DEPROBETA CONSULTORES - HOJA DE ESTILOS PRINCIPAL
   Reconstrucción 100% Nativa (Sin Bloatware de WP / Elementor)
   Arquitectura: CSS3 Moderno, Flexbox, CSS Grid y Variables CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES CSS (DESIGN TOKENS ORIGINALES)
   -------------------------------------------------------------------------- */
:root {
  /* Paleta de Colores Extraída del Diseño Original */
  --color-primary: #11313F;         /* Azul pizarra profundo */
  --color-primary-dark: #0D1520;    /* Fondo oscuro contrastante */
  --color-secondary: #22262F;       /* Carbón oscuro */
  --color-text: #7A7A7A;            /* Gris texto secundario */
  --color-text-dark: #1C1F26;       /* Texto oscuro / títulos */
  --color-text-muted: #8A91AC;      /* Gris azulado texto */
  --color-accent: #0E8F85;          /* Verde azulado oscuro / hover */
  --color-teal: #13BFB1;            /* Cian marca / Botones principales */
  --color-light-bg: #ECF7F6;        /* Menta suave / fondo inputs */
  --color-white: #FFFFFF;
  --color-yellow: #FFB000;          /* Amarillo botón menú móvil */
  --color-yellow-accent: #F8BA00;   /* Amarillo dorado propuesta valor original */
  --color-cyan-glow: #15CAF7;       /* Cian overlay video */
  --color-blue-dark: #002A3F;       /* Azul marino reverso flip box */
  --color-red-icon: #AF0F0F;        /* Rojo iconos contacto */
  --color-divider: #EAEAEA;
  --color-surface-light: #FAFAFA;   /* Fondo neutro secciones claras */
  --color-surface-modal: #F6F6F6;   /* Fondo diálogo modal */
  --color-lime-accent: #CBDD9E;     /* Verde lima destacado Visión/Misión */
  --color-topbar-bg: rgba(19, 40, 72, 0.75);
  --color-dropdown-bg: rgba(25, 42, 64, 0.95);
  --color-linkedin: #002669;
  --color-whatsapp: #25D366;

  /* Tipografías */
  --font-primary: 'Lato', sans-serif;
  --font-body: 'Heebo', sans-serif;
  --font-secondary: 'Roboto Slab', serif;
  --font-accent: 'Roboto', sans-serif;

  /* Espaciados y Dimensiones */
  --container-max-width: 1140px;
  --container-padding: 20px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.25);
  --transition-speed: 0.3s;
  --transition-bezier: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --------------------------------------------------------------------------
   2. RESET Y ESTILOS BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

ul, ol {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   3. CONTENEDORES Y GRILLAS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: 60px 0;
  position: relative;
}

.text-center {
  text-align: center;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   4. TIPOGRAFÍA Y TÍTULOS
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.section-title-accent {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-teal);
  letter-spacing: 1px;
  margin-top: 5px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-divider);
  margin: 30px 0;
}

/* --------------------------------------------------------------------------
   5. BOTONES Y COMPONENTES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  text-align: center;
}

.btn:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--color-teal);
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(19, 191, 177, 0.3);
}

.btn--primary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(14, 143, 133, 0.4);
}

.btn--primary:focus-visible {
  outline-color: var(--color-primary);
}

.btn--light {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.btn--light:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: scale(1.03);
}

.btn--light:focus-visible {
  outline-color: var(--color-white);
}

.btn--outline-pulse {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  animation: pulse-animation 2s infinite;
}

.btn--outline-pulse:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn--outline-pulse:focus-visible {
  outline-color: var(--color-white);
}

@keyframes pulse-animation {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   6. TOPBAR (BARRA SUPERIOR)
   -------------------------------------------------------------------------- */
.topbar {
  background-color: #0b2230;
  color: var(--color-white);
  font-size: 0.85rem;
  position: relative;
  z-index: 101;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__item a:hover {
  color: var(--color-teal);
}

.topbar__sep {
  opacity: 0.5;
  margin: 0 4px;
}

.topbar__social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #002669;
  color: var(--color-white);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-speed) ease;
}

.topbar__social .social-link:hover {
  background-color: var(--color-text-dark);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   7. HEADER Y NAVEGACIÓN
   -------------------------------------------------------------------------- */
.header {
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  background-color: transparent;
  box-shadow: none;
  z-index: 100;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-sticky {
  position: fixed;
  top: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}

.header__logo-link {
  display: block;
  max-width: 220px;
}

.header__logo {
  height: auto;
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

/* Menú Desktop */
.nav-desktop__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop__link {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  letter-spacing: 0.8px;
  transition: color var(--transition-speed) ease;
}

.nav-desktop__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FAE56E;
  transition: width var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.nav-desktop__link:hover::after,
.nav-desktop__link.active::after {
  width: 100%;
}

.nav-desktop__link:hover,
.nav-desktop__link.active {
  color: #FAE56E;
}

.nav-desktop__link:focus-visible {
  color: #FAE56E;
  outline: 2px solid #FAE56E;
  outline-offset: 4px;
}

/* Enlaces cuando el header es sticky (Fondo Blanco) */
.header.is-sticky .nav-desktop__link {
  color: var(--color-primary);
}

.header.is-sticky .nav-desktop__link::after {
  background-color: var(--color-teal);
}

.header.is-sticky .nav-desktop__link:hover,
.header.is-sticky .nav-desktop__link.active {
  color: var(--color-teal);
}

.header.is-sticky .nav-desktop__link:focus-visible {
  color: var(--color-teal);
  outline-color: var(--color-teal);
}

/* Botón Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  padding: 10px;
  background-color: var(--color-yellow);
  border-radius: var(--border-radius-sm);
  z-index: 101;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle__bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-speed) ease;
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menú Móvil */
.nav-mobile {
  display: none;
  background-color: var(--color-dropdown-bg);
  padding: 20px 0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile__list {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.nav-mobile__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile__link {
  display: block;
  padding: 14px 20px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
}

.nav-mobile__link:hover,
.nav-mobile__link:focus {
  background-color: rgba(0, 72, 139, 0.6);
  color: var(--color-teal);
}

/* --------------------------------------------------------------------------
   8. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  padding: 160px 0 210px;
  overflow: hidden;
  background-color: #15CAF7;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-iframe,
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 177.78vh;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.65;
  border: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(21, 202, 247, 0.78) 0%, rgba(17, 191, 216, 0.72) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 950px;
  margin-top: 10px;
}

.hero-logo-wrap {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
}

.hero-logo {
  max-width: 200px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.hero-slider {
  position: relative;
  overflow: visible;
  min-height: 200px;
}

.hero-slides-track {
  position: relative;
}

.hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  display: block;
  opacity: 1;
}

.hero-slide__title {
  font-family: var(--font-primary);
  font-size: 52px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.18;
  margin-bottom: 28px;
  text-shadow: 0px 4px 18px rgba(0, 50, 90, 0.45);
}

.hero-slide__btn {
  display: inline-block;
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
  padding: 10px 26px;
  box-shadow: none;
  transition: all var(--transition-speed) ease;
}

.hero-slide__btn:hover {
  background-color: #FFFFFF;
  color: #11313F;
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Flechas Bare Chevrons del Hero (Fieles al diseño original) */
.hero-section .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
  z-index: 10;
}

.hero-section .slider-arrow svg {
  width: 32px;
  height: 32px;
}

.hero-section .slider-arrow:hover {
  background: transparent;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.18);
}

.hero-section .slider-arrow--prev {
  left: 35px;
}

.hero-section .slider-arrow--next {
  right: 35px;
}

#hero-dots {
  display: none !important;
}

/* Divisor de Montañas Inferior (Fiel al original Elementor) */
.shape-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  direction: ltr;
  z-index: 3;
  pointer-events: none;
}

.shape-divider svg {
  position: relative;
  display: block;
  width: calc(160% + 1.3px);
  height: 181px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}

.shape-fill {
  fill: #FFFFFF;
}

/* --------------------------------------------------------------------------
   9. SECCIÓN REGULACIÓN SANITARIA INTRO
   -------------------------------------------------------------------------- */
.section--regulation-intro {
  background-color: var(--color-white);
}

.video-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-card__player {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.regulation-intro__btn-wrap {
  margin-bottom: 20px;
}

.regulation-intro__text {
  font-size: 1.05rem;
  color: var(--color-text-dark);
  line-height: 1.8;
}

.regulation-intro__text strong {
  color: var(--color-teal);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   10. PROPUESTA DE VALOR (TARJETA + TESTIMONIOS SLIDER)
   -------------------------------------------------------------------------- */
.section--value-prop {
  background-color: var(--color-surface-light);
}

.value-prop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 70px 0 0 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.value-card-box {
  background-color: var(--color-yellow-accent);
  background-image: url('../assets/img/pat3.webp');
  background-size: 28% auto;
  border-radius: 70px 0 0 0;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(248, 186, 0, 0.45);
  pointer-events: none;
}

.value-card-box__content {
  position: relative;
  z-index: 2;
}

.value-card-box__icon {
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.value-card-box__title {
  color: var(--color-white);
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.value-slider-box {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 380px;
}

.value-slides-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.value-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 50px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.value-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.value-slide__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 21, 32, 0.75);
}

.value-slide__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: justify;
}

/* --------------------------------------------------------------------------
   11. SECCIÓN NOSOTROS
   -------------------------------------------------------------------------- */
.section--about {
  padding: 90px 0;
  background-color: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 30px;
  align-items: center;
}

.about-grid__col--photo-1 {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.about-grid__col--photo-stacked {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.about-photo-wrap {
  flex: 1;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.about-branding {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.about-branding__logo {
  max-width: 180px;
}

.about-branding__watermark {
  max-width: 200px;
  opacity: 0.85;
}

.about-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   12. SECCIÓN LA MEJOR ASESORÍA
   -------------------------------------------------------------------------- */
.section--best-advice {
  background-color: rgba(122, 122, 122, 0.07);
  padding: 80px 0;
}

.advice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 30px;
  align-items: center;
}

.advice-photo-col {
  height: 380px;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.advice-text-col {
  padding: 20px;
}

.advice-logo {
  max-width: 160px;
  margin-bottom: 20px;
}

.advice-description {
  font-size: 1.05rem;
  color: var(--color-text-dark);
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
}

/* --------------------------------------------------------------------------
   13. SERVICIOS Y CARRUSEL ESTABLECIMIENTOS
   -------------------------------------------------------------------------- */
.section--services {
  padding: 80px 0;
}

.services-header-center {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.services-header-logo {
  max-width: 180px;
}

.services-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.services-cards-grid--bottom {
  margin-top: 50px;
  margin-bottom: 0;
}

.service-card {
  position: relative;
  min-height: 290px;
  border-radius: 50px 0 50px 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-speed) ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(17, 49, 63, 0.85) 0%, rgba(13, 21, 32, 0.75) 100%);
  transition: opacity var(--transition-speed) ease;
}

.service-card:hover .service-card__overlay {
  opacity: 0.95;
}

.service-card__body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px;
  color: var(--color-white);
}

.service-card__title {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Carrusel de Establecimientos */
.establishments-carousel-wrap {
  margin: 50px auto;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  margin-top: 30px;
}

.carousel-track {
  position: relative;
  min-height: 420px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   14. SECCIONES VISIÓN Y MISIÓN (PARALLAX CON PATRÓN)
   -------------------------------------------------------------------------- */
.section--vision-parallax,
.section--mission-parallax {
  background-image: url('../assets/img/vision-mision-bg.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  position: relative;
  padding: 110px 0;
  color: var(--color-white);
}

.vision-overlay,
.mission-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 8, 19, 0.7);
  background-image: url('../assets/img/watermark-pattern.png');
  background-repeat: repeat;
  background-size: 45% auto;
  background-attachment: fixed;
}

.vision-content,
.mission-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.animated-headline {
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: 25px;
}

.animated-headline__highlight {
  position: relative;
  color: var(--color-lime-accent);
  display: inline-block;
}

.highlight--underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-lime-accent);
  border-radius: 2px;
}

.highlight--circle::before {
  content: '';
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: -12px;
  right: -12px;
  border: 2px solid var(--color-lime-accent);
  border-radius: 50%;
}

.vision-text,
.mission-text {
  font-size: 1.45rem;
  line-height: 1.7;
  color: var(--color-white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   15. ESPECIALIDADES Y ESTABLECIMIENTOS REGULADOS
   -------------------------------------------------------------------------- */
.section--specialties {
  background-image: url('../assets/img/specialties-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 90px 0;
  color: var(--color-white);
}

.specialties-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 0, 0, 0.7);
}

.specialties-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.specialties-lists-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 45px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 500;
}

.checklist__icon {
  color: var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.specialties-footer-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.specialties-chart-wrap {
  text-align: center;
}

.specialties-chart {
  max-width: 320px;
  display: inline-block;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.specialties-heading-wrap {
  padding: 15px 25px;
  border-left: 5px solid var(--color-teal);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.specialties-badge-title {
  color: var(--color-white);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   16. FLIP BOXES (TARJETAS 3D CON REVERSO)
   -------------------------------------------------------------------------- */
.section--flip-boxes {
  padding: 70px 0 90px;
  background-color: var(--color-surface-light);
}

.flip-boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 380px);
  justify-content: center;
  gap: 50px 0;
}

.flip-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 380px;
}

.flip-card-icon-wrap {
  margin-bottom: 15px;
}

.flip-card-icon {
  max-width: 75px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.flip-card {
  perspective: 1000px;
  width: 100%;
  height: 240px;
  cursor: pointer;
  border-radius: 0;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 0;
  box-shadow: var(--shadow-md);
}

/* Giro en hover o click */
.flip-card:hover .flip-card__inner,
.flip-card:focus .flip-card__inner,
.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.flip-card__front {
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.flip-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.flip-card__overlay--cyan   { background-color: rgba(10, 168, 189, 0.75); }
.flip-card__overlay--yellow { background-color: rgba(169, 162, 30, 0.75); }
.flip-card__overlay--red    { background-color: rgba(143, 14, 36, 0.75); }
.flip-card__overlay--purple { background-color: rgba(35, 14, 143, 0.75); }

.flip-card__text {
  position: relative;
  z-index: 2;
}

.flip-card__text h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.flip-card__back {
  background-color: var(--color-blue-dark);
  color: var(--color-white);
  transform: rotateY(180deg);
}

.flip-card__back-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

/* --------------------------------------------------------------------------
   17. SECCIÓN FAQ (AEO & GEO OPTIMIZATION)
   -------------------------------------------------------------------------- */
.section--faq {
  background-color: #f8fafc;
  padding: 80px 0;
}

.faq-accordion {
  max-width: 860px;
  margin: 40px auto 0;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item[open] {
  border-color: #15CAF7;
  box-shadow: 0 4px 14px rgba(21, 202, 247, 0.12);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.25s ease, color 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: #15CAF7;
}

.faq-answer {
  padding: 0 22px 20px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-answer a {
  color: #15CAF7;
  text-decoration: underline;
  font-weight: 500;
}

.faq-answer a:hover {
  color: #0ea5e9;
}

/* --------------------------------------------------------------------------
   18. SECCIÓN MAPA
   -------------------------------------------------------------------------- */
.section--map {
  padding: 0;
}

.map-embed-wrapper {
  width: 100%;
  height: 380px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   18. SECCIÓN CONTACTO
   -------------------------------------------------------------------------- */
.section--contact {
  padding: 80px 0 100px;
  background-color: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-col .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #1C1F26;
  margin-bottom: 20px;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 35px;
  line-height: 1.7;
  max-width: 440px;
}

.contact-logo-wrap {
  margin-bottom: 25px;
}

.contact-logo {
  max-width: 190px;
  height: auto;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.contact-card__icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B5121B;
  background-color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-card__title {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1C1F26;
  margin-bottom: 3px;
}

.contact-card__desc {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.5;
}

.contact-card__desc a:hover {
  color: var(--color-teal);
}

.contact-channels {
  margin-bottom: 0;
}

/* Formulario (Temporalmente Oculto según diseño original) */
.contact-form {
  display: none;
}
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-group {
  margin-bottom: 15px;
  width: 100%;
}

.form-group--half {
  flex: 1;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--color-light-bg);
  border: 1px solid var(--color-light-bg);
  border-radius: var(--border-radius-sm);
  color: var(--color-secondary);
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
}

.form-input:focus {
  background-color: var(--color-white);
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(19, 191, 177, 0.2);
}

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

.btn--submit {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 14px;
}

.btn--submit:hover {
  background-color: var(--color-teal);
}

.btn--submit:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.btn--submit:active {
  transform: scale(0.98);
}

.form-status {
  margin-top: 15px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background-color: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
}

.form-status.is-error {
  display: block;
  background-color: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
}

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 30px 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer__credits {
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   20. CONTROLES DE SLIDERS Y CARRUSELES
   -------------------------------------------------------------------------- */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all var(--transition-speed) ease;
}

.slider-arrow:hover {
  background-color: var(--color-teal);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-arrow--prev { left: 15px; }
.slider-arrow--next { right: 15px; }

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.slider-dot.active {
  background-color: var(--color-teal);
  width: 24px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   21. MODALES / POPUPS
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition-speed) ease;
}

.modal.is-active {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  z-index: 2;
  background-color: var(--color-surface-modal);
  border-radius: var(--border-radius-md);
  max-width: 650px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-speed) ease;
  overflow: hidden;
}

.modal.is-active .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  z-index: 10;
  transition: all var(--transition-speed) ease;
}

.modal__close:hover {
  background-color: var(--color-red-icon);
  color: var(--color-white);
  transform: rotate(90deg);
}

.modal__close:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.modal__content {
  padding: 40px 30px;
}

.modal__header {
  text-align: center;
  margin-bottom: 25px;
}

.modal__icon {
  margin: 0 auto 15px;
  max-width: 80px;
}

.modal__title {
  font-size: 1.4rem;
  color: var(--color-primary);
  text-transform: uppercase;
}

.modal__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.modal__list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.modal__check-icon {
  color: var(--color-teal);
  font-weight: bold;
}

.modal__actions {
  text-align: center;
}

/* --------------------------------------------------------------------------
   22. BOTÓN FLOTANTE WHATSAPP
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: all var(--transition-speed) ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 3px;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-float__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background-color: var(--color-red-icon);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
}

/* --------------------------------------------------------------------------
   23. MEDIA QUERIES (RESPONSIVE EXACTO)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .section-title {
    font-size: 1.9rem;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid__col--text {
    grid-column: span 2;
  }

  .advice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .advice-text-col {
    grid-column: span 2;
  }

  .flip-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-slide__title {
    font-size: 2.1rem;
  }

  .vision-text,
  .mission-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .topbar__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .topbar__contact {
    justify-content: center;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .grid-2-col,
  .value-prop-grid,
  .services-cards-grid,
  .specialties-lists-row,
  .specialties-footer-row,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid__col--text {
    grid-column: span 1;
  }

  .about-grid__col--photo-stacked {
    display: none; /* Mantiene la limpieza en pantallas móviles como el original */
  }

  .advice-grid {
    grid-template-columns: 1fr;
  }

  .advice-text-col {
    grid-column: span 1;
  }

  .advice-photo-col {
    height: 250px;
  }

  .flip-boxes-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .header {
    position: relative;
    top: 0;
    background-color: #15CAF7;
  }

  .header__inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header__logo {
    max-height: 52px;
  }

  .hero-section {
    min-height: 70vh;
    padding: 30px 15px 140px;
  }

  .hero-logo {
    max-width: 150px;
    margin-bottom: 15px;
  }

  .hero-slide__title {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .hero-section .slider-arrow {
    display: none;
  }

  .shape-divider svg {
    height: 100px;
    width: calc(220% + 1.3px);
  }

  .form-row {
    flex-direction: column;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
