/* ===================================================
   CENTRO CLÍNICO EL VALLE — PUCÓN
   Rediseño: estética médica limpia, sky + azul.
   Cero JavaScript. Todo CSS puro.
   =================================================== */

/* ---------------------------------------------------
   1. CUSTOM PROPERTIES
   --------------------------------------------------- */
:root {
  /* ---- Paleta principal ---- */
  --color-primary:        #14457b;   /* Azul corporativo (títulos, footer) */
  --color-primary-dark:   #0d3158;   /* Azul oscuro */
  --color-primary-soft:   #eaf2fa;   /* Fondo suave azul */
  --color-footer-bg:      #14457b;   /* Footer: color corporativo fijo, NO cambia en dark mode */
  --color-footer-text:    #ffffff;   /* Footer: texto blanco siempre */
  --color-accent:         #0ea5e9;   /* Sky blue (decoración, derivado del isotipo del logo) */
  --color-accent-dark:    #0369a1;   /* Sky AA (texto y CTAs) — 6.3:1 */
  --color-accent-bright:  #38bdf8;   /* Sky claro para acentos */
  --color-accent-soft:    #e0f2fe;   /* Sky muy claro (icon bg, search highlight) */

  /* ---- Estados semánticos ---- */
  --color-success:        #0d9488;
  --color-warning:        #f59e0b;
  --color-error:          #ef4444;
  --color-whatsapp:       #0a6b3d;   /* Verde WhatsApp AA (6.6:1) */

  /* ---- Texto y superficies ---- */
  --color-text:           #1f2937;
  --color-text-soft:      #4b5563;
  --color-text-muted:     #6b7280;
  --color-bg:             #ffffff;
  --color-bg-alt:         #f6f9fc;
  --color-border:         #e3eaf2;
  --color-border-light:   #eef2f7;

  /* ---- Tipografía ---- */
  --font-heading: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Montserrat', 'Segoe UI', system-ui, sans-serif;

  /* ---- Escala fluida ---- */
  --fs-xs:   clamp(0.78rem, 0.74rem + 0.2vw, 0.85rem);
  --fs-sm:   clamp(0.88rem, 0.83rem + 0.3vw, 0.95rem);
  --fs-base: clamp(1rem,    0.95rem + 0.3vw, 1.075rem);
  --fs-md:   clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --fs-lg:   clamp(1.35rem,  1.2rem + 0.7vw,  1.6rem);
  --fs-xl:   clamp(1.7rem,   1.4rem + 1.4vw,  2.4rem);
  --fs-2xl:  clamp(2.1rem,   1.7rem + 1.8vw,  3.2rem);
  --fs-3xl:  clamp(2.5rem,   2rem + 2.5vw,    4rem);

  /* ---- Espaciado ---- */
  --space-1:  0.5rem;
  --space-2:  1rem;
  --space-3:  1.5rem;
  --space-4:  2rem;
  --space-5:  3rem;
  --space-6:  4.5rem;
  --space-7:  6rem;

  /* ---- Radios ---- */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* ---- Sombras ---- */
  --shadow-xs: 0 1px 2px rgba(20, 69, 123, 0.04);
  --shadow-sm: 0 2px 8px rgba(20, 69, 123, 0.06), 0 1px 2px rgba(20, 69, 123, 0.04);
  --shadow:    0 4px 16px rgba(20, 69, 123, 0.08), 0 2px 4px rgba(20, 69, 123, 0.04);
  --shadow-lg: 0 12px 32px rgba(20, 69, 123, 0.10), 0 4px 8px rgba(20, 69, 123, 0.05);
  --shadow-sky: 0 8px 24px rgba(14, 165, 233, 0.30);
  --shadow-sky-lg: 0 14px 32px rgba(14, 165, 233, 0.40);

  /* ---- Animaciones ---- */
  --ease-out-soft:    cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast:    150ms;
  --duration-base:    250ms;
  --duration-slow:    450ms;
  --transition:       0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Layout ---- */
  --container: 1180px;
  --header-h:  72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent-dark); }

button { font: inherit; cursor: pointer; border: 0; background: none; }

ul { list-style: none; padding: 0; }

::selection { background: var(--color-accent); color: #fff; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn,
.nav-cta,
.site-nav a,
.hero-dot,
.faq-item summary,
.mobile-cta,
.floating-whatsapp,
.theme-toggle {
  min-height: 44px;
}

/* ---------------------------------------------------
   3. SKIP LINK
   --------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible { top: 0; color: #fff; }

/* ---------------------------------------------------
   4. LAYOUT
   --------------------------------------------------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section { padding: var(--space-6) 0; }

/* Alternancia de fondos y refinamiento de títulos */
.faq, .blog, .testimonials { background: var(--color-bg-alt); }
.section-title { letter-spacing: -0.02em; line-height: 1.15; }

.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-4);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-2);
}

.eyebrow-light { color: rgba(255, 255, 255, 0.85); }

.section-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-3);
  font-weight: 700;
  color: var(--color-primary);
}

.section-title-sm {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  text-align: center;
}

.section-lead {
  font-size: var(--fs-md);
  color: var(--color-text-soft);
  line-height: 1.6;
}

.text-white { color: #fff; }

/* ---------------------------------------------------
   5. HEADER / NAV — estilo captura
   Logo + 4 links + CTA sky pill
   --------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-3);
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; }

/* Nav desktop: 4 links centrados */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--color-primary);
  position: relative;
  padding: 0.5rem 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

/* CTA del header: pill sky prominente */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent-dark);
  color: #fff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.6rem 1.4rem !important;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sky);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-cta:hover {
  background: var(--color-accent-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sky-lg);
}
.nav-cta::after { display: none; }

/* Contenedor unificado de acciones del header (theme + text resize) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  margin-left: var(--space-2);
  border-radius: 999px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
}

/* Selector de tema: 3 estados (light/auto/dark) sin JS */
.theme-toggle-group {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.125rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.9); color: var(--color-primary); }
.theme-toggle:active { transform: scale(0.94); }
.theme-icon { width: 16px; height: 16px; }

/* Toggle de tamaño de texto (dentro del wrapper .header-actions) */
.text-resize-input { position: absolute; opacity: 0; pointer-events: none; }
.text-resize-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border-left: 1px solid var(--color-border-light);
  margin-left: 0.15rem;
  padding-left: 0.35rem;
}
.text-resize-toggle:hover { background: rgba(255, 255, 255, 0.9); color: var(--color-primary); }
.text-resize-toggle:active { transform: scale(0.94); }
.text-resize-icon { width: 16px; height: 16px; flex-shrink: 0; }
#text-resize-lg:checked ~ * .text-resize-toggle,
html:has(#text-resize-lg:checked) .text-resize-toggle {
  color: var(--color-accent);
  background: rgba(3, 105, 161, 0.12);
}
@media (max-width: 720px) {
  .header-actions { padding: 0.3rem; gap: 0.35rem; }
  .theme-toggle, .text-resize-toggle { width: 40px; height: 40px; }
  .theme-icon, .text-resize-icon { width: 18px; height: 18px; }
  .text-resize-toggle { margin-left: 0.25rem; padding-left: 0.5rem; }
}

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

/* Mobile: hamburger + nav drawer */
.nav-details { position: relative; }
.nav-details > summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-details > summary::-webkit-details-marker { display: none; }
.nav-details > summary:hover { background: var(--color-primary-soft); }

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition);
}
.nav-details[open] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-details[open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-details[open] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-details > summary { display: flex; }
  .theme-toggle-group { display: none; }
  .site-nav-wrap { display: none; }
  .header-actions { display: none; }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }

  .nav-details[open] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li + li { border-top: 1px solid var(--color-border-light); }

  .site-nav a {
    display: block;
    padding: 0.9rem 1rem;
  }
  .site-nav a::after { display: none; }
  .nav-cta {
    text-align: center;
    margin-top: 0.75rem;
    justify-content: center;
  }
}

