/* ══════════════════════════════════════════════════════════════════════
   NEUROPRAXIS — main.css (v2 — lamina-match rewrite 2026-09-28)
   Plus Jakarta Sans 600/700 (display) + Inter 400/500/600 (body)
   ══════════════════════════════════════════════════════════════════════ */

/* ── @font-face ─────────────────────────────────────────────────────── */

/* Plus Jakarta Sans 600 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Plus Jakarta Sans 700 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 500 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── :root — contrato de tokens (04a §1) ────────────────────────────── */

:root {
  /* COLOR — paleta NEUROPRAXIS */
  --canvas-top:       #F2F6F8;
  --canvas-bottom:    #E5EDF2;
  --ink:              #142F46;
  --ink-soft:         #4F6475;
  --gray:             #4F6475;
  --border:           rgba(18, 57, 91, 0.14);
  --accent:           #C8823C;
  --accent-hover:     #BD7937;
  --accent-active:    #B87735;
  --surface-dark:     #12395B;

  /* Extended palette — client-specific */
  --deep:             #0C263D;
  --ink-on-dark:      #F2F6F8;
  --ink-on-accent:    #071724;
  --border-on-dark:   rgba(242, 246, 248, 0.25);
  --accent-link:      #865022;
  --glass-light:      rgba(242, 246, 248, 0.94);
  --glass-dark:       rgba(18, 57, 91, 0.95);

  /* SPACING — scale of 8, fixed across all sites */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  /* RADII — fixed across all sites */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* SHADOWS — tinted toward ink, never pure black */
  --shadow-sm:   0 1px 2px rgba(12, 38, 61, 0.06);
  --shadow-md:   0 8px 24px rgba(12, 38, 61, 0.10);
  --shadow-lg:   0 20px 50px rgba(12, 38, 61, 0.16);
  --shadow-glow: 0 0 30px rgba(200, 130, 60, 0.30);

  /* MOVEMENT — two layers, fixed */
  --ease-out:       cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out:    cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer:    cubic-bezier(0.32, 0.72, 0, 1);
  --ease-signature: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-press:    140ms;
  --dur-ui:       200ms;
  --dur-overlay:  300ms;
  --dur-entrance: 800ms;

  /* TYPOGRAPHY — two families */
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

section[id] { scroll-margin-top: 96px; }

@media (min-width: 1024px) {
  section[id] { scroll-margin-top: 112px; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas-top);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Secciones con foto a sangre: el <picture> es un envoltorio y hereda height:auto
   del reset de arriba, asi que colapsa a la altura natural de la imagen y deja un
   hueco abajo. Tiene que llenar su contenedor para que el cover de la <img> mida
   contra la seccion completa. */
.hero-bg picture,
.motivos-image picture,
.diferenciacion-image picture,
.domicilio-image picture,
.galeria-item picture,
.miguel-retrato picture,
.rehab-foto picture {
  display: block;
  width: 100%;
  height: 100%;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-3);
  z-index: 10000;
  padding: var(--space-1) var(--space-2);
  background: var(--accent);
  color: var(--ink-on-accent);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-1); }

/* ── Focus styles ───────────────────────────────────────────────────── */

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

/* ── Noise grain texture ───────────────────────────────────────────── */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Shared layout ──────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1600px; /* tope de ancho: 1600px, centrado. Lamina compuesta a 992 */
  margin: 0 auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* ══════════════════════════════════════════════════════════════════════
   SHARED COMPONENTS
   ══════════════════════════════════════════════════════════════════════ */

/* ── Amber underline under H2 (filo ámbar) ─────────────────────────── */

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin-top: var(--space-2);
}

.section-title--light::after {
  /* Same rule, works on dark backgrounds too */
}

/* ── Amber rule (standalone, not on a title) ────────────────────────── */

.amber-rule {
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: var(--space-2) 0;
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--dur-press) ease,
              transform var(--dur-press) ease,
              box-shadow var(--dur-press) ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--ink-on-accent);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-active); }

/* ── Link with arrow (underlined text + arrow) ─────────────────────── */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border);
  min-height: 44px;
  transition: text-decoration-color var(--dur-ui) ease;
}

.link-arrow:hover {
  text-decoration-color: var(--ink);
}

.link-arrow span {
  transition: transform var(--dur-ui) var(--ease-out);
}

.link-arrow:hover span {
  transform: translateX(4px);
}

