/* =============================================================
   ISADI · Centro de Rehabilitación — Design System
   Anclado al logo oficial (verde hoja + verde bosque).
   NOTA: los hex de --leaf y --pine son una lectura del logo.
   Al tener el PNG en assets/logo.png se muestrean los exactos.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Marca — verdes ISADI (muestreados del logo oficial) */
  --leaf:      #74A142;   /* verde hoja del wordmark "ISADI" (primario) — EXACTO del logo */
  --leaf-600:  #658C39;   /* hover / estados */
  --leaf-700:  #567731;
  --pine:      #1E5233;   /* verde bosque de la bajada "CENTRO DE REHABILITACIÓN" */
  --forest:    #133A22;   /* verde profundo — secciones oscuras / footer */
  --forest-900:#0D2916;

  /* Neutros cálidos con tinte verde */
  --sand:      #F5F8EF;   /* fondo general (off-white con hint verde) */
  --sand-deep: #ECF1E2;   /* fondo alterno de sección */
  --mist:      #E1EAD6;   /* bordes suaves / fills sutiles */
  --cloud:     #FFFFFF;   /* tarjetas */
  --ink:       #223027;   /* texto principal (verde-gris oscuro) */
  --ink-soft:  #4A5B4F;   /* texto secundario */

  /* Acento — la única chispa cálida (usar con disciplina) */
  --coral:     #F26C4F;
  --coral-600: #E0573A;

  /* Semánticos */
  --ring: color-mix(in srgb, var(--leaf) 55%, white);

  /* Tipografía */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* Escala tipográfica fluida */
  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.7vw, 3rem);
  --step-4:  clamp(2.5rem, 1.9rem + 3vw, 4.4rem);
  --step-5:  clamp(3rem, 2rem + 5vw, 5.8rem);

  /* Radios — eco de las formas redondeadas del logo */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Sombras suaves verdosas */
  --shadow-sm: 0 2px 8px rgba(18, 60, 36, 0.06);
  --shadow-md: 0 12px 30px rgba(18, 60, 36, 0.10);
  --shadow-lg: 0 28px 60px rgba(18, 60, 36, 0.14);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--pine);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
::selection { background: color-mix(in srgb, var(--leaf) 30%, white); color: var(--forest); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Utilidades de layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--sand { background: var(--sand-deep); }
.section--forest { background: var(--forest); color: #E7F0E0; }
.section--forest h2, .section--forest h3 { color: #FFFFFF; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-700);
}
.section--forest .eyebrow { color: #A9D18B; }
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); margin-top: 0.7rem; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: var(--step-1); }
.section--forest .section-head p { color: #C7D8BC; }

/* ---------- Botones ---------- */
.btn {
  --_bg: var(--leaf);
  --_fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--leaf-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--pine);
  border-color: color-mix(in srgb, var(--pine) 25%, transparent);
  box-shadow: none;
}
.btn--ghost:hover { --_bg: transparent; background: var(--cloud); border-color: var(--pine); }

.btn--coral { --_bg: var(--coral); }
.btn--coral:hover { background: var(--coral-600); }

.btn--light { --_bg: #fff; --_fg: var(--pine); }
.btn--light:hover { background: #EEF4E7; }

.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--step-1); }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck { border-color: var(--mist); box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img, .brand svg { height: 58px; width: auto; }
.brand-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--leaf);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.brand-fallback small {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: var(--pine);
  font-weight: 700;
  margin-top: 0.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--ink);
  padding: 0.4rem 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--leaf);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: none; background: var(--cloud);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--pine); border-radius: 2px;
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2px; background: var(--pine); border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: var(--step-5);
  font-weight: 800;
  margin-top: 1.1rem;
  color: var(--forest);
}
.hero h1 .accent { color: var(--leaf); position: relative; }
.hero-lead {
  margin-top: 1.4rem;
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 42ch;
}
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-chips {
  margin-top: 2.2rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  list-style: none; padding: 0;
}
.hero-chips li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--cloud);
  border: 1px solid var(--mist);
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--pine);
  box-shadow: var(--shadow-sm);
}
.hero-chips svg { width: 18px; height: 18px; color: var(--leaf); }

/* Panel visual del hero — figura + línea de movimiento */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero-blob {
  position: absolute; inset: 6%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--leaf) 24%, var(--sand)), var(--sand-deep));
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  z-index: 0;
}
.hero-figure {
  position: relative;
  z-index: 1;
  width: 78%;
}
.hero-figure svg { width: 100%; height: auto; overflow: visible; }

