/* Estilos base del sitio: mobile-first y diseño limpio */
:root{
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #e8dcc3;
  --surface: #ffffff;
  --text: #0F3A32;
  --muted: #2e5a51;
  --primary: #0F3A32;
  --primary-2: #0b2f29;
  --accent: #0F3A32;
  --danger: #c0392b;
  --border: rgba(15,58,50,.16);
  --shadow: 0 10px 30px rgba(15,58,50,.14);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1100px;
  /* Esquema index2: cabecera → principal → servicios (texto encima de servicios.jpeg) */
  --cabecera-h: min(18vh, 160px);
  --cabecera-min-h: 72px;
  --principal-h: min(28vh, 280px);
  --principal-min-h: 120px;
  /* Collage servicios.jpeg + texto/botones: altura suficiente para que no se recorte al usar overflow:hidden */
  --home-photo-h: min(38vh, 360px);
  --home-photo-min-h: 168px;
  /* Acentos por tratamiento (banner + bloques de detalle) */
  --treat-hidrocolon: #15803d;
  --treat-ozonoterapia: #0284c7;
  --treat-terapia-neural: #7c3aed;
  --treat-acupuntura: #c2410c;
}

/* Anclas de tratamientos: no quedar bajo la barra fija al hacer clic desde el hero */
#tratamiento-hidrocolon,
#tratamiento-ozonoterapia,
#tratamiento-terapia-neural,
#tratamiento-acupuntura{
  scroll-margin-top: 88px;
}

*{ box-sizing: border-box; }

html{
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior: auto;
  }
}

body{
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% -10%, rgba(15,58,50,.16), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(15,58,50,.10), transparent 55%),
              var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main{
  display: block;
  min-width: 0;
}

a{ color: inherit; text-decoration: none; }

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

video{
  background: #0a1f1a;
}

svg{
  max-width: 100%;
  height: auto;
}

/* Layout */
.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}

.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;
}

section{
  padding: 54px 0;
}

/* Intercalado de bloques por scroll:
   secciones impares claras y pares verdes */
main > section:nth-of-type(odd){
  background: #e8dcc3;
}

main > section:nth-of-type(even){
  background: #0F3A32;
}

/* Ajuste de lectura para secciones verdes */
main > section:nth-of-type(even) .section-title,
main > section:nth-of-type(even) h3,
main > section:nth-of-type(even) label{
  color: #f3ead8;
}

main > section:nth-of-type(even) .section-lead,
main > section:nth-of-type(even) .muted,
main > section:nth-of-type(even) p{
  color: #e8dcc3;
}

main > section:nth-of-type(even) .card{
  background: rgba(255,255,255,.08);
  border-color: rgba(232,220,195,.25);
}

main > section:nth-of-type(even) .pill{
  background: rgba(232,220,195,.15);
  border-color: rgba(232,220,195,.3);
  color: #f3ead8;
}

/*
  Orden real de secciones en index: al mover #nosotros tras #servicios,
  nth-of-type(odd/even) ya no coincide con el tema. Fijamos por id:
*/
#equipo{
  background: #e8dcc3;
}

#equipo .section-title,
#equipo h3,
#equipo label{
  color: #0f3a32;
}

#equipo .section-lead,
#equipo .muted,
#equipo p{
  color: var(--muted);
}

#equipo .card{
  background: var(--surface);
  border-color: var(--border);
}

#equipo .pill{
  background: rgba(255,255,255,.75);
  border-color: var(--border);
  color: var(--muted);
}

/*
  Orden en main: testimonios pasa tras #servicios; nth-of-type(odd/even) cambia
  para #videos, #reservar y #contacto — fijamos por id.
*/
/* Después de #nosotros (crema): #videos en verde para intercalar */
#videos{
  background: #0F3A32;
}

#videos .section-title,
#videos h3,
#videos label{
  color: #f3ead8;
}

#videos .section-lead,
#videos .muted,
#videos p{
  color: #e8dcc3;
}

#videos .card{
  background: rgba(255,255,255,.08);
  border-color: rgba(232,220,195,.25);
}

#reservar,
#tratamiento-hidrocolon,
#tratamiento-terapia-neural{
  background: #0F3A32;
}

#reservar .section-title,
#reservar h3,
#reservar label{
  color: #f3ead8;
}

#reservar .section-lead,
#reservar .muted,
#reservar p{
  color: #e8dcc3;
}

#reservar .card{
  background: rgba(255,255,255,.08);
  border-color: rgba(232,220,195,.25);
}

#reservar .pill{
  background: rgba(232,220,195,.15);
  border-color: rgba(232,220,195,.3);
  color: #f3ead8;
}

#reservar .section-title__sub{
  display: block;
  margin-top: 8px;
  font-size: clamp(17px, 3.2vw, 24px);
  font-weight: 600;
  color: #e8dcc3;
  letter-spacing: 0.01em;
}

@media (min-width: 560px){
  #reservar .section-title__sub{
    display: inline;
    margin-top: 0;
    margin-left: 10px;
  }
}

#reservar .booking-city-block{
  margin-top: 14px;
}

#reservar .booking-city-block label{
  color: #e8dcc3;
}

#reservar .form-actions--booking-end{
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
}