.link-arrow--light {
  color: var(--ink-on-dark);
  text-decoration-color: var(--border-on-dark);
}

.link-arrow--light:hover {
  text-decoration-color: var(--ink-on-dark);
}

/* ══════════════════════════════════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-overlay) var(--ease-out),
              box-shadow var(--dur-overlay) var(--ease-out),
              border-color var(--dur-overlay) var(--ease-out);
}

.site-header.scrolled {
  background: var(--glass-light);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px; /* alineado con .container */
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 1024px) {
  .site-header { height: 88px; }
  .header-inner { padding: 0 var(--space-6); max-width: 1600px; }
}

.header-logo img {
  height: 38px;
  width: auto;
}

@media (min-width: 1024px) {
  /* Sin bajada: se puede dar mas presencia sin romper el alto de barra del 04a */
  .header-logo img { height: 46px; }
}

/* Desktop nav */
.header-nav { display: none; }

@media (min-width: 768px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
}

.header-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  transition: opacity var(--dur-ui) ease;
}

@media (hover: hover) and (pointer: fine) {
  .header-nav a:hover { opacity: 0.6; }
}

.header-cta { display: none; }

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
    min-height: 44px;
    padding: var(--space-1) var(--space-2);
    background: var(--accent);
    color: var(--ink-on-accent);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    align-items: center;
    gap: var(--space-1);
    transition: background var(--dur-press) ease;
    white-space: nowrap;
  }
  .header-cta:hover { background: var(--accent-hover); }
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

.menu-toggle svg { width: 24px; height: 24px; }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--glass-light);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-overlay) var(--ease-out),
              visibility var(--dur-overlay) var(--ease-out);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav .mobile-nav-cta { margin-top: var(--space-3); }

.mobile-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.mobile-close svg { width: 24px; height: 24px; }

/* ══════════════════════════════════════════════════════════════════════
   SECTION 1 — HERO (Portada)
   Background: --canvas-top
   ══════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: clamp(500px, 66vw, 100svh); /* lámina ratio 656/992 ≈ 0.66 */
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #f0f5f8 0%, #f5f9fb 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20% 0; /* extra height for parallax yPercent:15 without gap */
  z-index: 1;
}

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

/* Scrim on the left for text readability */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(242, 246, 248, 0.92) 0%,
    rgba(242, 246, 248, 0.80) 35%,
    rgba(242, 246, 248, 0.40) 55%,
    rgba(242, 246, 248, 0) 70%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  /* 900 para que el titular entre en 2 lineas a 56px: medido, 692px no alcanzaba */
  max-width: 900px;
  padding: 96px var(--space-3) var(--space-6);
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 96px var(--space-6) var(--space-6);
  }
}

.hero-kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  /* 04a 9.1: maximo 2 lineas en escritorio. Medido a 1440. */
  max-width: 26ch;
  margin-bottom: var(--space-3);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* Decorative trace — SVG curve on the right side of the hero */
.hero-trace {
  position: absolute;
  right: 24%;
  top: 0;
  width: 160px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Mobile hero */
@media (max-width: 767px) {
  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero-content {
    padding: 96px var(--space-3) var(--space-4);
    order: 1;
  }

  .hero-bg {
    position: relative;
    order: 2;
    height: 260px;
    flex-shrink: 0;
  }

  .hero-bg::after {
    background: linear-gradient(
      to bottom,
      rgba(242, 246, 248, 0.6) 0%,
      rgba(242, 246, 248, 0) 40%,
      transparent 100%
    );
  }

  .hero-trace { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 2 — Donde te duele
   Full-bleed photo background (man left, dark-blue right).
   Content overlaid on the right half — the photo's own blue IS the bg.
   ══════════════════════════════════════════════════════════════════════ */

.motivos {
  background: var(--surface-dark);
  color: var(--ink-on-dark);
  position: relative;
  overflow: hidden;
}

.motivos-grid {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

@media (min-width: 768px) {
  .motivos-grid {
    grid-template-columns: 45fr 55fr; /* photo ~45%, content ~55% — centers text in its space */
    min-height: max(500px, 56.3vw); /* image ratio 1672/941 ≈ 1.78 */
  }
}

.motivos-image {
  overflow: hidden;
}

@media (min-width: 768px) {
  .motivos-image {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
}

.motivos-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

@media (max-width: 767px) {
  .motivos-image { height: 300px; }
}

.motivos-content {
  padding: var(--space-6) var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .motivos-content {
    grid-column: 2;
    position: relative;
    z-index: 1;
    padding: 48px var(--space-5) 72px var(--space-5); /* equal L/R centers block */
  }

  .motivos-subtitle {
    margin-bottom: var(--space-3); /* 24px — tighter than base to keep content within image ratio */
  }
}

.motivos-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-on-dark);
  margin-bottom: var(--space-2);
}

.motivos-subtitle {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: rgba(242, 246, 248, 0.80);
  max-width: 80ch;
  margin-bottom: var(--space-5);
}

.motivos-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-on-dark);
}

/* Motivo row: name | vertical sep | desc | arrow
   Fixed first column (13ch) so seps and descs align across rows. */
.motivo-row {
  display: grid;
  grid-template-columns: 13ch 1px 1fr auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-on-dark);
  color: var(--ink-on-dark);
  text-decoration: none;
  min-height: 44px;
  transition: opacity var(--dur-ui) ease;
}