/* ---------------------------------------------------
   6. HERO / SLIDER CSS PURO
   --------------------------------------------------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: clamp(480px, 65vh, 680px);
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(480px, 65vh, 680px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.hero-slide img,
.hero-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video {
  object-position: center 35%;
  background: var(--color-primary-dark);
}

/* Overlay sky sutil (más médico, menos azul oscuro) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13, 49, 88, 0.78) 0%,
    rgba(13, 49, 88, 0.55) 45%,
    rgba(14, 165, 233, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: clamp(480px, 65vh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4) 0 var(--space-6);
  max-width: 700px;
  margin-left: max(1.25rem, calc((100vw - var(--container)) / 2 + 1.25rem));
  margin-right: 1.25rem;
  color: #fff;
  pointer-events: auto;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
  width: max-content;
}

.hero-title {
  font-size: var(--fs-3xl);
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--space-3);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.hero-text {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.95);
  max-width: 560px;
  margin-bottom: var(--space-4);
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ==== GOOGLE RATING BADGE ====
   Badge de Google Business integrado en el hero (slide 1).
   Muestra rating 5.0 + 5 estrellas + 43 reseñas, enlazando al
   perfil de Google Maps. Diseno basado en el badge nativo de Google
   con los 4 colores oficiales del logo G. WCAG AA: contraste texto
   blanco sobre bg blanco semi-transparente con backdrop-blur. */
.google-rating-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
  margin-bottom: 64px;
}
@media (max-width: 720px) {
  .google-rating-wrap {
    margin-bottom: 48px;
  }
}

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: var(--color-text);
  min-height: 48px; /* touch target >= 44px */
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.google-rating:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.25);
}
.google-rating:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.3);
}
.google-rating-g {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}
.google-rating-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.3;
}
.google-rating-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a3a5c; /* WCAG AA con fondo claro: contraste >= 7:1 */
  font-family: var(--font-heading);
}
.google-rating-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.google-rating-score {
  font-weight: 700;
  color: #1a3a5c;
}
.google-rating-stars {
  display: inline-flex;
  gap: 1px;
}
.google-rating-stars svg {
  width: 16px;
  height: 16px;
  display: block;
}
.google-rating-count {
  color: rgba(26, 58, 92, 0.75);
  font-weight: 400;
}

/* Mobile: badge mas compacto */
@media (max-width: 600px) {
  .google-rating {
    padding: 0.55rem 0.85rem;
    gap: 0.6rem;
    border-radius: 10px;
  }
  .google-rating-g {
    width: 26px;
    height: 26px;
  }
  .google-rating-title {
    font-size: 0.85rem;
  }
  .google-rating-meta {
    font-size: 0.78rem;
    gap: 0.3rem;
  }
  .google-rating-stars svg {
    width: 13px;
    height: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .google-rating {
    transition: none;
  }
  .google-rating:hover {
    transform: none;
  }
}

/* Mostrar el slide activo */
#hero-slide-1:checked ~ .hero-slides .hero-slide-1,
#hero-slide-2:checked ~ .hero-slides .hero-slide-2,
#hero-slide-3:checked ~ .hero-slides .hero-slide-3,
#hero-slide-4:checked ~ .hero-slides .hero-slide-4,
#hero-slide-5:checked ~ .hero-slides .hero-slide-5 {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Animación de entrada del contenido */
.hero-slide h1,
.hero-slide p,
.hero-slide .hero-tag,
.hero-slide .btn {
  transform: translateX(30px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}
#hero-slide-1:checked ~ .hero-slides .hero-slide-1 .hero-tag,
#hero-slide-2:checked ~ .hero-slides .hero-slide-2 .hero-tag,
#hero-slide-3:checked ~ .hero-slides .hero-slide-3 .hero-tag,
#hero-slide-4:checked ~ .hero-slides .hero-slide-4 .hero-tag,
#hero-slide-5:checked ~ .hero-slides .hero-slide-5 .hero-tag {
  transform: none; opacity: 1; transition-delay: 0.2s;
}
#hero-slide-1:checked ~ .hero-slides .hero-slide-1 h1,
#hero-slide-2:checked ~ .hero-slides .hero-slide-2 h1,
#hero-slide-3:checked ~ .hero-slides .hero-slide-3 h1,
#hero-slide-4:checked ~ .hero-slides .hero-slide-4 h1,
#hero-slide-5:checked ~ .hero-slides .hero-slide-5 h1 {
  transform: none; opacity: 1; transition-delay: 0.4s;
}
#hero-slide-1:checked ~ .hero-slides .hero-slide-1 p,
#hero-slide-2:checked ~ .hero-slides .hero-slide-2 p,
#hero-slide-3:checked ~ .hero-slides .hero-slide-3 p,
#hero-slide-4:checked ~ .hero-slides .hero-slide-4 p,
#hero-slide-5:checked ~ .hero-slides .hero-slide-5 p {
  transform: none; opacity: 1; transition-delay: 0.6s;
}
#hero-slide-1:checked ~ .hero-slides .hero-slide-1 .btn,
#hero-slide-2:checked ~ .hero-slides .hero-slide-2 .btn,
#hero-slide-3:checked ~ .hero-slides .hero-slide-3 .btn,
#hero-slide-4:checked ~ .hero-slides .hero-slide-4 .btn,
#hero-slide-5:checked ~ .hero-slides .hero-slide-5 .btn {
  transform: none; opacity: 1; transition-delay: 0.8s;
}

/* Dots → Tabs con número + etiqueta (estilo Apple Keynote) */
.hero-dots {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.25rem;
  background: rgba(13, 49, 88, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: calc(100% - 2rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.hero-dots::-webkit-scrollbar { display: none; }

.hero-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-dot-num {
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

#hero-slide-1:checked ~ .hero-dots label[for="hero-slide-1"],
#hero-slide-2:checked ~ .hero-dots label[for="hero-slide-2"],
#hero-slide-3:checked ~ .hero-dots label[for="hero-slide-3"],
#hero-slide-4:checked ~ .hero-dots label[for="hero-slide-4"],
#hero-slide-5:checked ~ .hero-dots label[for="hero-slide-5"] {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.4);
}

#hero-slide-1:checked ~ .hero-dots label[for="hero-slide-1"] .hero-dot-num,
#hero-slide-2:checked ~ .hero-dots label[for="hero-slide-2"] .hero-dot-num,
#hero-slide-3:checked ~ .hero-dots label[for="hero-slide-3"] .hero-dot-num,
#hero-slide-4:checked ~ .hero-dots label[for="hero-slide-4"] .hero-dot-num,
#hero-slide-5:checked ~ .hero-dots label[for="hero-slide-5"] .hero-dot-num {
  opacity: 1;
}

@media (max-width: 720px) {
  .hero-dot-label { display: none; }
  .hero-dot {
    padding: 0.5rem 0.7rem;
    min-width: 40px;
    justify-content: center;
  }
  .hero-dot-num { font-size: 0.8rem; }
}

@media (max-width: 720px) {
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(13, 49, 88, 0.55) 0%,
      rgba(13, 49, 88, 0.85) 100%
    );
  }
  .hero-content { margin-left: 1.25rem; margin-right: 1.25rem; }
}

/* Mobile: reducir escala tipográfica para que las headings no se corten
   en viewports < 720px (clamp min original era demasiado grande). */
@media (max-width: 720px) {
  :root {
    --fs-xl:  clamp(1.2rem,  1.05rem + 0.8vw, 1.65rem);
    --fs-2xl: clamp(1.35rem, 1.15rem + 1vw,   2rem);
    --fs-3xl: clamp(1.5rem,  1.25rem + 1.3vw, 2.3rem);
  }
  /* Hero más alto en mobile para que entre todo el texto sin clip */
  .hero {
    min-height: clamp(540px, 75vh, 760px);
  }
  .hero-slides { min-height: clamp(540px, 75vh, 760px); }
  .hero-content {
    min-height: clamp(540px, 75vh, 760px);
    width: calc(100% - 2.5rem);
    max-width: calc(100% - 2.5rem);
  }
  .hero-title {
    font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .hero-text {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 100%;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .section-title { font-size: var(--fs-xl); }
  .section-title-sm { font-size: var(--fs-lg); }
  .commitment-content h2 { font-size: var(--fs-xl); }
  .action-title { font-size: var(--fs-lg); }
  .faq-col h2,
  .info-col h2 { font-size: var(--fs-lg); }
  /* Hero h2 (slides 2-4) más conservador */
  .hero-slide h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); }
}

/* ---------------------------------------------------
   7. BOTONES
   --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
  cursor: pointer;
  letter-spacing: 0;
  width: max-content;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 69, 123, 0.25);
  text-transform: none;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20, 69, 123, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ---------------------------------------------------
   8. CARDS DE CONTACTO Y HORARIO (post-hero)
   Estilo captura: 2 cards blancas con iconos sky
   --------------------------------------------------- */
.contact-cards {
  margin-top: calc(-1 * var(--space-3));
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-3);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-1);
  border: 1px solid var(--color-border-light);
  transition: transform 0.3s var(--ease-out-soft),
              box-shadow 0.3s var(--ease-out-soft);
  cursor: pointer;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(20, 69, 123, 0.12);
}