/* Trazo continuo animado (línea de movimiento — signature) */
.motion-path {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.motion-path--coral { stroke: var(--coral); }
.draw {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  animation: draw 2.2s cubic-bezier(.6,.05,.2,1) forwards;
}
.draw.delay { animation-delay: 0.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =============================================================
   SERVICIOS
   ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 1.1rem;
}
.service-card {
  background: var(--cloud);
  border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--leaf);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--leaf) 40%, var(--mist));
}
.service-card:hover::after { transform: scaleY(1); }
.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--leaf) 14%, var(--sand));
  border-radius: var(--r-md);
  color: var(--pine);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: var(--step-1); color: var(--pine); }
.service-card p { color: var(--ink-soft); font-size: var(--step-0); }
.service-tag {
  align-self: flex-start;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--leaf-700);
  background: color-mix(in srgb, var(--leaf) 12%, transparent);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
}

/* =============================================================
   INSTALACIONES (videos verticales, silenciados, en loop)
   ============================================================= */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 330px));
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2rem);
}
.facility { margin: 0; }
.facility-media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--mist);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--mist);
}
.facility-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.facility figcaption { padding: 1.1rem 0.2rem 0; }
.facility figcaption h3 { font-size: var(--step-1); color: var(--pine); }
.facility figcaption p { color: var(--ink-soft); font-size: var(--step-0); margin-top: 0.35rem; }

/* =============================================================
   PROCESO (secuencia real → numeración justificada)
   ============================================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 1.3rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  color: color-mix(in srgb, var(--leaf) 65%, var(--forest));
  display: block;
  margin-bottom: 0.5rem;
}
.section--forest .step::before { color: #A9D18B; }
.step h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: var(--step-0); }
.section--forest .step p { color: #C7D8BC; }
.step-line { height: 3px; width: 40px; background: var(--coral); border-radius: 3px; margin-bottom: 0.9rem; }

/* =============================================================
   NOSOTROS / SOBRE
   ============================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--sand-deep);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  border: 1px solid var(--mist);
}
.media-placeholder {
  text-align: center; color: var(--ink-soft); padding: 2rem;
  font-size: var(--step--1);
}
/* Panel de marca interino en Nosotros (hasta tener foto) */
.about-media--brand {
  background: linear-gradient(150deg, color-mix(in srgb, var(--leaf) 20%, var(--sand)), var(--sand-deep));
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.about-motif { position: absolute; inset: 8% 4% auto auto; width: 58%; height: auto; opacity: 0.95; overflow: visible; pointer-events: none; }
.about-quote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--pine);
  margin: 0;
  align-self: end;
  justify-self: start;
  text-align: left;
  max-width: 15ch;
  z-index: 1;
}
.about-caption {
  position: absolute; bottom: 1.1rem; left: clamp(1.5rem,4vw,2.5rem);
  font-size: var(--step--1); font-weight: 700; color: var(--leaf-700);
  letter-spacing: 0.02em;
}
.media-placeholder svg { width: 46px; height: 46px; margin: 0 auto 0.7rem; color: color-mix(in srgb, var(--leaf) 55%, var(--ink-soft)); }
.stat-row { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }
.stat b {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--leaf);
  display: block;
  line-height: 1;
}
.stat span { font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; }
.about-body p + p { margin-top: 1rem; color: var(--ink-soft); }

/* =============================================================
   EQUIPO
   ============================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.2rem;
}
.member {
  background: var(--cloud);
  border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  text-align: center;
}
.member-avatar {
  width: 92px; height: 92px; margin: 0 auto 1rem;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--leaf) 16%, var(--sand));
  display: grid; place-items: center;
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
}
.member h3 { font-size: var(--step-1); color: var(--pine); }
.member .role { color: var(--leaf-700); font-weight: 700; font-size: var(--step--1); margin-top: 0.2rem; }
.member p { color: var(--ink-soft); font-size: var(--step--1); margin-top: 0.5rem; }

/* =============================================================
   OBRAS SOCIALES
   ============================================================= */
.os-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.os-list { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.os-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--cloud);
  border: 1px solid var(--mist);
  padding: 0.75rem 1.2rem;
  border-radius: var(--r-md);
  font-weight: 700;
  color: var(--pine);
  box-shadow: var(--shadow-sm);
}
.os-badge svg { width: 20px; height: 20px; color: var(--leaf); }
.os-note {
  margin-top: 1.6rem;
  padding: 1.2rem 1.4rem;
  background: color-mix(in srgb, var(--leaf) 10%, var(--sand));
  border-left: 4px solid var(--leaf);
  border-radius: var(--r-md);
  font-size: var(--step-0);
  color: var(--ink);
}

