/* =====================================================================
   HOLÍSTICA KINE — ESTILOS
   =====================================================================
   Organización:
   1. Variables (tokens de diseño)
   2. Reset y base
   3. Tipografía
   4. Botones
   5. Header y navegación
   6. Hero
   7. Banda de servicios (strip)
   8. Sección de servicios con imágenes
   9. Diferencial
   10. Pilates — sección especial
   11. Estética — sección especial
   12. Promos / combos
   13. Equipo
   14. Horarios
   15. Contacto
   16. Footer
   17. Media queries
   ===================================================================== */

/* ── 1. VARIABLES ────────────────────────────────────────────────────── */
:root {
  /* Paleta principal — extraída del logo y los flyers */
  --verde-oscuro:  #3D5C3D;
  --verde-oliva:   #A8BD8A;
  --verde-texto:   #4A6741;
  --verde-claro:   #C8D9B0;
  --beige:         #F2EFE6;
  --beige-medio:   #E8E2D5;
  --crema:         #D4A97A;
  --blanco:        #FFFFFF;
  --ink:           #1A1A1A;
  --ink-soft:      #4A4A42;
  --text-soft:     #6B6B5E;

  /* Tipografía */
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  --script:   'Dancing Script', cursive;

  /* Espaciado */
  --max:      1160px;
  --section:  96px;
  --radius:   14px;
  --radius-sm:8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

/* Contenedor centrado reutilizable */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Foco visible para navegación por teclado */
:focus-visible {
  outline: 2px solid var(--verde-oliva);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 3. TIPOGRAFÍA ───────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 600;
}

/* h1 solo en el hero */
h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  letter-spacing: -0.02em;
}

/* h2 en cada sección */
h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  letter-spacing: -0.01em;
}

/* h3 en tarjetas y bloques */
h3 {
  font-size: clamp(20px, 2.2vw, 26px);
}

p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
  max-width: 62ch;
}

/* Frase de impacto en script (usada con moderación) */
.script {
  font-family: var(--script);
  font-size: clamp(22px, 3vw, 36px);
  color: var(--verde-texto);
  display: block;
  line-height: 1.3;
}

/* Kicker — etiqueta pequeña sobre el h2 de cada sección */
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde-texto);
  border-bottom: 1.5px solid var(--verde-oliva);
  padding-bottom: 3px;
  margin-bottom: 18px;
}

/* ── 4. BOTONES ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s ease, transform .18s ease, box-shadow .2s ease;
}

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

/* Botón principal: relleno verde oscuro */
.btn-primary {
  background: var(--verde-oscuro);
  color: var(--blanco);
}
.btn-primary:hover {
  background: #2e4530;
  box-shadow: 0 10px 28px -10px rgba(61,92,61,.5);
}

/* Botón secundario: contorno sobre fondos claros */
.btn-outline {
  background: transparent;
  color: var(--verde-oscuro);
  border: 1.5px solid var(--verde-oscuro);
}
.btn-outline:hover {
  background: var(--verde-oscuro);
  color: var(--blanco);
}

/* Botón ghost: sobre fondos oscuros o imagen */
.btn-ghost {
  background: rgba(255,255,255,.14);
  color: var(--blanco);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
}

/* Tamaño pequeño */
.btn-sm {
  padding: 10px 20px;
  font-size: 13.5px;
}

/* ── 5. HEADER ───────────────────────────────────────────────────────── */
/* Fijo arriba, se oscurece al hacer scroll (clase .scrolled via JS) */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  /* Degradé oscuro desde arriba: asegura que el logo verde claro
     sea siempre legible aunque la sección de fondo sea blanca o beige */
  background: linear-gradient(to bottom, rgba(30,48,30,.72) 0%, transparent 100%);
  transition: padding .3s, background .3s, box-shadow .3s;
}

header.scrolled {
  padding: 12px 0;
  background: rgba(61, 92, 61, 0.93);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px -8px rgba(0,0,0,.25);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
}

header.scrolled .logo img {
  height: 42px;
}

/* Nav de escritorio */
nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  color: rgba(255,255,255,.85);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}

/* Línea inferior al hover */
nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--verde-claro);
  transition: width .25s ease;
}
nav a:hover { color: var(--blanco); }
nav a:hover::after { width: 100%; }

/* Botón hamburguesa (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* Estado abierto del menú hamburguesa */
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú mobile */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--verde-oscuro);
  padding: 100px 28px 40px;
  flex-direction: column;
  gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--blanco);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}

/* ── 6. HERO ─────────────────────────────────────────────────────────── */
/* Ocupa toda la pantalla, imagen de fondo con overlay verde */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Imagen de fondo del hero */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/imgs/suelo_pelvico_hero.jpg');
  background-size: cover;
  /* El crop se centra en la flor/zona media, no en la cara */
  background-position: center 35%;
  /* Zoom suave al cargar (solo si no hay preferencia de reducción) */
  animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}