.motivo-row:hover { opacity: 0.8; }

@media (max-width: 599px) {
  .motivo-row {
    grid-template-columns: 1fr auto;
    gap: var(--space-2);
  }
  .motivo-sep,
  .motivo-desc { display: none; }
}

.motivo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.2;
  min-width: 140px;
}

.motivo-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border-on-dark);
}

.motivo-desc {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(242, 246, 248, 0.75);
}

.motivo-arrow {
  font-size: 20px;
  transition: transform var(--dur-ui) var(--ease-out);
}

.motivo-row:hover .motivo-arrow {
  transform: translateX(4px);
}

/* Wide viewport: more breathing room to fill the taller section */
@media (min-width: 1200px) {
  .motivos-content {
    padding: clamp(96px, 10vw, 220px) var(--space-6) clamp(96px, 10vw, 220px) var(--space-3);
  }
  .motivos-subtitle {
    margin-bottom: var(--space-6); /* 64px (was --space-5 = 48px) */
  }
  .motivo-row {
    padding: var(--space-4) 0; /* 32px (was --space-3 = 24px) */
  }
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 2 — Opiniones (maqueta)
   Dark background between hero and miguel. Cards in horizontal scroll.
   ══════════════════════════════════════════════════════════════════════ */

.opiniones {
  background: linear-gradient(160deg, #112f4d 0%, #0d2540 100%);
  color: var(--ink-on-dark);
  padding: 80px 0;
}

@media (max-width: 767px) {
  .opiniones { padding: var(--space-5) 0; }
}

.opiniones h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-on-dark);
  margin-bottom: var(--space-3);
}

.opiniones-aviso {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: var(--accent);
  background: rgba(200, 130, 60, 0.12);
  border: 1px solid rgba(200, 130, 60, 0.30);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  margin-bottom: var(--space-5);
}

/* ---- Marquee: continuous horizontal scroll ---- */
.opiniones-marquee {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  padding-bottom: var(--space-2);
}

.opiniones-marquee:active { cursor: grabbing; }

.opiniones-track {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  animation: opiniones-scroll 45s linear infinite;
}

.opiniones-track:hover,
.opiniones-marquee.is-dragging .opiniones-track {
  animation-play-state: paused;
}

@keyframes opiniones-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.opinion-card {
  background: rgba(242, 246, 248, 0.06);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 320px;
  min-width: 320px;
  flex-shrink: 0;
}

@media (max-width: 479px) {
  .opinion-card {
    width: 280px;
    min-width: 280px;
  }
}

.opinion-card p {
  font-size: clamp(15px, 1vw, 16px);
  line-height: 1.6;
  color: rgba(242, 246, 248, 0.85);
  flex: 1;
}

.opinion-card cite {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-on-dark);
}

/* Reduced motion: static row, scrollable by hand */
@media (prefers-reduced-motion: reduce) {
  .opiniones-track {
    animation: none !important;
  }
  .opiniones-marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 3 — Miguel Ángel Arenas (patrón chef, sin retrato)
   Name + stats as visual anchor, bio in prose below.
   Background: --canvas-top
   ══════════════════════════════════════════════════════════════════════ */

.miguel {
  background: linear-gradient(145deg, #eef4f8 0%, #f5f9fb 100%);
  padding: 120px 0;
}

@media (max-width: 767px) {
  .miguel { padding: var(--space-6) 0; }
}

/* ---- Two-column grid: portrait left, text right ---- */
.miguel-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .miguel-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-5);
    align-items: start;
  }
}