@media (min-width: 520px){
  #reservar .form-actions--booking-end{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }
}

#reservar .btn-booking-whatsapp{
  min-height: 48px;
}

#reservar .booking-city-note{
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #d4c4a8;
}

#reservar .booking-city-note strong{
  color: #f3ead8;
  font-weight: 700;
}

#reservar .card .notice{
  color: #e8dcc3;
  border-color: rgba(232, 220, 195, 0.28);
  background: rgba(0, 0, 0, 0.12);
}

#reservar .booking-form-card{
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

#contacto{
  background: #e8dcc3;
}

#contacto .section-title,
#contacto h3,
#contacto label{
  color: #0f3a32;
}

#contacto .section-lead,
#contacto .muted,
#contacto p{
  color: var(--muted);
}

#contacto .card{
  background: var(--surface);
  border-color: var(--border);
}

#contacto .pill{
  background: rgba(255,255,255,.75);
  border-color: var(--border);
  color: var(--muted);
}

/* Testimonios: bloque verde (tras reordenar secciones queda en posición impar) */
#testimonios{
  background: #0F3A32;
}

#testimonios .section-title,
#testimonios h3,
#testimonios label{
  color: #f3ead8;
}

#testimonios .section-lead,
#testimonios .muted,
#testimonios p{
  color: #e8dcc3;
}

#testimonios .card{
  background: rgba(255,255,255,.08);
  border-color: rgba(232,220,195,.25);
}

/* Banner equipo: fondo verde (no blanco de .card) + imagen a todo el ancho */
#equipo .equipo-banner-card{
  padding: 0;
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f3a32;
  line-height: 0;
}

#equipo .equipo-banner__media{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f3a32;
  line-height: 0;
}

/* Imagen completa a todo el ancho del contenedor (sin recorte; se ve toda la figura/cara) */
#equipo .equipo-banner__media img{
  width: 100%;
  height: auto;
  display: block;
}

/* Servicios y tratamientos en franja crema (intercalado con bloques verdes) */
#servicios,
#tratamiento-ozonoterapia,
#tratamiento-acupuntura{
  background: #e8dcc3;
}

/* Sobre nosotros: fondo claro para títulos #0f3a32 legibles */
#nosotros{
  padding-top: 38px;
  background: #e8dcc3;
}

#servicios .section-title,
#servicios h3,
#servicios label,
#tratamiento-ozonoterapia .treatment-split__title,
#tratamiento-acupuntura .treatment-split__title{
  color: #0f3a32;
}

#servicios .section-lead,
#servicios .muted,
#servicios p{
  color: var(--muted);
}

#servicios .card{
  background: var(--surface);
  border-color: var(--border);
}

#servicios .pill{
  background: rgba(255,255,255,.75);
  border-color: var(--border);
  color: var(--muted);
}

/*
  SOBRE NOSOTROS — Reglas bajo #nosotros para ganar a
  main > section:nth-of-type(even) h3/p (la sección es la 4.ª y queda “par”).
*/
#nosotros .about-main-title,
#nosotros .about-block__title{
  font-family: var(--font-sans);
  font-weight: 700;
  color: #0f3a32;
  line-height: 1.2;
  margin: 0 0 0.35em;
  letter-spacing: 0.02em;
}

#nosotros .about-main-title{
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

#nosotros .about-block__title{
  font-size: 1.5rem;
}

#nosotros .about-block{
  margin-bottom: 1.75rem;
}

#nosotros .about-block:last-child{
  margin-bottom: 0;
}

#nosotros .about-block__text,
#nosotros .about-block__list{
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

#nosotros .about-block__text{
  margin: 0;
  max-width: 72ch;
}

#nosotros .about-block__list{
  margin: 0;
  padding-left: 1.35em;
  max-width: 42ch;
}

#nosotros .about-block__list li{
  margin-bottom: 0.35em;
  color: var(--muted);
}

#nosotros .about-block__list li:last-child{
  margin-bottom: 0;
}

@media (min-width: 768px){
  #nosotros .about-main-title{
    font-size: 2.5rem;
  }
  #nosotros .about-block__title{
    font-size: 1.75rem;
  }
}

#servicios .service-card h3{
  color: #0f3a32 !important;
  font-size: 15px !important;
  line-height: 1.25;
  margin: 0 0 6px;
}

#servicios .service-card .service-card__desc{
  font-size: 12.5px !important;
  line-height: 1.4;
  color: var(--muted) !important;
}

.grid-3--servicios-cards{
  margin-bottom: 10px;
}

/* Dos tarjetas: dos columnas en pantallas anchas (evita hueco de tercera columna) */
@media (min-width: 760px){
  #servicios .grid-3--servicios-cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }
}

#servicios .grid-3--servicios-cards .service-card{
  padding: 12px 14px;
}

@media (min-width: 768px){
  #servicios .service-card h3{
    font-size: 16px !important;
  }
  #servicios .service-card .service-card__desc{
    font-size: 13px !important;
  }
}

/* Banner servicios + textos oscuros (mismo bloque que nth-of-type even) */
#servicios .servicios-banner__text,
#servicios .servicios-banner__text p,
#servicios .servicios-banner__text strong{
  color: #031a16;
}

#servicios .servicios-banner__cta-strip{
  color: #010807 !important;
}