/* Overlay: degradé que oscurece más abajo para que el texto sea legible */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,48,30,.55) 0%,
    rgba(20,36,20,.75) 100%
  );
}

/* Contenido sobre el overlay */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 140px 28px 80px;
  margin: 0 auto;
}

.hero-content h1 {
  color: var(--blanco);
  margin-bottom: 20px;
}

.hero-content p {
  color: rgba(255,255,255,.82);
  font-size: 18px;
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Indicador de scroll hacia abajo */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: 11px;
  letter-spacing: .1em;
}

.scroll-hint .line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.4);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── 7. BANDA DE INTRO ───────────────────────────────────────────────── */
.intro-band {
  background: var(--verde-oscuro);
  padding: 32px 0;
}

.intro-band .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  align-items: center;
  justify-content: center;
}

.intro-band .item {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.intro-band .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--verde-claro);
  flex-shrink: 0;
}

/* ── 8. SECCIÓN DE SERVICIOS ─────────────────────────────────────────── */
/*
  Cada servicio es un bloque de dos columnas:
  - Columna imagen: foto a pantalla parcial con overlay y zoom on-scroll
  - Columna texto: título, descripción, beneficios

  Se alternan izquierda/derecha para no verse monótonos.
*/

.section-head {
  margin-bottom: 60px;
}

.section-head h2 { margin-bottom: 12px; }
.section-head p  { max-width: 58ch; }

/* Servicios → kinesiología */
#kinesio { padding: var(--section) 0; background: var(--blanco); }
#pilates  { padding: var(--section) 0; background: var(--beige); }
#suelo    { padding: var(--section) 0; background: var(--blanco); }
#funcional{ padding: var(--section) 0; background: var(--beige); }
#estetica { padding: var(--section) 0; background: var(--blanco); }
#depilacion { padding: var(--section) 0; background: var(--beige); }

/* Layout de dos columnas para cada servicio */
.service-duo {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.15);
}

/* Columna con imagen */
.service-img {
  flex: 1 1 420px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

/* La imagen de fondo del panel */
.service-img-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transition: transform .7s ease;
}

/* Zoom suave al hacer hover sobre la tarjeta */
.service-duo:hover .service-img-inner {
  transform: scale(1.04);
}

/* Overlay sutil sobre la imagen de servicio */
.service-img-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,92,61,.18) 0%, rgba(0,0,0,.08) 100%);
}

/* Columna con el texto */
.service-text {
  flex: 1 1 340px;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--blanco);
}

/* Variante beige para secciones alternas */
.service-text.bg-beige { background: var(--beige); }

.service-text h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 8px;
}

.service-text .tagline {
  font-family: var(--script);
  font-size: 20px;
  color: var(--verde-texto);
  display: block;
  margin-bottom: 20px;
}

.service-text p {
  margin-bottom: 24px;
  max-width: 50ch;
}

/* Lista de beneficios del servicio */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.benefit-list li::before {
  content: '✓';
  color: var(--verde-oscuro);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Galería de múltiples imágenes para un mismo servicio */
.img-stack {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.img-stack .slot {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.img-stack .slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .6s ease;
}

.img-stack .slot:hover img { transform: scale(1.05); }

/* ── 9. DIFERENCIAL ──────────────────────────────────────────────────── */
/* Sección oscura que resalta los dos grandes diferenciales */
#diferencial {
  background: var(--verde-oscuro);
  padding: var(--section) 0;
  position: relative;
  overflow: hidden;
}

/* Textura suave de fondo */
#diferencial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/imgs/kinesio_balance.jpg');
  background-size: cover;
  background-position: center;
  opacity: .10;
}

#diferencial .wrap { position: relative; z-index: 1; }

.dif-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 48px;
}

.dif-card {
  flex: 1 1 300px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 36px 32px;
  backdrop-filter: blur(4px);
}

.dif-card .dif-icon {
  font-size: 32px;
  margin-bottom: 18px;
}

.dif-card h3 {
  color: var(--blanco);
  font-size: 22px;
  margin-bottom: 12px;
}

.dif-card p {
  color: rgba(255,255,255,.72);
  font-size: 15px;
  max-width: 44ch;
}

.dif-card .tag {
  display: inline-block;
  margin-top: 18px;
  background: var(--verde-oliva);
  color: var(--verde-oscuro);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ── 10. PROMOS / COMBOS ─────────────────────────────────────────────── */
#promos {
  padding: var(--section) 0;
  background: var(--blanco);
}

.promos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
}

.promo-card {
  flex: 1 1 220px;
  background: var(--beige);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--beige-medio);
  transition: transform .2s ease, box-shadow .2s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(61,92,61,.25);
}