/* ---- Portrait column ---- */
.miguel-retrato {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.miguel-retrato img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .miguel-retrato {
    position: sticky;
    top: 120px;
  }
}

/* ---- Text column: kicker + name + role + stats + bio + bottom ---- */
.miguel-kicker {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.miguel-nombre {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.miguel-nombre-first {
  display: block;
  font-size: clamp(36px, 5vw, 56px);
}

.miguel-nombre-last {
  display: block;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--ink-soft);
}

.miguel-cargo {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
}

/* ---- Stats row ---- */
.miguel-stats {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.miguel-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.miguel-stat-label {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.miguel-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- Bio column prose ---- */
.miguel-bio p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 65ch;
  margin-bottom: var(--space-3);
}

.miguel-bio p:last-child {
  margin-bottom: 0;
}

.miguel-bio strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Bottom bar ---- */
.miguel-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.miguel-credentials {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 4 — Cuerpo y sistema nervioso (Diferenciacion)
   Full-bleed photo background (spine model right, dark-blue left).
   Text overlaid on the left half. Ratio matches image 1672/941 ≈ 1.78.
   ══════════════════════════════════════════════════════════════════════ */

.diferenciacion {
  position: relative;
  background: var(--deep);
  color: var(--ink-on-dark);
  overflow: hidden;
}

.diferenciacion-grid {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

@media (min-width: 768px) {
  .diferenciacion-grid {
    grid-template-columns: 1fr 1fr;
    min-height: max(500px, 56.3vw); /* image ratio 1672/941 */
  }
}

.diferenciacion-text {
  position: relative;
  z-index: 2;
  padding: var(--space-6) var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .diferenciacion-text {
    grid-column: 1;
    padding: 48px var(--space-5) 72px var(--space-5); /* equal L/R centers block */
  }
}

@media (min-width: 1200px) {
  .diferenciacion-text {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

.diferenciacion-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-on-dark);
  margin-bottom: var(--space-3);
}

.diferenciacion-text p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: rgba(242, 246, 248, 0.85);
  max-width: 44ch;
  margin-bottom: var(--space-3);
}

.diferenciacion-editorial {
  font-weight: 500;
  color: rgba(242, 246, 248, 0.65);
  margin-bottom: var(--space-3);
}

.diferenciacion-image {
  overflow: hidden;
}

@media (min-width: 768px) {
  .diferenciacion-image {
    position: absolute;
    inset: -20% 0; /* extra height for parallax yPercent:12 without gap */
    z-index: 0;
  }
}

.diferenciacion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center; /* spine model on the right */
}

@media (max-width: 767px) {
  .diferenciacion-image {
    height: 300px;
  }
  .diferenciacion-image img {
    opacity: 0.55;
  }
}

/* Decorative traces that cross sections */
.section-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 5 — Antes de tu primera consulta
   Two columns with vertical separator.
   Background: --canvas-bottom
   ══════════════════════════════════════════════════════════════════════ */

.antes {
  background: linear-gradient(155deg, #e3ecf2 0%, #eaf3f8 100%);
  padding: 120px 0;
}

@media (max-width: 767px) {
  .antes { padding: var(--space-6) 0; }
}

.antes-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .antes-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-5);
  }

  .antes-body-col {
    border-left: 1px solid var(--border);
    padding-left: var(--space-5);
  }
}

.antes-title-col h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.antes-title-col h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin-top: var(--space-2);
}

.antes-body-col p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: var(--space-3);
}

.antes-body-col .btn {
  margin-top: var(--space-2);
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 5B — Rehabilitación y fisioterapia
   Dark background, text left + photo right.
   ══════════════════════════════════════════════════════════════════════ */

.rehabilitacion {
  background: linear-gradient(155deg, #e3ecf2 0%, #eaf3f8 100%);
  color: var(--ink);
  padding: 120px 0;
  overflow: hidden;
}

@media (max-width: 767px) {
  .rehabilitacion { padding: var(--space-6) 0; }
}

.rehab-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .rehab-grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-5);
    align-items: start;
  }
}

.rehab-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.rehab-text > p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: var(--space-3);
}

.rehab-servicios {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4) 0;
  border-top: 1px solid var(--border);
}