/* Títulos de sección: Poppins, verde marca (en secciones claras) */
.section-title{
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f3a32;
}

.section-lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(15,42,34,.03);
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  color: var(--muted);
  font-size: 13px;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(246,251,248,.78);
  border-bottom: 1px solid rgba(15,42,34,.10);
  padding-top: env(safe-area-inset-top, 0);
}

/* Cabecera a ancho completo (debajo del menú) */
.site-header-banner{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--primary);
  line-height: 0;
}

/* Bloque inicio: cabecera + principal + hero servicios (orden index2) */
.home-intro-stack{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

/* Portada / hero */
#inicio.hero-intro{
  background: linear-gradient(165deg, #14532d 0%, #0f3a32 45%, #0a241f 100%);
  padding: 48px 0 52px;
}

.hero-intro__inner{
  max-width: 720px;
}

.hero-intro__eyebrow{
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(243, 234, 216, 0.85);
}

.hero-intro__title{
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f3ead8;
}

.hero-intro__subtitle{
  margin: 0 0 12px;
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.55;
  color: #e8dcc3;
}

.hero-intro__bonus{
  margin: 0 0 20px;
}

.copy-bonus{
  font-size: 13px;
  line-height: 1.55;
  color: #c8e6c9;
  font-style: italic;
  margin: 0 0 16px;
}

.hero-intro__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

#inicio .hero-secondary{
  border-color: rgba(243, 234, 216, 0.45) !important;
  color: #f3ead8 !important;
  background: rgba(255, 255, 255, 0.10) !important;
}

#inicio .hero-secondary:hover{
  background: rgba(255, 255, 255, 0.18) !important;
}

.hero-trust{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-trust li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #e8dcc3;
}

.hero-trust .fa-check{
  color: #4ade80;
  margin-top: 3px;
  flex-shrink: 0;
}

#para-ti{
  background: #e8dcc3;
}

.list-check{
  margin: 0 0 16px;
  padding-left: 1.15em;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.list-check li{
  margin-bottom: 8px;
}

.para-ti__cta{
  margin: 0;
  font-size: 16px;
  color: #0f3a32;
}

#propuesta{
  background: #0f3a32;
}

#propuesta .section-title,
#propuesta .section-lead,
#propuesta .section-lead strong{
  color: #f3ead8;
}

#propuesta .section-lead{
  color: #e8dcc3;
}

#propuesta .list-check--propuesta{
  color: #dcedc8;
}

#propuesta .copy-bonus{
  color: #b2dfbc;
}

.list-check--propuesta{
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.list-check--propuesta li{
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: #dcedc8;
}

.list-check--propuesta li::before{
  content: "✔";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-size: 14px;
}

.propuesta__highlight{
  margin: 0;
  font-size: 16px;
  color: #f3ead8;
}

.propuesta__bulb{
  margin-right: 6px;
}

#por-que-harmonia{
  background: #0f3a32;
}

#por-que-harmonia .section-title{
  color: #f3ead8;
}

.list-check--beneficios{
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 560px;
}

.list-check--beneficios li{
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid rgba(232, 220, 195, 0.15);
  color: #dcedc8;
  font-size: 15px;
}

.list-check--beneficios li::before{
  content: "✔";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 700;
}

.list-check--beneficios li:last-child{
  border-bottom: none;
}

#cta-evaluacion{
  background: #e8dcc3;
}

.cta-eval-inner{
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

#cta-evaluacion .section-title{
  color: #0f3a32;
}

.cta-eval__line{
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 17px;
  color: #0f3a32;
}

.cta-eval__bonus{
  margin-top: 18px;
  color: var(--muted);
}

.btn-lg{
  padding: 14px 22px;
  font-size: 16px;
}

.testimonial-quotes{
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.testimonial-quote{
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(232, 220, 195, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.testimonial-quote p{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #e8dcc3;
  font-style: italic;
}

.testimonial-video-lead{
  margin-top: 8px;
}

.equipo-authority__name{
  margin: 0 0 6px;
  font-size: 20px;
  color: #0f3a32;
}

.equipo-authority__quote{
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--primary-2, #15803d);
  font-style: italic;
  color: #0f3a32;
  background: rgba(15, 58, 50, 0.06);
  border-radius: 0 10px 10px 0;
}

#tratamiento-hidrocolon .treatment-tagline,
#tratamiento-terapia-neural .treatment-tagline{
  margin: -4px 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #c8e6c9;
  text-align: center;
}

#tratamiento-ozonoterapia .treatment-tagline,
#tratamiento-acupuntura .treatment-tagline{
  margin: -4px 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #14532d;
  text-align: center;
}

#tratamiento-hidrocolon .treatment-result-line{
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #a7f3d0;
  text-align: center;
}

.treatment-cta{
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

#tratamiento-ozonoterapia .treatment-cta .btn,
#tratamiento-acupuntura .treatment-cta .btn{
  width: 100%;
  justify-content: center;
}

@media (min-width: 520px){
  #tratamiento-ozonoterapia .treatment-cta .btn,
  #tratamiento-acupuntura .treatment-cta .btn{
    width: auto;
  }
}

.blog-teaser-grid{
  display: grid;
  gap: 14px;
}

