/* =============================================================
   CENTRO BIENESTAR FÍSICO AGUSTÍN LÓPEZ — styles.css
   Archetype: Editorial Dark Warm (adaptado — recuperación deportiva)
   =============================================================
   1. Tokens
   2. Reset & base
   3. Utilities
   4. Typography
   5. Components (btn, card, nav, pill)
   6. Sections (hero, nosotros, tratamientos, combos, turnos, ubicacion, footer)
   7. Effects (reveal, tilt, mesh gradient, marquee-less)
   8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1240px;
}

/* ---- Tema oscuro (negro + dorado) — default ---- */
:root,
html[data-theme="dark"] {
  --bg:        #0E0B09;
  --bg-2:      #15110E;
  --bg-3:      #1E1813;   /* cards */
  --bg-4:      #241D16;   /* card hover */
  --text:      #F2EBDA;
  --text-2:    #DDD2BC;
  --text-mute: #8B7E68;
  --accent:      #C9A567;
  --accent-ink:  #17100A;
  --accent-soft: rgba(201,165,103,0.16);
  --accent-glow: rgba(201,165,103,0.45);
  --line:      rgba(242,235,218,0.12);
  --line-2:    rgba(242,235,218,0.22);
  --mesh-1:    rgba(201,165,103,0.26);
  --mesh-2:    rgba(201,165,103,0.14);
  --shadow-color: rgba(0,0,0,0.55);
  --overlay-strong: rgba(14,11,9,0.86);
  --overlay-soft:   rgba(14,11,9,0.72);
}

/* ---- Tema claro (blanco + dorado) ---- */
html[data-theme="light"] {
  --bg:        #FBF7EF;
  --bg-2:      #F2EADA;
  --bg-3:      #FFFFFF;
  --bg-4:      #FAF3E4;
  --text:      #221B10;
  --text-2:    #473C29;
  --text-mute: #7C6F5B;
  --accent:      #9C6B2C;
  --accent-ink:  #FFFBF3;
  --accent-soft: rgba(156,107,44,0.12);
  --accent-glow: rgba(156,107,44,0.35);
  --line:      rgba(34,27,16,0.12);
  --line-2:    rgba(34,27,16,0.22);
  --mesh-1:    rgba(156,107,44,0.16);
  --mesh-2:    rgba(156,107,44,0.08);
  --shadow-color: rgba(34,27,16,0.14);
  --overlay-strong: rgba(251,247,239,0.88);
  --overlay-soft:   rgba(251,247,239,0.74);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  color-scheme: dark;
}
html[data-theme="light"] { color-scheme: light; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

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

section[id] { scroll-margin-top: var(--nav-h); }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head h2 { margin-top: .9rem; }
.section-head p { margin-top: 1rem; color: var(--text-mute); font-size: 1.05rem; }

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

.section-pad { padding-block: clamp(72px, 10vw, 128px); }

/* =============================================================
   4. Typography
   ============================================================= */
h1, .h1 {
  font-family: var(--serif);
  font-weight: 480;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
}
h2, .h2 {
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}
h3, .h3 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
}
em, i { font-style: italic; color: var(--accent); }
.text-mute { color: var(--text-mute); }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), background .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px var(--accent-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.2rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* --- Nav --- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--overlay-strong);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-brand strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}
.nav-brand span {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  position: relative;
  font-size: .92rem;
  color: var(--text-2);
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }

.theme-toggle {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text-2);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }

.nav-toggle {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav.is-open .nav-toggle .icon-menu { display: none; }
.nav.is-open .nav-toggle .icon-close { display: block; }

.nav-mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 2rem 24px;
  gap: .5rem;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background-color .4s var(--ease-out);
}
.nav.is-open .nav-mobile {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.nav-mobile a {
  font-family: var(--serif);
  font-size: 1.6rem;
  padding-block: .6rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.nav-mobile .btn { margin-top: 1.4rem; }

/* --- Card base --- */
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), background .4s var(--ease-out), box-shadow .4s var(--ease-out);
}