.rehab-servicios li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.5;
  color: var(--ink);
  padding-left: var(--space-3);
  position: relative;
}

.rehab-servicios li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.rehab-equipo-titulo {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.rehab-equipo {
  font-size: clamp(15px, 1vw, 16px);
  line-height: 1.6;
  color: var(--gray);
  max-width: 55ch;
  margin-bottom: var(--space-4);
}

.rehab-text .btn {
  margin-top: var(--space-1);
}

.rehab-foto {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .rehab-foto {
    position: sticky;
    top: 120px;
  }
}

.rehab-foto img {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 8 — Deportistas
   Two columns, same pattern as antes/miguel. Light background.
   ══════════════════════════════════════════════════════════════════════ */

.deportistas {
  background: linear-gradient(160deg, #112f4d 0%, #0d2540 100%);
  color: var(--ink-on-dark);
  padding: 120px 0;
}

@media (max-width: 767px) {
  .deportistas { padding: var(--space-6) 0; }
}

.deportistas-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .deportistas-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-5);
  }

  .deportistas-body-col {
    border-left: 1px solid var(--border-on-dark);
    padding-left: var(--space-5);
  }
}

.deportistas-title-col h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-on-dark);
}

.deportistas-title-col h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin-top: var(--space-2);
}

.deportistas-body-col p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: rgba(242, 246, 248, 0.85);
  max-width: 50ch;
  margin-bottom: var(--space-3);
}

.deportistas-body-col .btn {
  margin-top: var(--space-2);
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 6 — Precios
   H2 with amber underline. Two rows with vertical separator.
   Background: --surface-dark
   ══════════════════════════════════════════════════════════════════════ */

.precios {
  background: linear-gradient(160deg, #143d61 0%, #0f3354 100%);
  color: var(--ink-on-dark);
  padding: 48px 0 56px; /* lámina: compact vertical rhythm */
}

@media (max-width: 767px) {
  .precios { padding: var(--space-5) 0; }
}

.precios h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-on-dark);
  margin-bottom: var(--space-3);
}

.precio-row {
  display: grid;
  grid-template-columns: 16ch 1px 1fr;
  gap: var(--space-3);
  align-items: baseline;
  padding: var(--space-2) 0;
  border-top: 1px solid var(--border-on-dark);
}

.precio-row:last-of-type {
  border-bottom: 1px solid var(--border-on-dark);
}

.precio-service {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.25;
}

.precio-sep {
  width: 1px;
  align-self: stretch;
  min-height: 48px;
  background: var(--border-on-dark);
  flex-shrink: 0;
}

@media (max-width: 599px) {
  .precio-row {
    grid-template-columns: 1fr;
  }
  .precio-sep { display: none; }
}

.precio-right {
  display: flex;
  flex-direction: column;
}

.precio-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 6vw, 78px);
  line-height: 1.05;
  color: var(--ink-on-dark);
  letter-spacing: -0.02em;
}

.precio-currency {
  font-size: 0.45em;
  font-weight: 600;
  opacity: 0.7;
}

.precio-note {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(242, 246, 248, 0.60);
  margin-top: var(--space-1);
}

.precios-payment {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(242, 246, 248, 0.60);
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-on-dark);
}

.precios-cta {
  margin-top: var(--space-3);
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 7 — Consulta a domicilio
   Full-bleed background photo, horizontal gradient overlay left→right,
   text on top. Ratio matches lámina (~1.95:1).
   ══════════════════════════════════════════════════════════════════════ */

.domicilio {
  background: var(--canvas-top);
  overflow: hidden;
  position: relative;
}

.domicilio-grid {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

@media (min-width: 768px) {
  .domicilio-grid {
    grid-template-columns: 1fr 1fr; /* text in col 1, image absolute behind both */
    min-height: max(400px, 51vw); /* lámina ratio ~1.95:1 */
  }

  /* Gradient overlay: opaque canvas-top on the left, fades to transparent */
  .domicilio-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
      #F2F6F8 0%,
      #F2F6F8 38%,
      rgba(242,246,248,0.95) 45%,
      rgba(242,246,248,0.55) 55%,
      rgba(242,246,248,0.12) 65%,
      rgba(242,246,248,0) 75%
    );
    pointer-events: none;
  }
}