@media (min-width: 760px){
  .blog-teaser-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#blog-preview{
  background: #e8dcc3;
}

#faq{
  background: #0f3a32;
}

#faq .section-title,
#faq h3{
  color: #f3ead8;
}

#faq .section-lead{
  color: #e8dcc3;
}

.home-photo-frame{
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  line-height: 0;
  background: var(--primary);
}

.home-photo-frame img{
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.home-photo-frame--cabecera img{
  height: var(--cabecera-h);
  min-height: var(--cabecera-min-h);
  max-height: var(--cabecera-h);
}

.home-photo-frame--principal img{
  height: var(--principal-h);
  min-height: var(--principal-min-h);
  max-height: var(--principal-h);
}

/* Texto y botones sobre servicios.jpeg (collage / fila de tratamientos) */
.servicios-hero__frame{
  position: relative;
  /* Sin esto, el contenido centrado más alto que la franja “sube” y se pinta encima de la foto anterior (principal.jpeg) */
  overflow: hidden;
  z-index: 0;
}

.servicios-hero__frame img{
  height: var(--home-photo-h);
  min-height: var(--home-photo-min-h);
  max-height: var(--home-photo-h);
}

.servicios-hero__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2.5vw, 22px);
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
}

.servicios-hero__inner{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(12px, 2.2vw, 20px);
  pointer-events: none;
}

.servicios-hero__text{
  font-family: var(--font-sans);
  color: #000;
  max-width: min(100%, 920px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.75), 0 1px 2px rgba(255, 255, 255, 0.9);
  pointer-events: auto;
}

.servicios-hero__text p{
  margin: 0 0 0.55em;
  font-size: clamp(18px, 4.2vw, 34px);
  line-height: 1.42;
}

.servicios-hero__text p:last-child{
  margin-bottom: 0;
}

.servicios-hero__cta-line{
  margin-top: 0.35em !important;
  margin-bottom: 0 !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: clamp(16px, 3.6vw, 28px);
}

.servicios-hero__buttons{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(6px, 1.4vw, 14px);
  width: 100%;
  max-width: min(100%, 920px);
  pointer-events: auto;
}

.servicios-hero__btn{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #000;
  text-align: center;
  text-decoration: none;
  padding: clamp(11px, 2.1vw, 17px) clamp(8px, 1.5vw, 12px);
  font-size: clamp(11px, 2.25vw, 16px);
  line-height: 1.25;
  background: #fefaef;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.servicios-hero__btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
}

.servicios-hero__btn:active{
  transform: translateY(0);
}

@media (max-width: 720px){
  .servicios-hero__buttons{
    flex-wrap: wrap;
    justify-content: center;
  }

  .servicios-hero__btn{
    flex: 1 1 calc(50% - 8px);
    min-width: calc(50% - 8px);
    max-width: calc(50% - 8px);
    font-size: clamp(12px, 3.4vw, 15px);
  }
}

@media (max-width: 400px){
  .servicios-hero__btn{
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 100%;
  }
}

.site-header-banner__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(12px, 3vw, 28px) clamp(16px, 5vw, 48px);
  pointer-events: none;
}

.site-header-banner__inner{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
  pointer-events: none;
}

.site-header-banner__actions{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: min(100%, 300px);
  margin: 0;
  pointer-events: auto;
}

.btn-hero-banner{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 26px;
  min-height: 54px;
  border-radius: 16px;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 700;
  color: #0f3a32;
  background: #fefaef;
  border: 1px solid rgba(15, 58, 50, 0.14);
  box-shadow: 0 6px 20px rgba(15, 42, 34, 0.12);
  text-decoration: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.btn-hero-banner:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 42, 34, 0.16);
}

.btn-hero-banner:active{
  transform: translateY(0);
}