.contact-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-1);
}
.contact-card-icon svg { width: 28px; height: 28px; }

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.contact-card-list strong { color: var(--color-primary); }
.contact-card-list a { color: var(--color-primary); }
.contact-card-list a:hover { color: var(--color-accent-dark); }

.contact-card-list .row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}
.contact-card-list .row svg {
  width: 18px; height: 18px; color: var(--color-accent-dark);
  flex-shrink: 0;
}

.contact-card-list .row-pin svg { color: var(--color-accent); }

.contact-card-list .row-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-card-list .row-call svg { color: var(--color-accent-dark); transition: color var(--transition); }
.contact-card-list .row-call:hover { color: var(--color-accent-dark); }
.contact-card-list .row-call:hover svg { color: var(--color-accent); }

.contact-card-list .row-whatsapp {
  display: inline-flex;
  align-items: center;
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}
.contact-card-list .row-whatsapp svg { color: inherit; }
.contact-card-list .row-whatsapp:hover { color: var(--color-accent); transform: scale(1.1); }
.contact-card-list .row-whatsapp:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------
   9. SECCIÓN COMPROMISO (estilo captura)
   "Un compromiso con Pucón" + foto fundadoras
   --------------------------------------------------- */
.commitment-section {
  background: var(--color-bg);
  padding: var(--space-5) 0 var(--space-4);
}

.commitment-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-5);
  align-items: center;
}

.commitment-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.commitment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commitment-content { max-width: 720px; }
.commitment-content h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}
.commitment-content p {
  color: var(--color-text-soft);
  font-size: var(--fs-base);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}
.commitment-content p strong { color: var(--color-primary); }

@media (max-width: 880px) {
  .commitment-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .commitment-image { max-width: 320px; margin: 0 auto; aspect-ratio: 1/1; }
}

/* ---------------------------------------------------
   10. SECCIÓN ESPECIALIDADES (estilo captura)
   Grid 3x2, cards con icono sky grande
   --------------------------------------------------- */
.specialties {
  background: var(--color-bg);
  padding: var(--space-5) 0;
}

.specialties-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.specialty-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  /* Padding en la card (no en el link interior) para que aplique tanto
     a las cards del home (que son <a> directo) como a las de
     /especialidades/ (con <a class="specialty-link"> interior).
     El .specialty-link tiene padding 0 para no duplicar. */
  padding: var(--space-3) var(--space-2);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}
.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--color-accent);
}
.specialty-card:focus-within {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
/* Link que envuelve todo el contenido de la card, haciendo que
   click en cualquier parte (icono, titulo, parrafo) active el link.
   padding: 0 porque el padding viene de la .specialty-card padre
   (asi evitamos duplicar padding en /especialidades/ que tiene el
   link interior). */
.specialty-link {
  display: block;
  padding: 0;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
}
.specialty-link:hover { text-decoration: none; }
.specialty-cta {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-accent-dark);
  transition: color var(--transition);
}
.specialty-card:hover .specialty-cta {
  color: var(--color-primary);
}

.specialty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  margin: 0 auto var(--space-2);
}
.specialty-icon svg { width: 32px; height: 32px; }

.specialty-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.specialty-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  line-height: 1.6;
}

@media (max-width: 880px) {
  .specialties-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .specialties-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------
   11. EQUIPO EN ACCIÓN (galería 4x2 estilo captura)
   Lightbox CSS-only con :target para ver en grande
   --------------------------------------------------- */
.action-section {
  background: var(--color-bg-alt);
  padding: var(--space-5) 0;
}

.action-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.action-item {
  display: block;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-border);
  position: relative;
  cursor: zoom-in;
  text-decoration: none;
  isolation: isolate;
}
.action-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-soft);
}
.action-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 49, 88, 0.7) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}
.action-item:hover img { transform: scale(1.08); }
.action-item:hover::after { opacity: 1; }

/* Icono zoom-in que aparece en hover */
.action-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-sky);
}
.action-zoom svg { width: 26px; height: 26px; }
.action-item:hover .action-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.action-item:hover .action-zoom:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

@media (max-width: 880px) {
  .action-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------
   11.1 LIGHTBOX (CSS-only fallback con :target + JS-enhanced con .is-open)
   --------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
/* Mostrar con :target (fallback CSS-only sin JS) o con .is-open (controlado por JS) */
.lightbox:target,
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 49, 88, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
  cursor: zoom-out;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: min(1100px, 95vw);
  max-height: 90vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: scale(0.92);
  transition: transform 0.3s var(--ease-out-soft);
}
.lightbox:target .lightbox-content,
.lightbox.is-open .lightbox-content { transform: scale(1); }

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: #000;
}

.lightbox-content figcaption {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  color: #fff;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 300;
  text-decoration: none;
  z-index: 5;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  line-height: 1;
}
.lightbox-close:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: rotate(90deg) scale(1.05);
}

@media (max-width: 720px) {
  .lightbox-close { top: -3rem; right: -0.5rem; }
  .action-zoom { width: 44px; height: 44px; }
  .action-zoom svg { width: 22px; height: 22px; }
}

/* Lock body scroll cuando el lightbox está abierto */
.lightbox:target ~ body,
body:has(.lightbox:target) {
  overflow: hidden;
}

/* ---------------------------------------------------
   12. SECCIÓN FAQ + INFO — 2 COLUMNAS
   --------------------------------------------------- */
.faq-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.faq-info-grid > div { min-width: 0; }

/* FAQ column */
.faq-col h2,
.info-col h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] {
  border-color: var(--color-accent-soft);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--color-primary);
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--color-bg-alt); }
.faq-item summary:focus-visible { background: var(--color-bg-alt); outline: none; }

.faq-question { flex: 1; }

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  transition: transform var(--transition), background var(--transition);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition);
}
.faq-icon::before { width: 10px; height: 2px; }
.faq-icon::after  { width: 2px; height: 10px; }
.faq-item[open] .faq-icon { background: var(--color-accent); color: #fff; transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }

.faq-content {
  padding: 0 var(--space-3) var(--space-3);
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.faq-content p { margin-bottom: 0.75rem; }
.faq-content p:last-child { margin-bottom: 0; }
.faq-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}
.faq-content ul li { margin-bottom: 0.25rem; }
.faq-content strong { color: var(--color-primary); }
.faq-content a { color: var(--color-accent-dark); font-weight: 500; }

@media (max-width: 880px) {
  .faq-info-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* INFO column (Información práctica en 2 columnas) */
.info-col { display: flex; flex-direction: column; gap: var(--space-3); }

.info-block {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

.info-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-2);
}
.info-block-icon svg { width: 22px; height: 22px; }

.info-block h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.info-block p {
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  margin-bottom: 0.75rem;
}
.info-block p:last-child { margin-bottom: 0; }

.info-block ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: var(--fs-sm);
}
.info-block ul li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--color-border-light);
}
.info-block ul li:last-child { border-bottom: 0; }
.info-block ul li strong { color: var(--color-primary); }

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
}
.info-tag {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.info-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.info-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-whatsapp);
  color: #fff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  text-align: center;
}
.info-wa-btn:hover {
  background: #064d2c;
  color: #fff !important;
  transform: translateY(-1px);
}
.info-wa-btn-outline {
  background: transparent;
  color: var(--color-primary) !important;
  border: 1.5px solid var(--color-primary);
}
.info-wa-btn-outline:hover {
  background: var(--color-primary);
  color: #fff !important;
}

/* ---------------------------------------------------
   13. EQUIPO / PROFESIONALES
   --------------------------------------------------- */
.team {
  background:
    radial-gradient(ellipse at top left, var(--color-accent-soft) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, var(--color-primary-soft) 0%, transparent 50%),
    var(--color-bg-alt);
  padding: var(--space-5) 0;
  position: relative;
}

/* Ocultar los radio buttons nativos (los puntitos feos) */
.profe-cat-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

/* Filtros mejorados: icono + label + contador */
.profe-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: var(--space-5);
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  max-width: max-content;
  margin-inline: auto;
  border: 1px solid var(--color-border-light);
}

.profe-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}
.profe-filter::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  transition: all var(--transition);
}
.profe-filter::after {
  content: attr(data-count);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--color-bg-alt);
  color: var(--color-text-soft);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-left: 0.25rem;
  font-variant-numeric: tabular-nums;
  transition: all var(--transition);
}
.profe-filter:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.7);
}
.profe-filter:hover::before { opacity: 1; transform: scale(1.3); }