/* --- Pillars --- */
.pillars {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  grid-template-columns: 1fr;
}
.pillar {
  padding: 1.9rem;
}
.pillar-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: .5rem; }
.pillar p { color: var(--text-mute); font-size: .95rem; }

/* --- Treatment cards (showcase) --- */
.showcase-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 2.2rem 0 1.2rem;
}
.showcase-label.is-first { margin-top: 0; }
.showcase-track {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.6rem;
  margin: 0 -24px;
  padding-inline: 24px;
  scrollbar-width: auto;
  scrollbar-color: var(--accent) var(--bg-2);
}
.showcase-track::-webkit-scrollbar { height: 10px; }
.showcase-track::-webkit-scrollbar-track { background: var(--bg-2); border-radius: 6px; }
.showcase-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }
.showcase-track::-webkit-scrollbar-thumb:hover { background: var(--accent-ink); }

.treatment-card {
  flex: 0 0 min(320px, 82vw);
  scroll-snap-align: start;
  padding: 2rem 1.7rem;
  will-change: transform;
}
.treatment-card .card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.treatment-card .card-icon svg { width: 28px; height: 28px; }
.treatment-card h3 { margin-bottom: .6rem; }
.treatment-card p { color: var(--text-mute); font-size: .95rem; }
.treatment-card:hover {
  border-color: var(--accent);
  background: var(--bg-4);
  box-shadow: 0 24px 48px -24px var(--shadow-color);
}

/* --- Combo cards --- */
.combo-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
.combo-card {
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.combo-card .combo-eyebrow {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.combo-card .combo-composition {
  color: var(--text-2);
  font-size: .88rem;
  font-weight: 600;
  margin-top: .5rem;
  flex-grow: 0;
}
.combo-card h3 { margin-top: .6rem; }
.combo-card p { color: var(--text-mute); font-size: .95rem; margin-top: .8rem; flex-grow: 1; }
.combo-card .btn { margin-top: 1.6rem; }
.combo-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -26px var(--shadow-color); }

/* --- Recomendador --- */
.recommender { display: none; }
html.has-recommender .recommender { display: block; }

.recommender {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  margin-top: 2.6rem;
}
.recommender-head p.kicker { margin-bottom: .6rem; }
.recommender-head h3 { margin-bottom: .5rem; }
.recommender-head p:last-child { color: var(--text-mute); font-size: .95rem; }

.recommender-question {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin: 1.6rem 0 1.1rem;
}
.recommender-options {
  display: grid;
  gap: .8rem;
}
.recommender-options button {
  text-align: left;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font-size: .96rem;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out), transform .3s var(--ease-out);
}
.recommender-options button:hover {
  border-color: var(--accent);
  background: var(--bg-4);
  transform: translateX(4px);
}

.recommender-progress {
  display: flex;
  gap: .5rem;
  margin-top: 1.8rem;
}
.recommender-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  transition: background .3s var(--ease-out), opacity .3s var(--ease-out);
}
.recommender-dot.is-active { background: var(--accent); }
.recommender-dot.is-done { background: var(--accent); opacity: .5; }

.recommender-eyebrow {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .6rem;
}
.recommender-result h3 { margin-bottom: .6rem; }
.recommender-result p:not(.recommender-eyebrow) { color: var(--text-mute); margin-bottom: 1.5rem; }
.recommender-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.recommender-restart {
  font-size: .88rem;
  color: var(--text-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.recommender-restart:hover { color: var(--text); }

.recommender-divider {
  display: none;
  text-align: center;
  color: var(--text-mute);
  font-size: .85rem;
  margin: 2.2rem 0 0;
}
html.has-recommender .recommender-divider { display: block; }

@media (min-width: 720px) {
  .recommender-options { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

/* --- Turnos pills --- */
.turnos-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2.6rem;
}
.turno-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-3);
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out), transform .3s var(--ease-out);
}
.turno-pill:hover {
  border-color: var(--accent);
  background: var(--bg-4);
  transform: translateX(4px);
}
.turno-pill .turno-name { font-weight: 600; font-size: 1rem; }
.turno-pill .turno-arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.turno-pill .turno-arrow svg { width: 16px; height: 16px; }
.turno-pill:hover .turno-arrow { background: var(--accent); color: var(--accent-ink); transform: translateX(3px); }