@media (max-width: 640px){
  .site-header-banner__overlay{
    align-items: center;
    justify-content: flex-start;
    padding: 14px clamp(14px, 4vw, 28px);
  }

  .site-header-banner__actions{
    max-width: min(100%, 280px);
    gap: 10px;
  }

  .btn-hero-banner{
    min-height: 56px;
    padding: 16px 20px;
    font-size: 15px;
  }
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img{
  height: 120px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
}

.brand-title{
  display: grid;
  gap: 4px;
}

/* Nota: no ocultamos el texto del título para evitar que quede el header vacío
   si el SVG del logo no carga o tarda en renderizarse. */

.brand-title strong{
  font-family: var(--font-sans);
  font-size: clamp(16px, 2.1vw, 20px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f3a32;
  line-height: 1.2;
}

.brand-title span{
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 500;
  color: #0f3a32;
  opacity: 0.88;
  line-height: 1.3;
}

.nav{
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover{
  background: rgba(79,139,119,.10);
  color: var(--text);
}

.nav-cta{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(47,111,95,.25);
}

.hamburger{
  display: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  padding: 10px 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Hero */
.hero{
  padding: 46px 0 30px;
}

/* Sin padding extra: las franjas de foto ya marcan el ritmo (esquema index2) */
.hero.hero--media-only{
  padding: 0;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.hero-panel{
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(79,139,119,.18), rgba(79,139,119,.05));
  border: 1px solid rgba(79,139,119,.22);
}

.hero h1{
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0f3a32;
}

.hero p{
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary{
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn:hover{
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0px);
}

.hero-media{
  padding: 10px;
}

.hero-media .img-frame{
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15,42,34,.10);
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media .img-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Grids */
.grid-3{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.grid-4{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.service-card{
  padding: 18px;
}

.service-card h3{
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.25;
  color: #0f3a32;
}

.muted{
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* Lists/cards */
.card-pad{ padding: 18px; }

.tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Booking */
.form{
  padding: 18px;
}

.form-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

label{
  font-size: 13px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 6px;
}

.field{
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px 12px;
  background: rgba(255,255,255,.85);
  color: var(--text);
  outline: none;
  font-family: inherit;
}

.field:focus{
  border-color: rgba(79,139,119,.55);
  box-shadow: 0 0 0 4px rgba(79,139,119,.14);
}

.form-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.notice{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(79,139,119,.28);
  background: rgba(79,139,119,.08);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.notice-white,
.notice-white strong{
  color: #ffffff !important;
}

/* Videos: Shorts 9:16, rejilla alineada con tarjetas del sitio */
.video-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.video-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.video-card:hover{
  box-shadow: 0 16px 40px rgba(15, 58, 50, 0.12);
  transform: translateY(-2px);
}

.video-card:focus-visible{
  outline: 3px solid rgba(79, 139, 119, 0.55);
  outline-offset: 3px;
}

.video-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 42, 34, 0.1);
  background: #0a1f1a;
}

.video-embed::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10, 31, 26, 0.55) 0%,
    rgba(10, 31, 26, 0) 42%
  );
  opacity: 0.42;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.video-card:hover .video-embed::after{
  opacity: 0.22;
}

.video-embed::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23152a24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 54% 50%;
  background-size: 22px 22px;
}

.video-card:hover .video-embed::before{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumb{
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-link{
  display: block;
}

.video-card__caption{
  margin: 10px 0 0;
  font-size: 13px;
  text-align: center;
}

.form-actions--videos{
  margin-top: 0;
  margin-bottom: 14px;
}

/* Banner servicios.jpeg + texto + botones (antes de vídeos de tratamiento; no afecta .treatment-split) */
.servicios-banner{
  width: 100%;
  max-width: 100%;
  margin: 8px 0 22px;
}

/* Bloque intro (collage + textos + accesos): tarjeta blanca como las filas superiores; distinto de cada tratamiento abajo */
#servicios .servicios-banner--intro{
  margin: 18px 0 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 58, 50, 0.14);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#servicios .servicios-banner--intro .servicios-banner__media{
  background: #eef4f2;
}

.servicios-banner__media{
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--primary);
  /* ~2:1 horizontal; tope de alto para no empujar el layout */
  aspect-ratio: 2 / 1;
  max-height: min(48vh, 440px);
}

.servicios-banner__media > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.servicios-banner__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: clamp(8px, 2vw, 14px);
  padding: clamp(10px, 3vw, 22px);
  box-sizing: border-box;
  pointer-events: none;
}

.servicios-banner__text{
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-sans);
  color: #031a16;
  pointer-events: auto;
}

/* Por encima de main > section:nth-of-type(even) p { color: #e8dcc3 } — #servicios duplicado arriba por orden de secciones */
main > section:nth-of-type(even) .servicios-banner__text,
main > section:nth-of-type(even) .servicios-banner__text p,
main > section:nth-of-type(even) .servicios-banner__text strong{
  color: #031a16;
}

.servicios-banner__text p{
  margin: 0 0 0.45em;
  font-size: clamp(12px, 2.6vw, 18px);
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-decoration-break: clone;
  color: #031a16;
}

.servicios-banner__text p:last-of-type{
  margin-bottom: 0;
}

.servicios-banner__underline{
  text-decoration: underline;
  text-underline-offset: 2px;
}

.servicios-banner__cta-strip{
  margin-top: 0.35em !important;
  padding: 10px 12px !important;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: clamp(11px, 2.2vw, 16px) !important;
  text-transform: uppercase;
  color: #010807 !important;
  background: #fdd835 !important;
  border: 1px solid rgba(15, 58, 50, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

main > section:nth-of-type(even) .servicios-banner__cta-strip{
  color: #010807 !important;
}

.servicios-banner__buttons{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(6px, 1.5vw, 12px);
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  pointer-events: auto;
}

.servicios-banner__btn{
  flex: 1 1 calc(25% - 10px);
  min-width: min(140px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(10px, 2vw, 14px);
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #0f3a32, #0b2f29);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 14px rgba(15, 58, 50, 0.35);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.servicios-banner__btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 58, 50, 0.4);
}

.servicios-banner__btn:active{
  transform: translateY(0);
}

/* Hidrocolon = verde; ozonoterapia = azul (bloques distintos). Resto: acentos propios. */
#servicios .servicios-banner__btn--hidrocolon{
  background: linear-gradient(180deg, var(--treat-hidrocolon), #14532d);
  box-shadow: 0 6px 14px rgba(21, 128, 61, 0.42);
}

#servicios .servicios-banner__btn--ozonoterapia{
  background: linear-gradient(180deg, var(--treat-ozonoterapia), #0369a1);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.38);
}

#servicios .servicios-banner__btn--terapia-neural{
  background: linear-gradient(180deg, var(--treat-terapia-neural), #6d28d9);
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.35);
}

#servicios .servicios-banner__btn--acupuntura{
  background: linear-gradient(180deg, var(--treat-acupuntura), #9a3412);
  box-shadow: 0 6px 14px rgba(194, 65, 12, 0.35);
}

#servicios .servicios-banner__btn--hidrocolon:hover,
#servicios .servicios-banner__btn--ozonoterapia:hover,
#servicios .servicios-banner__btn--terapia-neural:hover,
#servicios .servicios-banner__btn--acupuntura:hover{
  box-shadow: 0 10px 22px rgba(15, 58, 50, 0.26);
}

@media (max-width: 720px){
  /*
    Antes: caja con aspect-ratio + overflow:hidden recortaba texto y botones.
    En móvil: columna (imagen arriba, bloque debajo) para que todo sea visible.
  */
  .servicios-banner__media{
    aspect-ratio: auto;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .servicios-banner__media > img{
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: min(46vw, 220px);
    min-height: 120px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border-radius: 14px 14px 0 0;
  }

  .servicios-banner__overlay{
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 12px 10px 14px;
    gap: 10px;
    pointer-events: auto;
    background: rgba(232, 220, 195, 0.35);
    border-radius: 0 0 14px 14px;
    border: 1px solid rgba(15, 58, 50, 0.12);
    border-top: 0;
  }

  .servicios-banner__text p{
    font-size: 13px;
    line-height: 1.35;
    padding: 5px 8px;
  }

  .servicios-banner__cta-strip{
    font-size: 12px !important;
    padding: 8px 10px !important;
  }

  .servicios-banner__btn{
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
  }
}

@media (max-width: 380px){
  .servicios-banner__btn{
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* Detalle de tratamiento: video + texto con degradado */
.treatment-split{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15,42,34,.03);
  background: var(--surface);
}

/* Vídeo 9:16: columna solo tan ancha como la franja (auto), texto ocupa el resto — sin banda oscura vacía a un lado */
@media (min-width: 721px){
  .treatment-split:not(.treatment-split--image){
    grid-template-columns: auto minmax(0, 1fr);
  }

  .treatment-split--reverse:not(.treatment-split--image){
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Celda del media: con vídeo, el ancho se ajusta al contenido (fit-content), no al 50 % de la tarjeta */
.treatment-split__media{
  position: relative;
  --treat-video-max-h: min(68vh, 480px);
  width: 100%;
  min-height: 100%;
  align-self: stretch;
  margin: 0;
  background: #0a1f1a;
  -webkit-tap-highlight-color: transparent;
}

.treatment-split:not(.treatment-split--image) .treatment-split__media{
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.treatment-split:not(.treatment-split--image) .treatment-split__video::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(58%, 220px);
  background: linear-gradient(
    to right,
    rgba(243, 234, 216, 0) 0%,
    rgba(243, 234, 216, 0.18) 28%,
    rgba(243, 234, 216, 0.55) 58%,
    #f3ead8 92%,
    #f3ead8 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Detalle de tratamiento: sin franja degradada sobre el vídeo */
#servicios .treatment-split:not(.treatment-split--image) .treatment-split__video::after,
#tratamiento-ozonoterapia .treatment-split:not(.treatment-split--image) .treatment-split__video::after,
#tratamiento-hidrocolon .treatment-split:not(.treatment-split--image) .treatment-split__video::after,
#tratamiento-terapia-neural .treatment-split:not(.treatment-split--image) .treatment-split__video::after,
#tratamiento-acupuntura .treatment-split:not(.treatment-split--image) .treatment-split__video::after{
  display: none;
}

.treatment-split--image .treatment-split__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.treatment-split:not(.treatment-split--image) .treatment-split__video{
  position: relative;
  /* Ancho en px derivado de --treat-video-max-h: sin % respecto a padre fit-content (evita ancho 0 y vídeos invisibles) */
  width: calc(var(--treat-video-max-h) * 9 / 16);
  max-width: 100%;
  max-height: var(--treat-video-max-h);
  aspect-ratio: 9 / 16;
  height: auto;
  flex-shrink: 0;
  align-self: center;
}

.treatment-split__video iframe,
.treatment-split__video video,
.treatment-split__video img{
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #0a1f1a;
  outline: none;
}

/* Variante con imagen informativa (misma rejilla que video; proporción tipo banner Canva) */
.treatment-split--image .treatment-split__media{
  --treat-video-max-h: min(56vh, 440px);
  width: 100%;
  max-width: 100%;
  min-height: 0;
  align-self: start;
  aspect-ratio: 4 / 3;
  max-height: var(--treat-video-max-h);
  height: auto;
  margin-left: 0;
  margin-right: 0;
  background: #f5f2eb;
}

.treatment-split--image .treatment-split__media::after{
  display: none;
}

.treatment-split--image .treatment-split__video img{
  object-fit: contain;
  background: #f5f2eb;
}

.treatment-split{
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.treatment-split:hover{
  box-shadow: 0 16px 40px rgba(15, 58, 50, 0.12);
}


/* Misma fila de “tabla”: texto a la izquierda, vídeo a la derecha (como index2.html) */
@media (min-width: 721px){
  .treatment-split--reverse .treatment-split__media{
    grid-column: 2;
    grid-row: 1;
  }

  .treatment-split--reverse .treatment-split__copy{
    grid-column: 1;
    grid-row: 1;
    border-left: none;
    border-right: none;
    padding: 22px 18px 22px 22px;
  }

  .treatment-split--reverse:not(.treatment-split--image) .treatment-split__video::after{
    right: auto;
    left: 0;
    width: min(58%, 220px);
    background: linear-gradient(
      to left,
      rgba(243, 234, 216, 0) 0%,
      rgba(243, 234, 216, 0.18) 28%,
      rgba(243, 234, 216, 0.55) 58%,
      #f3ead8 92%,
      #f3ead8 100%
    );
  }
}

.treatment-split__video video:focus,
.treatment-split__video video:focus-visible,
.treatment-split__video video:active{
  outline: none;
  box-shadow: none;
}

.treatment-split__copy{
  --treatment-fg: #0f3a32;
  --treatment-muted: #2e5a51;
  position: relative;
  z-index: 2;
  min-height: 100%;
  align-self: stretch;
  padding: 22px 22px 22px 18px;
  background: #f3ead8;
  color: var(--treatment-fg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Sin borde vertical: funde vídeo con texto (el degradado ya une ambas zonas) */
  border-left: none;
  border-right: none;
}

.treatment-split__title{
  margin: 0 0 12px;
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f3a32;
  line-height: 1.15;
  text-align: center;
}

.treatment-split__copy p{
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--treatment-muted);
}

.treatment-split__copy p:last-of-type{ margin-bottom: 0; }

.treatment-benefits{
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.treatment-benefits li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--treatment-muted);
}

.treatment-check{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #1fbf71;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 2px;
}

.treatment-note{
  margin: 12px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--treatment-muted);
}

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

  .treatment-split--image .treatment-split__media{
    --treat-video-max-h: min(48vh, 360px);
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .treatment-split:not(.treatment-split--image) .treatment-split__media{
    --treat-video-max-h: min(74vh, 600px);
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .treatment-split:not(.treatment-split--image) .treatment-split__video{
    width: min(100%, calc(var(--treat-video-max-h) * 9 / 16));
    max-height: var(--treat-video-max-h);
    margin-left: auto;
    margin-right: auto;
  }

  .treatment-split:not(.treatment-split--image) .treatment-split__video::after{
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(48%, 140px);
    background: linear-gradient(
      to bottom,
      rgba(243, 234, 216, 0) 0%,
      rgba(243, 234, 216, 0.22) 32%,
      rgba(243, 234, 216, 0.6) 62%,
      #f3ead8 100%
    );
  }

  #servicios .treatment-split:not(.treatment-split--image) .treatment-split__video::after,
  #tratamiento-ozonoterapia .treatment-split:not(.treatment-split--image) .treatment-split__video::after,
  #tratamiento-hidrocolon .treatment-split:not(.treatment-split--image) .treatment-split__video::after,
  #tratamiento-terapia-neural .treatment-split:not(.treatment-split--image) .treatment-split__video::after,
  #tratamiento-acupuntura .treatment-split:not(.treatment-split--image) .treatment-split__video::after{
    display: none;
  }

  .treatment-split__copy{
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(15, 58, 50, 0.1);
    padding: 20px 18px;
  }

  .treatment-split--reverse .treatment-split__copy{
    border-right: none;
  }
}

/* treatment-split en franjas crema (ya no dentro de #servicios) */
#servicios .treatment-split,
#tratamiento-ozonoterapia .treatment-split,
#tratamiento-acupuntura .treatment-split{
  background: #f3ead8;
  border-color: rgba(232, 220, 195, 0.35);
}

#tratamiento-ozonoterapia .treatment-split--accent-ozonoterapia{
  border-left: 5px solid var(--treat-ozonoterapia);
}

#tratamiento-hidrocolon .treatment-split--accent-hidrocolon{
  border-left: 5px solid var(--treat-hidrocolon);
}

#tratamiento-terapia-neural .treatment-split--accent-terapia-neural{
  border-left: 5px solid var(--treat-terapia-neural);
}

#tratamiento-acupuntura .treatment-split--accent-acupuntura{
  border-left: 5px solid var(--treat-acupuntura);
}

/* Hidrocolon y terapia neural: mismo bloque split (verde degradado, texto crema) */
#tratamiento-hidrocolon .treatment-split,
#tratamiento-terapia-neural .treatment-split{
  background: linear-gradient(165deg, #14532d 0%, #0f3a32 42%, #0a241f 100%);
  border-color: rgba(200, 230, 201, 0.25);
}

#tratamiento-hidrocolon .treatment-split__copy,
#tratamiento-terapia-neural .treatment-split__copy{
  background: transparent;
  --treatment-fg: #f3ead8;
  --treatment-muted: #c8e6c9;
}