.domicilio-text {
  padding: var(--space-6) var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .domicilio-text {
    grid-column: 1;
    position: relative;
    z-index: 2;
    padding: 96px var(--space-5) 96px var(--space-5); /* equal L/R */
  }
}

@media (min-width: 1200px) {
  .domicilio-text {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }
}

.domicilio-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(31px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.domicilio-text > p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: var(--space-3);
}

.domicilio-zones {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.domicilio-text .btn {
  align-self: flex-start;
}

.domicilio-image {
  overflow: hidden;
}

@media (min-width: 768px) {
  .domicilio-image {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
}

.domicilio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center; /* push briefcase right, away from text */
}

@media (max-width: 767px) {
  .domicilio-image {
    height: 280px;
    order: -1;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 8 — Preguntas frecuentes
   Sidebar H2 left, Q&A two-column table right.
   Background: --canvas-bottom
   ══════════════════════════════════════════════════════════════════════ */

.faq {
  background: linear-gradient(145deg, #eff5f9 0%, #f4f8fb 100%);
  padding: 120px 0;
}

@media (max-width: 767px) {
  .faq { padding: var(--space-6) 0; }
}

.faq-layout {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .faq-layout {
    grid-template-columns: 3fr 9fr;
    gap: var(--space-5);
    align-items: start;
  }

  .faq-list {
    border-left: 1px solid var(--border);
    padding-left: var(--space-5);
  }
}

.faq-sidebar {
  position: sticky;
  top: 104px;
}

.faq-sidebar h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(31px, 4.2vw, 52px);
  line-height: 1.1;
  color: var(--ink);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

/* Accordion items — native <details>/<summary> */
.faq-item {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  gap: var(--space-2);
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Open/close indicator */
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: transform var(--dur-ui) var(--ease-out);
}

.faq-item[open] summary::after {
  content: '\2212'; /* minus */
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.35;
  color: var(--ink);
}

.faq-item p {
  font-size: clamp(15px, 1vw, 16px);
  line-height: 1.6;
  color: var(--ink-soft);
  padding-top: var(--space-2);
  max-width: 65ch;
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 8B — Consultorio (galería expandible, patrón La Trucha Grilla)
   Dark background to make photos pop, transitions into ubicacion.
   ══════════════════════════════════════════════════════════════════════ */

.consultorio {
  position: relative;
  background: linear-gradient(160deg, #143d61 0%, #0f3354 100%);
  color: var(--ink-on-dark);
  padding: 72px 0 80px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .consultorio { padding: var(--space-5) 0; }
}

.galeria-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 246, 248, 0.55);
  margin-bottom: var(--space-1);
}

.consultorio h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-on-dark);
  margin-bottom: var(--space-5);
}

/* ---- Expandable strip ---- */
.galeria-strip {
  display: flex;
  gap: 0.5rem;
  height: 22rem;
  width: 100%;
}

.galeria-item {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: zoom-in;
  border: none;
  padding: 0;
  background: var(--deep);
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.galeria-item:hover img { transform: scale(1.05); }

/* Dark overlay fades on hover */
.galeria-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 38, 61, 0.35);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.galeria-item:hover::after { opacity: 0; }

/* Zoom icon */
.galeria-zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 246, 248, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.galeria-item:hover .galeria-zoom-hint { opacity: 1; }

/* Expanded / compressed states (set via JS on hover) */
.galeria-item.lb-expanded   { flex: 2.5; }
.galeria-item.lb-compressed { flex: 0.5; }

/* Focus visible on gallery buttons */
.galeria-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Strip height at breakpoints ---- */
@media (min-width: 768px) {
  .galeria-strip { height: 26rem; }
}

@media (min-width: 1024px) {
  .galeria-strip { height: 30rem; }
}

/* ---- Mobile: 2-col grid, no expand ---- */
@media (max-width: 767px) {
  .galeria-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
    gap: var(--space-1);
  }
  .galeria-item {
    flex: none;
    height: 160px;
    cursor: zoom-in;
  }
  .galeria-item img {
    height: 160px;
  }
  .galeria-item:first-child,
  .galeria-item:last-child {
    grid-column: 1 / -1;
    height: 210px;
  }
  .galeria-item:first-child img,
  .galeria-item:last-child img {
    height: 210px;
  }
  .galeria-item.lb-expanded,
  .galeria-item.lb-compressed { flex: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   LIGHTBOX (patrón La Trucha Grilla, tokens NEUROPRAXIS)
   ══════════════════════════════════════════════════════════════════════ */

.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 38, 61, 0.97);
  z-index: 9998; /* below noise grain (9999) */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  outline: none;
}

.lb-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  max-width: min(88vw, 1100px);
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lb-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.5);
  transform: scale(0.88);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.34, 1.42, 0.64, 1), opacity 0.3s ease;
}

