/* ============================================================
   Fisio&Move — demo de renovación
   Identidad conservada de la original: negro #030303 + naranja
   #ff6b0b + Oswald/Open Sans. Modernizada: tokens, bandas
   alternas texto/foto, tipografía fluida, scroll reveal.
   Paleta 60-30-10: 60% negro/gris carbón, 30% papel cálido,
   10% naranja acento (CTA).
   ============================================================ */

:root {
  --ink: #0b0b0c;        /* negro moderno (antes #030303) */
  --coal: #16171a;       /* banda secundaria oscura */
  --paper: #f6f4f0;      /* papel cálido */
  --white: #ffffff;
  --accent: #ff6b0b;     /* naranja de marca (idéntico a la original) */
  --accent-hover: #ff8a3d;
  --accent-ink: #a34708; /* acento para texto sobre claro (AA 5.6:1) */
  --txt-on-dark: #f4f3f1;
  --muted-on-dark: #b9b9be;
  --muted-on-light: #55565e;
  --line-on-dark: rgba(255,255,255,.14);
  --line-on-light: rgba(11,11,12,.12);
  --f-display: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Open Sans', system-ui, sans-serif;
  --wrap: 1140px;
  --radius: 4px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--txt-on-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--ink); padding: .8em 1.2em;
  font-weight: 700; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.on-light :focus-visible { outline-color: var(--accent-ink); }

.kicker {
  font-family: var(--f-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .22em; font-size: .78rem; color: var(--accent);
  display: flex; align-items: center; gap: .8em; margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.lead { font-size: 1.12rem; }

/* botones (texto negro sobre naranja: 6.7:1 AA) */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: .95rem; text-decoration: none;
  padding: .95em 1.7em; border-radius: var(--radius); border: 2px solid transparent;
  min-height: 44px; transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--accent); color: var(--ink); }
.btn-solid:hover { background: var(--accent-hover); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-dark { border-color: rgba(11,11,12,.4); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

/* ---------- cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,12,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-on-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo img { height: 40px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--line-on-dark);
  border-radius: var(--radius); color: var(--txt-on-dark);
  font: 600 .8rem var(--f-display); text-transform: uppercase; letter-spacing: .1em;
  padding: .6em 1em; min-height: 44px; cursor: pointer;
}
.site-nav ul { display: flex; gap: 2rem; align-items: center; }
.site-nav a {
  color: var(--txt-on-dark); text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: .5em 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav .nav-cta { color: var(--ink); background: var(--accent); padding: .6em 1.1em; border-radius: var(--radius); }
.site-nav .nav-cta:hover { background: var(--accent-hover); color: var(--ink); }
.site-nav .nav-cta[aria-current="page"] { color: var(--ink); border-bottom: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: clamp(560px, 92vh, 860px);
  display: flex; align-items: center; overflow: hidden;
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
/* overlay oscuro: garantiza AA sobre foto (texto blanco 4.5:1+) */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(78deg, rgba(7,7,8,.94) 0%, rgba(7,7,8,.82) 38%, rgba(7,7,8,.45) 78%, rgba(7,7,8,.55) 100%);
}
.hero-inner { padding: clamp(4rem, 10vh, 7rem) 0; max-width: 700px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem); text-transform: uppercase;
  letter-spacing: .02em; margin-bottom: .35em;
}
.hero h1 .accent { color: var(--accent); display: block; }
.hero .lead { color: var(--muted-on-dark); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-note { margin-top: 1.4rem; font-size: .9rem; color: var(--muted-on-dark); }
.hero-note strong { color: var(--txt-on-dark); }

/* ---------- banda de sellos ---------- */
.sellos { background: var(--ink); border-top: 1px solid var(--line-on-dark); }
.sellos .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 2.6rem 0;
}
.sello { display: flex; gap: 1rem; align-items: flex-start; }
.sello svg { flex: none; width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.sello h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2em; }
.sello p { margin: 0; font-size: .92rem; color: var(--muted-on-dark); }