#tratamiento-hidrocolon .treatment-split__title,
#tratamiento-terapia-neural .treatment-split__title{
  color: #f3ead8;
}

#tratamiento-hidrocolon .treatment-split__copy p,
#tratamiento-hidrocolon .treatment-split__copy li,
#tratamiento-hidrocolon .treatment-note,
#tratamiento-terapia-neural .treatment-split__copy p,
#tratamiento-terapia-neural .treatment-split__copy li,
#tratamiento-terapia-neural .treatment-note{
  color: #dcedc8;
}

#tratamiento-hidrocolon .treatment-benefits li,
#tratamiento-terapia-neural .treatment-benefits li{
  color: #dcedc8;
}

#tratamiento-hidrocolon .treatment-check,
#tratamiento-terapia-neural .treatment-check{
  background: #22c55e;
  color: #fff;
}

#tratamiento-hidrocolon .treatment-split__media,
#tratamiento-terapia-neural .treatment-split__media{
  background: #061512;
}

#tratamiento-ozonoterapia .treatment-split__copy .section-title,
#tratamiento-ozonoterapia .treatment-split__copy h3,
#tratamiento-ozonoterapia .treatment-split__title,
#tratamiento-acupuntura .treatment-split__copy .section-title,
#tratamiento-acupuntura .treatment-split__copy h3,
#tratamiento-acupuntura .treatment-split__title{
  color: #0f3a32;
}