.promo-card .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--verde-texto);
  margin-bottom: 12px;
}

.promo-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.promo-card .zonas {
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 18px;
  flex: 1;
}

.promo-card .precio {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--verde-oscuro);
  margin-bottom: 6px;
}

.promo-card .aviso {
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.descuento-band {
  margin-top: 40px;
  background: var(--verde-oscuro);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.descuento-band .num {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  color: var(--verde-claro);
  line-height: 1;
}

.descuento-band .txt h3 { color: var(--blanco); font-size: 20px; margin-bottom: 6px; }
.descuento-band .txt p  { color: rgba(255,255,255,.7); font-size: 14px; max-width: 44ch; margin: 0; }

/* ── 11. HORARIOS ────────────────────────────────────────────────────── */
#horarios {
  padding: var(--section) 0;
  background: var(--beige);
}

.horarios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 44px;
}

.horario-card {
  flex: 1 1 200px;
  background: var(--blanco);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
  border-left: 3px solid var(--verde-oliva);
}

.horario-card .dias {
  font-weight: 600;
  font-size: 14px;
  color: var(--verde-texto);
  margin-bottom: 6px;
}

.horario-card .horas {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}

.horario-card .prof {
  font-size: 13px;
  color: var(--text-soft);
}

/* ── 12. CONTACTO ────────────────────────────────────────────────────── */
#contacto {
  padding: var(--section) 0;
  background: var(--blanco);
}

.contacto-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 44px;
}

.contacto-info {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contacto-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--beige-medio);
}

.contacto-row:first-child { border-top: 1px solid var(--beige-medio); }

.c-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-icon svg { width: 17px; height: 17px; }

.contacto-row h3 { font-size: 14px; margin-bottom: 3px; color: var(--ink); }
.contacto-row p  { font-size: 14px; margin: 0; max-width: none; }

/* Tarjeta de WhatsApp */
.wa-card {
  flex: 1 1 340px;
  background: var(--verde-oscuro);
  border-radius: var(--radius);
  padding: 36px 32px;
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wa-card h3 { color: var(--blanco); font-size: 24px; margin-bottom: 10px; }
.wa-card p  { color: rgba(255,255,255,.72); margin-bottom: 24px; max-width: none; }

/* Formulario que abre WhatsApp */
.wa-form { display: flex; flex-direction: column; gap: 12px; }

.wa-form input,
.wa-form select {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: var(--blanco);
  font-family: var(--sans);
  font-size: 14.5px;
}

.wa-form input::placeholder { color: rgba(255,255,255,.5); }

.wa-form select option { background: var(--verde-oscuro); color: var(--blanco); }

/* ── 13. FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 60px 0 28px;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.foot-grid > div { flex: 1 1 180px; }
.foot-brand { flex: 1.4 1 240px !important; }

/* El logo es verde claro con detalles casi blancos (el diente de leon y el texto).
   brightness(1.3) lo hace un poco más luminoso para que el texto sea legible
   sobre el fondo oscuro del footer, sin distorsionar el color base. */
.foot-brand img {
  height: 64px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(1.35);
}
.foot-brand p { font-size: 13.5px; max-width: 32ch; margin: 0; }

.foot-grid h4 { color: var(--blanco); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.foot-grid ul { display: flex; flex-direction: column; gap: 9px; }
.foot-grid a  { font-size: 13.5px; transition: color .2s; }
.foot-grid a:hover { color: var(--blanco); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
  font-size: 12px;
}

/* ── 14. MEDIA QUERIES ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  /* Nav de escritorio oculta, aparece hamburguesa */
  nav, header .btn-primary { display: none; }
  .burger { display: flex; }

  /* Hero: texto centrado en mobile */
  .hero-content {
    text-align: center;
    padding: 120px 28px 60px;
  }
  .hero-content p { margin: 0 auto 28px; }
  .hero-cta { justify-content: center; }

  /* Servicios: la imagen va arriba del texto en mobile */
  .service-duo { flex-direction: column; border-radius: 0; box-shadow: none; }
  .service-img  { min-height: 280px; flex-basis: 280px; order: -1; }
  .service-text { padding: 36px 28px; flex-basis: auto; }

  /* Diferencial */
  .dif-grid { gap: 20px; }

  /* Promos */
  .descuento-band { flex-direction: column; align-items: flex-start; }

  /* Footer */
  .foot-grid > div { flex-basis: 44%; }
}

@media (max-width: 560px) {
  :root { --section: 64px; }

  .foot-grid > div { flex-basis: 100%; }
  .foot-bottom { flex-direction: column; }
  .horarios-grid { gap: 12px; }
  .promos-grid { gap: 12px; }
  .dif-card { flex-basis: 100%; }
}