/* ---------- SERVICIOS: protagonista, bandas alternas ---------- */
.svc {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 540px;
  background: var(--ink);
}
.svc:nth-of-type(even) { background: var(--coal); }
.svc-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5.5rem); }
.svc-media { position: relative; overflow: hidden; min-height: 320px; }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-num {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(3.4rem, 6vw, 5.4rem);
  line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.28);
  margin-bottom: .6rem; display: block;
}
.svc h2, .svc h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: uppercase; }
.svc p { color: var(--muted-on-dark); max-width: 30em; }
.svc .svc-meta { margin: 1.4rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.tag {
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--line-on-dark); border-radius: 99px;
  padding: .35em .9em; color: var(--txt-on-dark);
}
.tag-price { border-color: var(--accent); color: var(--accent); }
.svc-link { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

/* variante página servicios: texto sobre papel */
.svc-detail .svc:nth-of-type(even) { background: var(--ink); }

/* ---------- bandas claras (60-30-10: 30% papel) ---------- */
.band-paper { background: var(--paper); color: #1c1c1f; }
.band-paper .kicker { color: var(--accent-ink); }
.band-paper .kicker::before { background: var(--accent-ink); }
.band-head { padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem; max-width: 720px; }
.band-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); text-transform: uppercase; }
.band-paper .band-head p { color: var(--muted-on-light); }

/* precios */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.price-card {
  background: var(--white); border: 1px solid var(--line-on-light);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column; gap: .35rem;
}
.price-card h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.price { font-family: var(--f-display); font-size: 2.3rem; font-weight: 600; color: var(--ink); }
.price small { font-size: .85rem; font-weight: 400; color: var(--muted-on-light); font-family: var(--f-body); }
.price-card ul { flex: 1; margin: .6rem 0 1.2rem; }
.price-card li { font-size: .9rem; color: var(--muted-on-light); padding: .3em 0 .3em 1.2em; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 0; top: .85em; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.price-card .btn { justify-content: center; margin-top: auto; }

/* ---------- galería scroll-snap ---------- */
.galeria { background: var(--coal); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.galeria .band-head { padding: 0 0 2.2rem; color: var(--txt-on-dark); }
.galeria .band-head p { color: var(--muted-on-dark); }
.gallery-track {
  display: flex; gap: 1rem; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: .8rem;
  scrollbar-color: var(--accent) var(--coal);
}
.gallery-track figure { flex: 0 0 min(420px, 78vw); margin: 0; scroll-snap-align: start; }
.gallery-track img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.gallery-track figcaption { font-size: .82rem; color: var(--muted-on-dark); padding-top: .5em; }
.galeria .gallery-hint { display: block; margin-top: .4rem; font-size: .8rem; color: var(--muted-on-dark); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- testimonios ---------- */
.testimonios { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.testimonios .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: .5rem; }
blockquote.testi {
  margin: 0; background: var(--white); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.2rem;
  display: flex; flex-direction: column; gap: .9rem;
  box-shadow: 0 1px 0 var(--line-on-light);
}
blockquote.testi p { margin: 0; font-size: 1rem; color: #2a2b30; }
blockquote.testi p::before { content: "“"; color: var(--accent-ink); font-family: var(--f-display); font-size: 1.4em; line-height: 0; margin-right: .15em; }
.testi footer { font-size: .85rem; color: var(--muted-on-light); }
.testi footer strong { color: #1c1c1f; display: block; }

/* ---------- banda CTA con foto ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band img.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7,7,8,.93) 20%, rgba(7,7,8,.68) 100%);
}
.cta-band .wrap { padding: clamp(4rem, 9vw, 6.5rem) 0; max-width: 640px; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; }
.cta-band p { color: var(--muted-on-dark); }
.cta-band .hero-ctas { margin-top: 1.6rem; }
.badge {
  display: inline-block; background: var(--accent); color: var(--ink);
  font: 700 .78rem var(--f-body); letter-spacing: .06em; text-transform: uppercase;
  padding: .5em 1em; border-radius: 99px; margin-bottom: 1.2rem;
}

/* ---------- contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 4.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-on-light); }
.contact-list svg { flex: none; width: 22px; height: 22px; stroke: var(--accent-ink); fill: none; stroke-width: 1.8; margin-top: .2rem; }
.contact-list .lbl { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-on-light); }
.contact-list a, .contact-list span.val { color: #1c1c1f; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent-ink); }
.hours-list { width: 100%; }
.hours-list li { display: flex; justify-content: space-between; border: 0; padding: .35rem 0; font-weight: 600; color: #1c1c1f; }
.hours-list span:first-child { color: var(--muted-on-light); font-weight: 400; }
.map-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--accent-ink); }

/* formulario (uno por página, simulado) */
.form-card { background: var(--white); border: 1px solid var(--line-on-light); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.6rem); }
.form-card h2 { font-size: 1.5rem; text-transform: uppercase; }
.form-note { font-size: .9rem; color: var(--muted-on-light); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; color: #1c1c1f; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--f-body); color: #1c1c1f;
  background: var(--paper); border: 1px solid var(--line-on-light);
  border-radius: var(--radius); padding: .8em 1em;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-ink); outline: 2px solid var(--accent-ink); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted-on-light); }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--accent-ink); }