#profe-cat-all:checked   ~ .profe-filters label[for="profe-cat-all"],
#profe-cat-to:checked    ~ .profe-filters label[for="profe-cat-to"],
#profe-cat-fono:checked  ~ .profe-filters label[for="profe-cat-fono"],
#profe-cat-psi:checked   ~ .profe-filters label[for="profe-cat-psi"],
#profe-cat-kine:checked  ~ .profe-filters label[for="profe-cat-kine"],
#profe-cat-nutri:checked ~ .profe-filters label[for="profe-cat-nutri"],
#profe-cat-med:checked   ~ .profe-filters label[for="profe-cat-med"],
#profe-cat-ed:checked    ~ .profe-filters label[for="profe-cat-ed"] {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 69, 123, 0.3);
}
#profe-cat-all:checked   ~ .profe-filters label[for="profe-cat-all"]::before,
#profe-cat-to:checked    ~ .profe-filters label[for="profe-cat-to"]::before,
#profe-cat-fono:checked  ~ .profe-filters label[for="profe-cat-fono"]::before,
#profe-cat-psi:checked   ~ .profe-filters label[for="profe-cat-psi"]::before,
#profe-cat-kine:checked  ~ .profe-filters label[for="profe-cat-kine"]::before,
#profe-cat-nutri:checked ~ .profe-filters label[for="profe-cat-nutri"]::before,
#profe-cat-med:checked   ~ .profe-filters label[for="profe-cat-med"]::before,
#profe-cat-ed:checked    ~ .profe-filters label[for="profe-cat-ed"]::before {
  background: var(--color-accent-bright);
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.3);
}
#profe-cat-all:checked   ~ .profe-filters label[for="profe-cat-all"]::after,
#profe-cat-to:checked    ~ .profe-filters label[for="profe-cat-to"]::after,
#profe-cat-fono:checked  ~ .profe-filters label[for="profe-cat-fono"]::after,
#profe-cat-psi:checked   ~ .profe-filters label[for="profe-cat-psi"]::after,
#profe-cat-kine:checked  ~ .profe-filters label[for="profe-cat-kine"]::after,
#profe-cat-nutri:checked ~ .profe-filters label[for="profe-cat-nutri"]::after,
#profe-cat-med:checked   ~ .profe-filters label[for="profe-cat-med"]::after,
#profe-cat-ed:checked    ~ .profe-filters label[for="profe-cat-ed"]::after {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Mostrar/ocultar grupos */
.profe-group { display: none; animation: profe-fade-in 0.5s var(--ease-out-soft); }
#profe-cat-all:checked   ~ #team-content .profe-group { display: block; }
#profe-cat-to:checked    ~ #team-content .profe-group[data-cat="to"]    { display: block; }
#profe-cat-fono:checked  ~ #team-content .profe-group[data-cat="fono"]  { display: block; }
#profe-cat-psi:checked   ~ #team-content .profe-group[data-cat="psi"]   { display: block; }
#profe-cat-kine:checked  ~ #team-content .profe-group[data-cat="kine"]  { display: block; }
#profe-cat-nutri:checked ~ #team-content .profe-group[data-cat="nutri"] { display: block; }
#profe-cat-med:checked   ~ #team-content .profe-group[data-cat="med"]   { display: block; }
#profe-cat-ed:checked    ~ #team-content .profe-group[data-cat="ed"]    { display: block; }

@keyframes profe-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.team-container { }

/* Separación entre categorías de profesionales */
.profe-group + .profe-group {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  position: relative;
}
.profe-group + .profe-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
  border-radius: 2px;
}

.profe-group-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  text-align: center;
}

.profe-group-lead {
  text-align: center;
  color: var(--color-text-soft);
  margin-bottom: var(--space-4);
  max-width: 600px;
  margin-inline: auto;
}

/* Grid estándar: todas las cards del mismo tamaño, aspect ratio uniforme */
.profe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  align-items: stretch; /* asegura que todas las cards tengan la misma altura */
}
.profe-grid .profe-card { display: flex; flex-direction: column; }

.profe-grid-3 { grid-template-columns: repeat(3, 1fr); }
.profe-grid-3 .profe-card { display: flex; flex-direction: column; }

.profe-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-inline: auto;
}
.profe-grid-2 .profe-card { display: flex; flex-direction: column; }

.profe-grid-1 { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }

@media (max-width: 1024px) {
  .profe-grid, .profe-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .profe-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .profe-grid, .profe-grid-3, .profe-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .profe-grid, .profe-grid-3, .profe-grid-2, .profe-grid-1 {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
}

/* Card rediseñada: foto circular + hover impactante */
.profe-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.profe-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}
.profe-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 20px 40px rgba(20, 69, 123, 0.15),
    0 0 0 2px var(--color-accent);
}
.profe-card:hover::before { opacity: 0.5; }

.profe-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.profe-card-link:hover { color: inherit; }

.profe-photo {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-primary-soft) 100%);
  overflow: hidden;
}
.profe-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow);
  filter: saturate(1.05);
}
.profe-card:hover .profe-photo img {
  transform: scale(1.08);
}

/* Tag flotante sobre la foto */
.profe-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-accent-dark);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

/* Icono "ver perfil" que aparece en hover */
.profe-photo-cta {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-sky);
}
.profe-card:hover .profe-photo-cta {
  opacity: 1;
  transform: translateY(0);
}
.profe-photo-cta svg { width: 18px; height: 18px; }

.profe-card h4 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--space-2) var(--space-3) 0.25rem;
}
.profe-role {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-accent-dark);
  padding: 0 var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.profe-card-text {
  padding: var(--space-1) var(--space-3) var(--space-3);
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
  line-height: 1.6;
  flex: 1;
}
.profe-card-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 var(--space-3) var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: gap var(--transition);
}
.profe-card:hover .profe-card-link-cta { gap: 0.6rem; }

@media (max-width: 600px) {
  .profe-grid, .profe-grid-3, .profe-grid-2 {
    grid-template-columns: 1fr;
  }
  .profe-filters { padding: 0.4rem; gap: 0.3rem; }
  .profe-filter { padding: 0.4rem 0.8rem; font-size: var(--fs-xs); }
  .profe-filter::after { padding: 0.1rem 0.4rem; }
}

/* ---------------------------------------------------
   13.1 MODAL DE PERFIL (CSS-only con :target)
   --------------------------------------------------- */
.profe-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background: rgba(13, 49, 88, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.profe-modal:target,
.profe-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profe-modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s var(--ease-out-soft);
}
.profe-modal:target .profe-modal-content { transform: scale(1) translateY(0); }

.profe-modal-photo {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-primary-soft) 100%);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 200px;
}
.profe-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profe-modal-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 69, 123, 0.3) 100%);
}

.profe-modal-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
}
.profe-modal-body h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.profe-modal-body .profe-role {
  padding: 0;
  margin-bottom: var(--space-2);
}
.profe-modal-body p {
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--space-3);
  flex: 1;
}
.profe-modal-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
/* Grupo de navegacion (prev + next) siempre en su propia fila,
   alineados horizontalmente: prev a la izquierda, next a la derecha. */
.profe-modal-nav-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.profe-modal-nav-group .profe-modal-prev,
.profe-modal-nav-group .profe-modal-next {
  flex: 0 0 auto;
}
/* Mobile (<=720px): prev/next al 50% cada uno, alineados */
@media (max-width: 720px) {
  .profe-modal-nav-group .profe-modal-prev,
  .profe-modal-nav-group .profe-modal-next {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
  }
}

.profe-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  text-decoration: none;
  z-index: 5;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.profe-modal-close:hover {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(90deg);
}

@media (max-width: 720px) {
  .profe-modal-content {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  .profe-modal-photo {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    min-height: 240px;
    max-height: 280px;
  }
  /* En mobile el contenedor es 240-280px pero las fotos son portrait
     (~608x760). Con object-fit: cover el navegador centraba la imagen
     verticalmente, mostrando mitad cara / mitad torso. Enfocamos la
     parte superior para que se vea cara + hombros. Desktop no cambia. */
  .profe-modal-photo img {
    object-position: center top;
  }
}

/* ---------------------------------------------------
   14. BLOG
   --------------------------------------------------- */
.blog { background: var(--color-bg); padding: var(--space-5) 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.blog-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.blog-card-link { display: flex; flex-direction: column; height: 100%; }
.blog-card-link:hover { color: inherit; }

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--color-bg-alt);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow);
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-accent-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.blog-card-body { padding: var(--space-3); flex: 1; display: flex; flex-direction: column; }

.blog-card-meta {
  display: flex;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}
.blog-card p {
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
  line-height: 1.6;
  flex: 1;
}
.blog-card-cta {
  margin-top: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent-dark);
  font-size: var(--fs-sm);
}