.turnos-note {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text-2);
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.turnos-note svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

/* --- Preguntas frecuentes --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-top: 2.6rem;
}
.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.faq-item:hover { border-color: var(--line-2); }
.faq-item[open] { background: var(--bg-4); border-color: var(--accent); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: .9rem;
  color: var(--text-mute);
  font-size: .94rem;
  line-height: 1.6;
}

/* --- Ubicacion --- */
.ubicacion-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
.map-card {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: block;
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease-out);
}
.map-card:hover { border-color: var(--accent); }
.map-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease-out);
}
.map-card:hover img { transform: scale(1.04); }

.ubicacion-info h3 { margin-bottom: 1rem; }
.ubicacion-info p { color: var(--text-mute); margin-bottom: 1.6rem; }
.ubicacion-info .ubicacion-meta-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--text-2);
  font-weight: 600;
  font-size: .92rem;
}
.ubicacion-meta-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.ubicacion-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-mesh {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(closest-side at 78% 22%, var(--mesh-1), transparent 65%),
    radial-gradient(closest-side at 18% 78%, var(--mesh-2), transparent 60%),
    radial-gradient(closest-side at 50% 100%, var(--mesh-2), transparent 70%),
    var(--bg);
  filter: blur(4px);
  animation: meshDrift 22s var(--ease-soft) infinite alternate;
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-layout {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2.4rem;
}
.hero-logo { width: min(60%, 320px); flex-shrink: 0; }
.hero-logo img { width: 100%; height: auto; display: block; }
.hero-inner {
  max-width: 720px;
}
.hero-inner .kicker { margin-bottom: 1.4rem; }
.hero-inner h1 { margin-bottom: 1.4rem; }
.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--text-2);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.6rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  color: var(--text-mute);
}
.hero-meta-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* --- Nosotros --- */
.nosotros-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.nosotros-lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.45;
}
.nosotros-lead em { display: block; }
.nosotros-copy { color: var(--text-mute); margin-top: 1.4rem; font-size: 1rem; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2.4rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  display: block;
}
.footer-brand p { color: var(--text-mute); margin-top: .6rem; max-width: 40ch; font-size: .92rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
}
.footer-links a { color: var(--text-2); font-size: .92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding-top: 1.6rem;
  font-size: .8rem;
  color: var(--text-mute);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.footer-social a { display: inline-flex; align-items: center; color: var(--text-2); transition: color .3s var(--ease-out); }
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 20px; height: 20px; }

/* --- Botón flotante de WhatsApp --- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px var(--accent-glow);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
  animation: floatPulse 2.6s var(--ease-soft) infinite;
  z-index: -1;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 34px -8px var(--accent-glow);
}
@keyframes floatPulse {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; opacity: 0; }
}

/* =============================================================
   7. Effects
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Vistas tipo "una sección a la vez" — solo se activa si JS corrió con éxito.
   Sin JS, todas las secciones quedan visibles y se navega con scroll normal. */
html.has-view-switch [data-view] { display: none; }
html.has-view-switch [data-view].is-active {
  display: block;
  animation: viewEnter .5s var(--ease-out);
}
@keyframes viewEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes meshDrift {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.15) rotate(8deg); }
}

.tilt { transform-style: preserve-3d; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .combo-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (min-width: 720px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .ubicacion-grid { grid-template-columns: 1.1fr 1fr; }
  .nosotros-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .hero-layout { flex-direction: row; justify-content: space-between; gap: 3rem; }
  .hero-logo { width: min(34%, 380px); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .turnos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .hero-sub { max-width: 50ch; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  html { scroll-behavior: auto; }
}