.form-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.form-ok { display: none; background: #ecf6ec; border: 1px solid #3d7a44; color: #1f4d25; border-radius: var(--radius); padding: 1rem 1.2rem; font-weight: 600; }
.form-ok.visible { display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-on-dark); color: var(--muted-on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: clamp(3rem, 7vw, 4.5rem) 0 2.5rem; }
.site-footer h3 { color: var(--txt-on-dark); font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer img { height: 34px; width: auto; margin-bottom: 1rem; }
.site-footer a { color: var(--txt-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-claim { font-family: var(--f-display); text-transform: uppercase; font-size: 1.25rem; color: var(--txt-on-dark); }
.footer-claim .accent { color: var(--accent); }
.site-footer li { padding: .25rem 0; font-size: .95rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; max-width: 300px; }
.footer-hours span:first-child { color: var(--muted-on-dark); }
.footer-bottom { border-top: 1px solid var(--line-on-dark); padding: 1.2rem 0; font-size: .8rem; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; }

/* ---------- CTA sticky móvil ---------- */
.sticky-cta { display: none; }

/* ---------- animaciones de scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }

/* parallax suave solo si el navegador soporta scroll-timeline */
@supports (animation-timeline: view()) {
  .parallax img { animation: par linear both; animation-timeline: view(); animation-range: entry 0% cover 65%; }
  @keyframes par { from { transform: scale(1.1); } to { transform: scale(1); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .parallax img { animation: none !important; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- responsive (mobile-first ajustes) ---------- */
@media (max-width: 940px) {
  .sellos .wrap { grid-template-columns: 1fr; gap: 1.4rem; }
  .prices { grid-template-columns: 1fr 1fr; }
  .testimonios .grid3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; z-index: 99;
    background: var(--ink); border-bottom: 1px solid var(--line-on-dark);
    padding: 1.2rem 4vw 1.6rem; transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .site-nav.open { transform: none; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: .8em 0; font-size: 1.05rem; }
  .site-nav .nav-cta { display: inline-block; margin-top: .6rem; }
  .svc { grid-template-columns: 1fr; min-height: 0; }
  .svc-media { order: -1; min-height: 240px; }
  .svc-text { padding: 2rem 6vw 2.6rem; }
  .hero { min-height: 88vh; }
  .prices { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  body { padding-bottom: 64px; } /* sitio reservado a la barra sticky (WCAG 2.4.11) */
  .sticky-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
    background: var(--ink); border-top: 2px solid var(--accent);
  }
  .sticky-cta a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 62px; font: 600 .95rem var(--f-display); text-transform: uppercase;
    letter-spacing: .08em; text-decoration: none;
  }
  .sticky-cta .st-tel { color: var(--txt-on-dark); }
  .sticky-cta .st-cta { background: var(--accent); color: var(--ink); }
  .sticky-cta svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
}
@media (min-width: 761px) {
  .sticky-cta { display: none; }
}