.lb-overlay.open #lb-img {
  transform: scale(1);
  opacity: 1;
}

.lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(242, 246, 248, 0.1);
  border: 1px solid rgba(242, 246, 248, 0.18);
  color: var(--ink-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-ui) ease;
  z-index: 2;
}

.lb-close:hover { background: rgba(242, 246, 248, 0.22); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(200, 130, 60, 0.12);
  border: 1px solid rgba(200, 130, 60, 0.25);
  color: var(--ink-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-ui) ease, transform var(--dur-ui) ease;
  z-index: 2;
}

.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

.lb-prev:hover { background: rgba(200, 130, 60, 0.24); transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { background: rgba(200, 130, 60, 0.24); transform: translateY(-50%) translateX(2px); }

.lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(242, 246, 248, 0.45);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-family: var(--font-display);
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 9 — Ubicacion
   Left: address info. Right: big phone + CTA.
   Background: --surface-dark
   ══════════════════════════════════════════════════════════════════════ */

.ubicacion {
  position: relative;
  background: linear-gradient(180deg, #143d61 0%, #0b2740 100%);
  color: var(--ink-on-dark);
  padding: 120px 0;
  overflow: hidden;
}

@media (max-width: 767px) {
  .ubicacion { padding: var(--space-6) 0; }
}

.ubicacion-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .ubicacion-grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-6);
    align-items: center;
  }
}

.ubicacion-info h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-on-dark);
  margin-bottom: var(--space-3);
}

.ubicacion-address {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.5;
  color: rgba(242, 246, 248, 0.85);
  margin-bottom: var(--space-2);
}

.ubicacion .amber-rule {
  margin-bottom: var(--space-3);
}

.ubicacion-refs {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(242, 246, 248, 0.65);
}

.ubicacion-cta {
  text-align: left;
}

@media (min-width: 768px) {
  .ubicacion-cta { text-align: right; }
}

.ubicacion-phone {
  margin-bottom: var(--space-1);
}

.ubicacion-phone a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  color: var(--ink-on-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ubicacion-phone-label {
  font-size: 18px;
  font-weight: 500;
  color: rgba(242, 246, 248, 0.75);
  margin-bottom: var(--space-4);
}

/* ══════════════════════════════════════════════════════════════════════
   FOOTER — compact single line
   Background: --deep
   ══════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: linear-gradient(180deg, #0e2a42 0%, #091e32 100%);
  color: var(--ink-on-dark);
  padding: var(--space-4) 0;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-col {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(242, 246, 248, 0.65);
}

.footer-col a {
  color: rgba(242, 246, 248, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(242, 246, 248, 0.25);
  transition: color var(--dur-ui) ease;
}

.footer-col a:hover { color: var(--ink-on-dark); }

.footer-col--sep {
  padding-left: var(--space-4);
  border-left: 1px solid var(--border-on-dark);
}

@media (max-width: 599px) {
  .footer-col--sep {
    border-left: none;
    padding-left: 0;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ══════════════════════════════════════════════════════════════════════ */

.wa-float {
  position: fixed;
  bottom: var(--space-3);
  right: var(--space-3);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 52px;
  padding: var(--space-2) var(--space-3);
  background: var(--surface-dark);
  color: var(--ink-on-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: background var(--dur-press) ease,
              transform var(--dur-press) ease;
}

.wa-float:hover { background: var(--deep); }
.wa-float:active { transform: scale(0.97); }

.wa-float .icon-wa {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 479px) {
  .wa-float {
    padding: var(--space-2);
    min-height: 48px;
    width: 48px;
    justify-content: center;
    border-radius: var(--radius-pill);
  }
  .wa-float-label { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-trace,
  .section-trace { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════════════════ */

@media print {
  * { opacity: 1 !important; transform: none !important; }
  body::after { display: none; }
  .site-header, .wa-float, .mobile-nav, .hero-trace, .section-trace { display: none; }
  .hero { min-height: auto; }
  .hero-bg { position: relative; height: 200px; }
}