.blog-cta { text-align: center; margin-top: var(--space-4); }

@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; } }

/* ==== BLOG CARD FEATURED (con video) ==== */
.blog-card-featured { border: 2px solid var(--color-accent); box-shadow: 0 6px 24px -8px rgba(3,105,161,0.25); }
.blog-card-cat-featured {
  background: var(--color-accent) !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.blog-card-image-video { position: relative; overflow: hidden; }
.blog-card-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a1a14 0%, #5a2a1a 50%, #c0392b 100%);
  overflow: hidden;
}
.blog-card-video-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.3), transparent 60%);
  pointer-events: none;
}
.blog-card-play {
  position: relative;
  width: 72px; height: 72px;
  color: #fff;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  padding: 18px;
  backdrop-filter: blur(4px);
  transition: transform var(--transition), background var(--transition);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.blog-card:hover .blog-card-play { transform: scale(1.12); background: rgba(0,0,0,0.5); }
.blog-card-video-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ==== BLOG POST (artículo individual) ==== */
.post-page { background: var(--color-bg); padding-bottom: var(--space-7); }

.post-header { padding: var(--space-6) 0 var(--space-4); text-align: center; }
.post-breadcrumb {
  display: flex; justify-content: center; align-items: center;
  gap: 0.5rem; font-size: var(--fs-sm);
  color: var(--color-text-soft);
  margin-bottom: var(--space-3);
}
.post-breadcrumb a { color: var(--color-text-soft); text-decoration: none; transition: color var(--transition); }
.post-breadcrumb a:hover { color: var(--color-accent-dark); }
.post-breadcrumb span[aria-hidden="true"] { color: var(--color-border); }
.post-cat {
  display: inline-block;
  margin-bottom: var(--space-2);
}
.post-header h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  line-height: 1.15;
  color: var(--color-primary);
  margin: 0 auto var(--space-2);
  max-width: 820px;
  letter-spacing: -0.01em;
}
.post-subtitle {
  font-size: var(--fs-md);
  color: var(--color-accent-dark);
  font-weight: 600;
  margin: 0 auto var(--space-4);
  max-width: 720px;
}
.post-meta {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  margin-top: var(--space-3);
  flex-wrap: wrap;
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
}
.post-author { display: flex; align-items: center; gap: 0.75rem; }
.post-author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}
.post-author strong { display: block; color: var(--color-primary); font-size: var(--fs-sm); font-weight: 600; }
.post-author span { color: var(--color-text-soft); font-size: var(--fs-xs); }
.post-meta-right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.post-meta-right time, .post-reading { font-size: var(--fs-sm); }
.post-meta-right time::after { content: "·"; margin-left: 0.75rem; color: var(--color-border); }

.post-cover {
  max-width: 1100px;
  margin: 0 auto var(--space-5);
  padding: 0 var(--space-2);
}
.post-cover img, .post-cover video {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-cover-video { position: relative; }
.post-video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.post-video-wrap video {
  width: 100%; height: auto; display: block;
  max-height: 80vh;
}
.post-cover figcaption {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  margin-top: var(--space-2);
  font-style: italic;
}

/* Video inline (integrado al flujo del contenido, respeta proporción original) */
.post-video-inline {
  margin: 0 auto var(--space-4);
  text-align: center;
}
.post-video-inline .post-video-wrap {
  display: inline-block;
  max-width: 100%;
  width: auto;
  vertical-align: top;
  box-shadow: 0 8px 28px -10px rgba(3,105,161,0.4);
}
.post-video-inline .post-video-wrap video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  min-width: 320px;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .post-video-inline .post-video-wrap video { min-width: 0; width: 100%; }
}
.post-video-inline figcaption {
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  margin-top: var(--space-2);
  font-style: italic;
}

.post-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  max-width: 1180px;
}
@media (min-width: 980px) {
  .post-container {
    grid-template-columns: minmax(0, 720px) 320px;
    gap: var(--space-6);
  }
}

.post-content { font-size: var(--fs-base); line-height: 1.75; color: var(--color-text); }
.post-content > * + * { margin-top: var(--space-3); }
.post-lead {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--color-text-soft);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}
.post-content h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-primary);
  margin: var(--space-5) 0 var(--space-2);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.post-content h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-primary);
  margin: var(--space-4) 0 var(--space-2);
}
.post-content p { margin: 0 0 var(--space-3); }
.post-content ul, .post-content ol { margin: 0 0 var(--space-3) var(--space-3); }
.post-content li { margin-bottom: 0.5rem; }
.post-content strong { color: var(--color-primary); font-weight: 600; }
.post-content a { color: var(--color-accent-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.post-content a:hover { color: var(--color-primary); }
.post-content blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-soft);
}
.post-content blockquote p { margin: 0; }

.post-cta {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, var(--color-bg-alt) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-accent);
  text-align: center;
}
.post-cta h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
  font-size: var(--fs-lg);
}
.post-cta p { color: var(--color-text-soft); margin: 0 0 var(--space-3); }
.post-cta .btn { margin: 0 auto; }

.post-aside { display: flex; flex-direction: column; gap: var(--space-3); }
@media (min-width: 980px) {
  .post-aside { position: sticky; top: 80px; align-self: start; }
}
.post-toc, .post-related {
  background: var(--color-bg-alt);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}