/* =============================================================
   TURNOS / FORMULARIO + HORARIOS
   ============================================================= */
.turnos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.form-card {
  background: var(--cloud);
  border: 1px solid var(--mist);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 1.05rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-weight: 700; font-size: var(--step--1); color: var(--pine); }
.form-field .req { color: var(--coral); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--mist);
  border-radius: var(--r-md);
  background: var(--sand);
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--leaf);
  background: var(--cloud);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 18%, transparent);
}
.form-field textarea { resize: vertical; min-height: 92px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.form-card .btn { width: 100%; margin-top: 0.4rem; }
.form-foot { margin-top: 0.9rem; font-size: var(--step--1); color: var(--ink-soft); text-align: center; }

.info-panel { display: flex; flex-direction: column; gap: 1.1rem; }
.info-block {
  background: var(--cloud);
  border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
}
.info-block h3 { font-size: var(--step-1); color: var(--pine); display: flex; align-items: center; gap: 0.6rem; }
.info-block h3 svg { width: 22px; height: 22px; color: var(--leaf); }
.hours { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px dashed var(--mist); font-size: var(--step-0); }
.hours li:last-child { border-bottom: none; }
.hours span:last-child { font-weight: 700; color: var(--pine); }
.contact-lines { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.contact-lines li { display: flex; align-items: center; gap: 0.7rem; font-size: var(--step-0); }
.contact-lines svg { width: 20px; height: 20px; color: var(--leaf); flex-shrink: 0; }

/* =============================================================
   MAPA / UBICACIÓN
   ============================================================= */
.map-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--mist);
  background: var(--sand-deep);
  min-height: 320px;
  display: grid; place-items: center;
}
.map-frame iframe { width: 100%; min-height: 340px; border: 0; display: block; }

/* Tarjeta de ubicación (reemplazable por iframe de Maps) */
.location-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--mist);
  background: var(--cloud);
  box-shadow: var(--shadow-md);
}
.location-map { position: relative; min-height: 380px; background: var(--sand-deep); }
.location-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.location-visual {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(150deg, var(--leaf), var(--pine));
  display: grid; place-items: center;
  color: #fff;
  position: relative;
}
.location-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.5;
}
.location-visual svg { width: 82px; height: 82px; position: relative; z-index: 1; }
.location-info { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 0.7rem; }
.location-info h3 { font-size: var(--step-1); color: var(--pine); }
.location-address { font-size: var(--step-1); color: var(--ink); font-weight: 600; line-height: 1.35; }
.location-hours { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-soft); font-weight: 600; }
.location-hours svg { width: 20px; height: 20px; color: var(--leaf); }
.location-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.6rem; }
@media (max-width: 820px) {
  .location-card { grid-template-columns: 1fr; }
  .location-visual { min-height: 150px; }
  .location-map, .location-map iframe { min-height: 300px; }
}

/* =============================================================
   CTA FINAL
   ============================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--forest), var(--pine));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: var(--step-3); }
.cta-band p { color: #C7D8BC; margin: 1rem auto 2rem; max-width: 50ch; font-size: var(--step-1); }
.cta-band .btn-group { display: inline-flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--forest-900); color: #B9CBAF; padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer .brand-fallback { color: #fff; }
.site-footer .brand-fallback small { color: #A9D18B; }
.footer-about { max-width: 34ch; margin-top: 1rem; font-size: var(--step--1); }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: var(--step-0); margin-bottom: 0.9rem; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.socials a {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  transition: background 0.18s ease, transform 0.18s ease;
}
.socials a:hover { background: var(--leaf); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; color: #fff; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: var(--step--1);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* Divisor de movimiento entre secciones */
.wave-divider { display: block; width: 100%; height: 40px; color: var(--sand-deep); }
.wave-divider path { fill: currentColor; }

/* =============================================================
   REVEAL on scroll
   ============================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .about-grid, .os-wrap, .turnos-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: grid; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    background: var(--cloud);
    padding: 5.5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(.5,.1,.2,1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: var(--step-1); }
  body.nav-open { overflow: hidden; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  .nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
}

@media (max-width: 560px) {
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .draw { animation: none; stroke-dashoffset: 0; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn, .service-card, .socials a { transition: none; }
}