#tratamiento-ozonoterapia .treatment-split__copy p,
#tratamiento-ozonoterapia .treatment-split__copy li,
#tratamiento-ozonoterapia .treatment-note,
#tratamiento-acupuntura .treatment-split__copy p,
#tratamiento-acupuntura .treatment-split__copy li,
#tratamiento-acupuntura .treatment-note{
  color: var(--treatment-muted);
}

/* FAQ accordion */
.accordion{
  padding: 6px;
}

.acc-item{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  overflow: hidden;
}

.acc-item + .acc-item{ margin-top: 10px; }

.acc-btn{
  width: 100%;
  text-align: left;
  padding: 14px 14px;
  min-height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text);
  gap: 10px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.acc-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.acc-panel-inner{
  padding: 0 14px 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.acc-item[data-open="true"] .acc-panel{
  max-height: 260px;
}

/* Testimonials */
.testi{
  padding: 18px;
}

.stars{
  display: inline-flex;
  gap: 4px;
  color: #f2b705;
  margin-top: 6px;
}

.testimonials-grid{
  align-items: start;
}

.testi-video-wrap{
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0a1f1a;
  border: 1px solid var(--border);
}

.testi-video-wrap video{
  width: 100%;
  vertical-align: middle;
  display: block;
  max-height: min(70vh, 520px);
}

/* Footer */
footer{
  padding: 34px 0;
  border-top: 1px solid rgba(15,42,34,.10);
  background: rgba(255,255,255,.35);
}

.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a{
  color: var(--muted);
  font-size: 14px;
}

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

/* Floating WhatsApp */
.whatsapp-float{
  position: fixed;
  z-index: 90;
  right: calc(18px + env(safe-area-inset-right, 0));
  bottom: calc(18px + env(safe-area-inset-bottom, 0));
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1fbf71;
  color: #fff;
  box-shadow: 0 18px 40px rgba(31,191,113,.35);
  border: 2px solid rgba(255,255,255,.65);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.whatsapp-float:hover{
  transform: translateY(-1px);
}

/* Responsivo */
@media (min-width: 760px){
  .hero-grid{ grid-template-columns: 1.2fr .8fr; }
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
  .grid-2{ grid-template-columns: repeat(2, 1fr); }
  .grid-4{ grid-template-columns: repeat(4, 1fr); }
  .form-grid{ grid-template-columns: repeat(2, 1fr); }
  .section-title{ font-size: 38px; }
  .footer-grid{ grid-template-columns: 1.2fr 1fr; }
  .video-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 520px) and (max-width: 759px){
  .video-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px){
  .nav{ display: none; }
  .hamburger{ display: inline-flex; gap: 10px; }
  .brand img{
    height: 98px;
    max-width: 320px;
  }

  /* Evita zoom automático al enfocar campos en iOS Safari */
  .field{
    font-size: 16px;
  }
}

.mobile-nav{
  display: none;
  padding-bottom: 12px;
}

.mobile-nav[data-open="true"]{
  display: block;
}

.mobile-nav a{
  display: block;
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(15,42,34,.08);
  font-size: 15px;
}

.mobile-nav a.nav-cta{
  background: transparent;
  color: var(--text);
  font-weight: 800;
}

/* Menos animación si el sistema pide reducir movimiento (accesibilidad / rendimiento) */
@media (prefers-reduced-motion: reduce){
  .treatment-split,
  .servicios-banner__btn,
  .video-card,
  .btn,
  .whatsapp-float,
  .nav-cta,
  .hamburger,
  .acc-btn{
    transition-duration: 0.01ms !important;
  }

  .servicios-banner__btn:hover,
  .video-card:hover,
  .btn:hover{
    transform: none !important;
  }
}

/* Enfoque visible para teclado (Chrome, Firefox, Safari recientes) */
.nav a:focus-visible,
.mobile-nav a:focus-visible,
.btn:focus-visible,
.servicios-banner__btn:focus-visible,
.servicios-hero__btn:focus-visible,
.treatment-split__video video:focus-visible{
  outline: 3px solid rgba(79, 139, 119, 0.65);
  outline-offset: 3px;
}