.post-toc h2, .post-related h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
}
.post-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc-counter; }
.post-toc li {
  counter-increment: toc-counter;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.post-toc li:last-child { border-bottom: none; padding-bottom: 0; }
.post-toc li::before { content: counter(toc-counter) ". "; color: var(--color-accent); font-weight: 600; margin-right: 0.25rem; }
.post-toc a { color: var(--color-text); text-decoration: none; }
.post-toc a:hover { color: var(--color-accent-dark); }

.post-related-item {
  display: block;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-light);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.post-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.post-related-item:hover strong { color: var(--color-accent-dark); }
.post-related-item strong {
  display: block;
  color: var(--color-text);
  font-size: var(--fs-sm);
  margin-top: 0.4rem;
  line-height: 1.4;
  font-weight: 600;
  transition: color var(--transition);
}
/* Cuando .blog-card-cat se usa dentro de un related item, sobreescribimos
   el position:absolute (que era para el thumbnail de las cards) y lo
   mostramos como chip inline. */
.post-related-item .blog-card-cat {
  position: static;
  display: inline-block;
  margin-bottom: 0.4rem;
}

/* ==== DARK MODE: blog post ==== */
html:has(#theme-dark:checked) .post-toc,
html:has(#theme-dark:checked) .post-related,
html:has(#theme-dark:checked) .post-content blockquote {
  background: #131f33;
  border-color: #2a3850;
}
html:has(#theme-dark:checked) .post-lead {
  background: rgba(3,105,161,0.12);
  color: #cbd5e1;
}
html:has(#theme-dark:checked) .post-cta {
  background: linear-gradient(135deg, rgba(3,105,161,0.18) 0%, #131f33 100%);
}
@media (prefers-color-scheme: dark) {
  html:has(#theme-auto:checked) .post-toc,
  html:has(#theme-auto:checked) .post-related,
  html:has(#theme-auto:checked) .post-content blockquote {
    background: #131f33;
    border-color: #2a3850;
  }
  html:has(#theme-auto:checked) .post-lead {
    background: rgba(3,105,161,0.12);
    color: #cbd5e1;
  }
  html:has(#theme-auto:checked) .post-cta {
    background: linear-gradient(135deg, rgba(3,105,161,0.18) 0%, #131f33 100%);
  }
}

/* ---------------------------------------------------
   15. TESTIMONIOS
   --------------------------------------------------- */
.testimonials { background: var(--color-bg-alt); padding: var(--space-5) 0; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.testimonial {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  border: 1px solid var(--color-border-light);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent-soft);
  font-weight: 700;
}

.testimonial blockquote {
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  line-height: 1.7;
  font-style: italic;
  margin: 0 0 var(--space-2);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border-light);
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.testimonial-author strong { display: block; color: var(--color-primary); font-size: var(--fs-sm); }
.testimonial-author span { color: var(--color-text-muted); font-size: var(--fs-xs); }

@media (max-width: 880px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------
   16. CONTACTO
   --------------------------------------------------- */
.contact { background: var(--color-bg); padding: var(--space-5) 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  gap: var(--space-4);
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: var(--space-3) 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
}
.contact-list .contact-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  min-width: 100px;
}

.contact-map {
  margin-top: var(--space-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.contact-form {
  background: var(--color-bg-alt);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border: 1px solid var(--color-border-light);
}
.contact-form h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form label span {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-primary);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: var(--fs-sm);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------
   17. FOOTER — azul sólido 3 columnas (estilo captura)
   --------------------------------------------------- */
.site-footer {
  /* El footer mantiene el color corporativo en ambos temas (identidad de marca).
     No usa --color-primary porque esa variable cambia a azul claro en dark mode. */
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-5) 0 0;
  margin-top: var(--space-5);
}

.footer-grid {
  display: grid;
  /* Distribucion balanceada: brand un poco mas ancho, las 4 restantes iguales */
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  min-width: 0; /* permite que el texto se ajuste dentro del grid */
}
.footer-col ul { flex: 1; } /* UL ocupa espacio sobrante para alinear items */

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
  position: relative;
  padding-bottom: 0.5rem;
  min-height: 1.5em; /* asegura alineacion visual aunque el h4 tenga 1 o 2 lineas */
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--color-accent);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem; /* espaciado consistente entre items */
}
.footer-col li {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-accent); }

.footer-brand .footer-logo {
  display: block;
  height: 64px;
  width: auto;
  margin-bottom: var(--space-2);
  /* Usa footer_logo.webp (solo insignia, fondo transparente) en vez
     de logo.webp (con texto negro sobre fondo blanco) para evitar
     el bloque negro que se formaba al aplicar invert sobre el header. */
}
.footer-brand p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}
.footer-brand address {
  font-style: normal;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}
.footer-brand address a { color: rgba(255, 255, 255, 0.95); }
.footer-brand address a:hover { color: var(--color-accent); }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-social li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-social li a::before {
  content: '→';
  color: var(--color-accent);
  font-weight: 700;
}

.footer-bottom {
  margin-top: var(--space-4);
  padding: var(--space-2) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}
.footer-bottom small {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-xs);
}
.footer-credit strong { color: #fff; font-weight: 600; letter-spacing: 0.04em; }

/* ---------------------------------------------------
   17b. PAGINAS LEGALES (privacidad, terminos)
   --------------------------------------------------- */
.section--legal-hero {
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-bg-alt) 100%);
  /* Padding-top compensa el header fixed (~80px) + espacio respiracion */
  padding-top: calc(var(--space-6) + 1.5rem);
  padding-bottom: var(--space-5);
  /* Sin border-bottom: el header ya tiene el suyo, agregar otro crea doble linea */
}
.section--legal-hero .breadcrumbs {
  margin-bottom: var(--space-2);
  color: var(--color-text-soft);
  font-weight: 500;
}
.section--legal-hero .breadcrumbs a { color: var(--color-primary); }
.section--legal-hero .breadcrumbs-current { color: var(--color-primary); font-weight: 600; }
.section--legal-hero .eyebrow { display: inline-block; margin-bottom: var(--space-1); }
.section--legal-hero .section-title { margin-bottom: var(--space-2); }
.section--legal-hero .section-lead { max-width: 780px; }

/* Paginas de especialidades individuales: el hero necesita compensar
   el header fixed para que el titulo no quede tapado */
.specialty-hero {
  padding-top: calc(var(--space-6) + 1.5rem);
  padding-bottom: var(--space-5);
}
.specialty-hero .breadcrumbs {
  margin-bottom: var(--space-2);
  color: var(--color-text-soft);
  font-weight: 500;
}
.specialty-hero .breadcrumbs a { color: var(--color-primary); }
.specialty-hero .breadcrumbs-current { color: var(--color-primary); font-weight: 600; }
.specialty-hero .eyebrow { display: inline-block; margin-bottom: var(--space-1); }

.section--legal {
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  color: var(--color-text);
  font-size: var(--fs-base);
  line-height: 1.7;
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent-soft);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
}
.legal-content p {
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.legal-content p strong { color: var(--color-primary); }
.legal-content ul,
.legal-content ol {
  margin: 0 0 var(--space-3) 0;
  padding-left: 1.5rem;
}
.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--color-text);
}
.legal-content li::marker { color: var(--color-accent-dark); }
.legal-content a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.legal-content a:hover { color: var(--color-primary); }
.legal-content address {
  font-style: normal;
  margin-bottom: var(--space-2);
}
.legal-content .legal-footer {
  margin-top: var(--space-5);
  padding: var(--space-3);
  background: var(--color-primary-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
}

/* Anchor links para headings (compartir seccion) */
.legal-content h2 { scroll-margin-top: 90px; }
.legal-content h3 { scroll-margin-top: 90px; }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------
   18. STICKY BAR MÓVIL
   --------------------------------------------------- */
.mobile-cta-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid var(--color-border);
  display: none;
  padding: 0.5rem;
  gap: 0.5rem;
  box-shadow: 0 -4px 20px rgba(20, 69, 123, 0.08);
}

.mobile-cta {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem;
  border-radius: var(--radius);
  min-height: 50px;
  color: #fff;
}
.mobile-cta-whatsapp { background: var(--color-whatsapp); }
.mobile-cta-call    { background: var(--color-primary); }
/* mobile-cta-map y mobile-cta-book usan --color-accent-dark (#0369a1),
   no --color-accent (#0ea5e9), porque el texto es blanco y necesita
   contraste WCAG AA (≥4.5:1).
   - #0369a1 (sky oscuro) + #fff: contraste 6.3:1 ✓
   - #0ea5e9 (sky claro) + #fff: contraste 2.86:1 ✗
   Con accent-soft el texto blanco se "lavaba" y se ve\u00eda casi
   invisible en mobile. */
.mobile-cta-map     { background: var(--color-accent-dark); }
/* .mobile-cta-book alias kept for legacy refs (now superseded by .mobile-cta-map) */
.mobile-cta-book    { background: var(--color-accent-dark); }

@media (max-width: 720px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 70px; }
}

/* ---------------------------------------------------
   19. FLOATING WHATSAPP
   --------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-whatsapp);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(10, 107, 61, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.floating-whatsapp svg { width: 22px; height: 22px; flex-shrink: 0; }
.floating-whatsapp span { line-height: 1; }
.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(10, 107, 61, 0.55);
  color: #fff;
}

.floating-whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: var(--color-whatsapp);
  animation: pulse-wa 2s var(--ease-out-soft) infinite;
  z-index: -1;
}

@keyframes pulse-wa {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 720px) {
  .floating-whatsapp { display: none; }
}

/* ---------------------------------------------------
   20. DARK MODE — 3 estados
   --------------------------------------------------- */
.theme-input { position: absolute; opacity: 0; pointer-events: none; }

/* Forzado: theme-dark checked */
html:has(#theme-dark:checked) {
  --color-bg:           #0d1726;
  --color-bg-alt:       #131f33;
  --color-text:         #e2e8f0;
  --color-text-soft:    #94a3b8;
  --color-text-muted:   #64748b;
  --color-border:       #1e2b40;
  --color-border-light: #1a2538;
  --color-primary:      #60a5fa;
  --color-primary-soft: #1a2538;
}
html:has(#theme-dark:checked) .site-header { background: rgba(13, 23, 38, 0.95); }
html:has(#theme-dark:checked) .brand-logo { filter: invert(1) hue-rotate(180deg); }
html:has(#theme-dark:checked) .contact-form,
html:has(#theme-dark:checked) .specialty-card,
html:has(#theme-dark:checked) .profe-card,
html:has(#theme-dark:checked) .profe-modal-content,
html:has(#theme-dark:checked) .testimonial,
html:has(#theme-dark:checked) .blog-card,
html:has(#theme-dark:checked) .info-block,
html:has(#theme-dark:checked) .contact-card,
html:has(#theme-dark:checked) .stats-grid > div,
html:has(#theme-dark:checked) .faq-item,
html:has(#theme-dark:checked) .values-strip {
  background: #1a2538;
  border-color: #2a3850;
}
html:has(#theme-dark:checked) .value-item { color: #93c5fd; }
html:has(#theme-dark:checked) .contact-form input,
html:has(#theme-dark:checked) .contact-form select,
html:has(#theme-dark:checked) .contact-form textarea {
  background: #0d1726;
  color: #e2e8f0;
  border-color: #2a3850;
}
html:has(#theme-dark:checked) .profe-filter {
  background: #1a2538;
  color: #e2e8f0;
  border-color: #2a3850;
}
html:has(#theme-dark:checked) .header-actions {
  background: #131f33;
  border-color: #2a3850;
}
html:has(#theme-dark:checked) .theme-toggle-group {
  background: rgba(255, 255, 255, 0.04);
}
html:has(#theme-dark:checked) .theme-toggle:hover,
html:has(#theme-dark:checked) .text-resize-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #93c5fd;
}
html:has(#theme-dark:checked) .profe-prompt {
  background: #131f33;
  border-color: #2a3850;
  color: #94a3b8;
}
html:has(#theme-dark:checked) .stats-grid { border-bottom-color: #2a3850; }

/* Auto: sigue el sistema */
@media (prefers-color-scheme: dark) {
  html:has(#theme-auto:checked) {
    --color-bg:           #0d1726;
    --color-bg-alt:       #131f33;
    --color-text:         #e2e8f0;
    --color-text-soft:    #94a3b8;
    --color-text-muted:   #64748b;
    --color-border:       #1e2b40;
    --color-border-light: #1a2538;
    --color-primary:      #60a5fa;
    --color-primary-soft: #1a2538;
  }
  html:has(#theme-auto:checked) .site-header { background: rgba(13, 23, 38, 0.95); }
  html:has(#theme-auto:checked) .brand-logo { filter: invert(1) hue-rotate(180deg); }
  html:has(#theme-auto:checked) .contact-form,
  html:has(#theme-auto:checked) .specialty-card,
  html:has(#theme-auto:checked) .profe-card,
  html:has(#theme-auto:checked) .profe-modal-content,
  html:has(#theme-auto:checked) .testimonial,
  html:has(#theme-auto:checked) .blog-card,
  html:has(#theme-auto:checked) .info-block,
  html:has(#theme-auto:checked) .contact-card,
  html:has(#theme-auto:checked) .stats-grid > div,
  html:has(#theme-auto:checked) .faq-item,
  html:has(#theme-auto:checked) .values-strip {
    background: #1a2538;
    border-color: #2a3850;
  }
  html:has(#theme-auto:checked) .value-item { color: #93c5fd; }
  html:has(#theme-auto:checked) .profe-prompt {
    background: #131f33;
    border-color: #2a3850;
    color: #94a3b8;
  }
  html:has(#theme-auto:checked) .stats-grid { border-bottom-color: #2a3850; }
  html:has(#theme-auto:checked) .header-actions {
    background: #131f33;
    border-color: #2a3850;
  }
  html:has(#theme-auto:checked) .theme-toggle-group {
    background: rgba(255, 255, 255, 0.04);
  }
  html:has(#theme-auto:checked) .theme-toggle:hover,
  html:has(#theme-auto:checked) .text-resize-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #93c5fd;
  }
}

/* Indicador del tema activo */
#theme-auto:checked  ~ * .theme-toggle[for="theme-auto"],
#theme-light:checked ~ * .theme-toggle[for="theme-light"],
#theme-dark:checked  ~ * .theme-toggle[for="theme-dark"] {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* Tamaño de texto inclusivo: agranda solo los textos más pequeños
   (--fs-xs y --fs-sm) cuando el toggle está activo. El resto de la
   escala tipográfica queda igual para no romper layouts. */
html:has(#text-resize-lg:checked) {
  --fs-xs: clamp(0.95rem, 0.9rem  + 0.3vw, 1.05rem);
  --fs-sm: clamp(1.05rem, 1rem   + 0.35vw, 1.15rem);
}

/* ---------------------------------------------------
   0.1 SCROLL PROGRESS BAR
   Barra fija en la parte superior que muestra el % de scroll
   --------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 300;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-dark) 50%, var(--color-primary) 100%);
  box-shadow: 0 1px 3px rgba(3, 105, 161, 0.3);
  transition: width 0.08s linear;
  pointer-events: none;
  will-change: width;
}

/* ---------------------------------------------------
   20.5 JS-ENHANCED STYLES
   Estilos que solo se aplican cuando JS agrega la clase
   `is-enhanced` o cuando se usan las nuevas features
   --------------------------------------------------- */

/* Sticky header inteligente */
.site-header.is-sticky-enhanced {
  transition: transform 0.3s var(--ease-out-soft), box-shadow var(--transition);
}
.site-header.is-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}
.site-header.is-top {
  box-shadow: none;
}

/* Hero dots: estado activo sincronizado con Swiper */
.hero-dot.is-active {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.4);
}
.hero-dot.is-active::before {
  background: var(--color-accent-bright);
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.3);
}
.hero-dot.is-active::after {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Lightbox enhanced: prev/next + counter */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 6;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev svg,
.lightbox-next svg { width: 22px; height: 22px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
@media (max-width: 720px) {
  .lightbox-prev, .lightbox-next {
    width: 40px; height: 40px;
    top: auto; bottom: 1rem;
  }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
}

.lightbox-counter {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(13, 49, 88, 0.85);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  z-index: 6;
  font-variant-numeric: tabular-nums;
}

/* Scroll animations con IntersectionObserver */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-soft) var(--anim-delay, 0ms),
              transform 0.7s var(--ease-out-soft) var(--anim-delay, 0ms);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Search input de profesionales */
.profe-search-wrap {
  max-width: 420px;
  margin: 0 auto var(--space-4);
  position: relative;
}
.profe-search-input {
  width: 100%;
  font: inherit;
  font-size: var(--fs-sm);
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.profe-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.profe-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-soft);
  pointer-events: none;
}
.profe-card.is-hidden-search { display: none; }
.profe-card mark {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  padding: 0 0.15rem;
  border-radius: 2px;
}
.profe-no-results {
  text-align: center;
  padding: var(--space-4);
  color: var(--color-text-soft);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin-top: var(--space-3);
  display: none;
}

/* Prompt: visible cuando NINGÚN filtro está seleccionado.
   El buscador (.profe-search-wrap) y este prompt son hermanos de los radios
   de filtro, así que se controlan con :checked ~. */
.profe-search-wrap { display: none; }
.profe-prompt {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  color: var(--color-text-soft);
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: profe-fade-in 0.4s var(--ease-out-soft);
}
.profe-prompt-icon { font-size: 2.5rem; line-height: 1; margin-bottom: 0.4rem; }
.profe-prompt strong {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
}
.profe-prompt span { font-size: var(--fs-sm); }

#profe-cat-all:checked   ~ #team-content .profe-search-wrap,
#profe-cat-to:checked    ~ #team-content .profe-search-wrap,
#profe-cat-fono:checked  ~ #team-content .profe-search-wrap,
#profe-cat-psi:checked   ~ #team-content .profe-search-wrap,
#profe-cat-kine:checked  ~ #team-content .profe-search-wrap,
#profe-cat-nutri:checked ~ #team-content .profe-search-wrap,
#profe-cat-med:checked   ~ #team-content .profe-search-wrap,
#profe-cat-ed:checked    ~ #team-content .profe-search-wrap { display: block; }

#profe-cat-all:checked   ~ #team-content .profe-prompt,
#profe-cat-to:checked    ~ #team-content .profe-prompt,
#profe-cat-fono:checked  ~ #team-content .profe-prompt,
#profe-cat-psi:checked   ~ #team-content .profe-prompt,
#profe-cat-kine:checked  ~ #team-content .profe-prompt,
#profe-cat-nutri:checked ~ #team-content .profe-prompt,
#profe-cat-med:checked   ~ #team-content .profe-prompt,
#profe-cat-ed:checked    ~ #team-content .profe-prompt { display: none; }

/* ==== TEAM CONTENT: colapsable ====
   max-height: 20000px es un fallback SEGURO para el caso sin JS.
   El JS (assets/js/main.js, funcion updateTeamMaxHeight) recalcula este
   valor dinamicamente usando scrollHeight + 50px buffer, eliminando el
   magic number y evitando que los cards queden cortados si el sitio crece.
   Mediciones reales (22 cards, 7 grupos):
     - Mobile 1 col : ~16800px
     - Tablet  2 col: ~8570px
     - Desktop 3-4 col: ~7300px
   20000px cubre ~30 cards en mobile, ~70 en desktop. */
.team-content {
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s ease, margin 0.3s ease;
  max-height: 20000px;
  opacity: 1;
}
body.team-collapsed .team-content {
  opacity: 0;
  max-height: 0;
  margin: 0;
  pointer-events: none;
}

/* ==== TEAM FAB: botón flotante ocultar/mostrar ==== */
.team-fab {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 150;  /* debajo del modal (200) y header (100) sigue ok */
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px -6px rgba(3, 105, 161, 0.5);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.team-fab:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: 0 12px 28px -6px rgba(3, 105, 161, 0.6); }
.team-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--color-accent); }
.team-fab-icon { width: 18px; height: 18px; transition: transform 0.3s ease; }
body.team-collapsed .team-fab-icon { transform: rotate(180deg); }

/* El FAB solo se muestra cuando la sección está en viewport
   (controlado por JS vía clase `team-in-view` en <body>). */
body.team-in-view #profe-cat-all:checked   ~ .team-fab,
body.team-in-view #profe-cat-to:checked    ~ .team-fab,
body.team-in-view #profe-cat-fono:checked  ~ .team-fab,
body.team-in-view #profe-cat-psi:checked   ~ .team-fab,
body.team-in-view #profe-cat-kine:checked  ~ .team-fab,
body.team-in-view #profe-cat-nutri:checked ~ .team-fab,
body.team-in-view #profe-cat-med:checked   ~ .team-fab,
body.team-in-view #profe-cat-ed:checked    ~ .team-fab { display: inline-flex; }

/* Ocultar el FAB cuando hay un modal de profesional abierto.
   Triple estrategia anti-fallback (orden de menor a mayor soporte):
   1) `:has()` en <html> con `:target` — CSS-only, browsers modernos.
   2) `:has()` en <body> con `:target` — fallback si html:has no funciona.
   3) Clase `profe-modal-open` en <body> — JS con `hashchange`, 100% confiable.
   Además: visibility hidden + pointer-events none + opacity 0 + translateY
   para que aunque `display:none` falle por specificity, el FAB quede invisible
   y no cliqueable. El z-index del FAB (150) es menor que el del modal (200)
   como red de seguridad final. */
html:has(.profe-modal:target) .team-fab,
body:has(.profe-modal:target) .team-fab,
body.profe-modal-open .team-fab {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transform: translateY(200%) !important;
}

@media (max-width: 720px) {
  .team-fab {
    right: 12px;
    left: 12px;
    bottom: 76px; /* encima de la sticky bar móvil */
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: var(--fs-sm);
  }
}

/* Form validation */
.contact-form input.is-invalid,
.contact-form textarea.is-invalid,
.contact-form select.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* FAQ smooth accordion: aplicar max-height controlado por JS */
.faq-content { overflow: hidden; }

/* Modal enhanced: cursor + transición */
.profe-modal.is-enhanced { /* placeholder para futuras mejoras visuales */ }

/* Backdrop clickeable del modal (cierra al click fuera) */
.profe-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  background: transparent;
}
.profe-modal-content { z-index: 2; }



.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
/* Print stylesheet */
@media print {
  .site-header, .mobile-cta-bar, .floating-whatsapp, .hero-dots,
  .action-section .action-zoom, .profe-photo-cta,
  .contact-map-placeholder, .lightbox-prev, .lightbox-next,
  .toast, .theme-toggle-group, .hero-overlay { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero { min-height: auto; height: auto; margin-top: 0; }
  .container { max-width: 100%; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .section { padding: 1rem 0; page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; }
  .profe-card, .specialty-card, .blog-card, .action-item { page-break-inside: avoid; }
}

/* How we work: pasos numerados */
.how-step { text-align: center; padding: var(--space-3); position: relative; }
.how-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-xl);
  margin: 0 auto var(--space-2);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}
.how-step h3 { font-size: var(--fs-md); font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-1); }
.how-step p { font-size: var(--fs-sm); color: var(--color-text-soft); line-height: 1.6; }
.how-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); position: relative; }
@media (max-width: 880px) { .how-steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .how-steps-grid { grid-template-columns: 1fr; } }

/* Valores — franja horizontal compacta */
.section--tight { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.values-strip {
  list-style: none;
  margin: 0;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}
.value-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}
.value-item-icon {
  width: 22px;
  height: 22px;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}
.value-item-sep {
  width: 1px;
  height: 22px;
  background: var(--color-border-light);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .values-strip { gap: var(--space-2); padding: var(--space-2); }
  .value-item { font-size: var(--fs-sm); }
  .value-item-icon { width: 18px; height: 18px; }
  .value-item-sep { height: 18px; }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  margin-bottom: var(--space-3);
  padding: var(--space-2) 0;
}
.breadcrumbs a { color: var(--color-text-soft); text-decoration: none; transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--color-accent-dark); }
.breadcrumbs-sep { color: var(--color-text-muted); opacity: 0.5; }
.breadcrumbs-current { color: var(--color-primary); font-weight: 500; }

/* 404 */
.error-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-3);
}
.error-404-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-2);
}
.error-404 h1 { font-size: var(--fs-xl); color: var(--color-primary); margin-bottom: var(--space-2); }
.error-404 p { color: var(--color-text-soft); max-width: 500px; margin-bottom: var(--space-4); }
.error-404-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; }

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out-soft);
  pointer-events: none;
  max-width: 90vw;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: var(--color-whatsapp); }
.toast-error   { background: var(--color-error); }

/* Modal: navegacion entre profesionales */
.profe-modal-nav {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}
.profe-modal-nav:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.profe-modal-prev:hover { transform: translateX(-2px); }
.profe-modal-next:hover { transform: translateX(2px); }

/* Map placeholder */
.contact-map-placeholder {
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-primary-soft) 100%);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  cursor: pointer;
  text-align: center;
  padding: var(--space-3);
  transition: all var(--transition);
  font-family: var(--font-heading);
}
.contact-map-placeholder:hover {
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-accent-soft) 100%);
  border-color: var(--color-accent);
  transform: scale(1.005);
}
.contact-map-placeholder svg { width: 48px; height: 48px; color: var(--color-accent-dark); }
.contact-map-placeholder strong { font-size: var(--fs-md); color: var(--color-primary); }
.contact-map-placeholder span { font-size: var(--fs-sm); color: var(--color-text-soft); }
.contact-map-placeholder small { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: 0.5rem; }

/* Iframe de Google Maps insertado via JS al hacer click en el placeholder.
   El iframe se inserta directo en .contact-map (sin wrapper).
   Estilos minimos: que ocupe todo el ancho y mantenga el aspect ratio. */
.contact-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}


/* ---------------------------------------------------
   22. 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;
  }
}

/* ============== prefers-contrast: more (N6) ============== */
@media (prefers-contrast: more) {
  :root {
    --color-border: #000000;
    --color-text: #000000;
    --color-bg: #ffffff;
    --color-accent: #003366;
    --color-accent-dark: #001a33;
  }
  html[data-theme="dark"] {
    --color-border: #ffffff;
    --color-text: #ffffff;
    --color-bg: #000000;
    --color-accent: #66b3ff;
    --color-accent-dark: #99ccff;
  }
  a, button, .btn {
    text-decoration: underline;
  }
  :focus-visible {
    outline: 3px solid currentColor !important;
    outline-offset: 3px !important;
  }
}
/* ============== PERFORMANCE: skip rendering below-fold ============== */
/* P1.3: content-visibility:auto permite al browser skip layout/paint
   de secciones below-the-fold hasta que entran al viewport.
   contain-intrinsic-size reserva el alto para evitar CLS.            */
section:not(.hero):not(.commitment-section):not(.team):not(.faq):not(.blog):not(.testimonials):not(.contact):not(.action-section):not(.specialties) {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}
section.commitment-section,
section.specialties,
section.team,
section.action-section,
section.faq,
section.blog,
section.testimonials,
section.contact {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}
/* Reveal instant cuando entran al viewport (sin fade) */
section.hero { content-visibility: visible; }

/* ============================================================ */
/* DESIGN REVIEW 4 FASES — nuevos componentes                   */
/* ============================================================ */

/* Cambio 3.1 — Stats sutiles entre hero y equipo */
.stats { padding: var(--space-4) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
}
.stats-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius);
  border: 1px solid var(--color-border-light);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease-out-soft),
              box-shadow 0.3s var(--ease-out-soft);
}
.stats-grid > div:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.stats-grid > div .stats-icon {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  margin-bottom: 0.125rem;
}
.stats-grid > div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  line-height: 1.1;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stats-grid > div span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-primary);
  font-weight: 500;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
}

/* Cambio 3.2 — Trust line en hero */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}
.hero-trust svg { flex-shrink: 0; }

/* Cambio 4.1 — CTA intermedio antes del footer */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: var(--space-6) var(--space-4);
  text-align: center;
  border-radius: var(--radius-lg);
  margin: var(--space-5) auto;
  max-width: var(--container);
}
.cta-content { max-width: 640px; margin: 0 auto; }
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
  color: #fff;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--space-4);
  font-size: var(--fs-md);
}
.cta-buttons {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  transform: translateY(-1px);
}

/* Cambio 4.2 — Dot grid pattern en .faq */
/* Background: blanco para evitar franja gris al final del bloque (antes heredaba
   --color-bg-alt de la regla global .faq, .blog, .testimonials). */
.faq { position: relative; background: var(--color-bg); }
.faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--color-primary-soft) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.faq > * { position: relative; z-index: 1; }