/* ==========================================================================
   ATARAXIA — Psicología del deporte · Tomás Baeza
   ========================================================================== */

:root {
  --burdeo: #5c1a1b;
  --burdeo-900: #4a0f16;
  --burdeo-700: #7a2a2b;
  --burdeo-100: #f3e9e7;
  --crema: #f8f6f2;
  --piedra: #efece6;
  --gris: #e9ebee;
  --slate: #5f7784;
  --texto: #22201f;
  --texto-suave: #5d5855;
  --linea: #ddd7cf;
  --blanco: #fff;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 2px;
  --shadow: 0 20px 50px -24px rgba(74, 15, 22, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  color: var(--burdeo);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
h1 > .eyebrow { display: block; line-height: 1.5; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--burdeo); color: var(--blanco); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

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

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--tight { padding: clamp(56px, 8vw, 96px) 0; }
.section--stone { background: var(--piedra); }
.section--dark { background: var(--burdeo-900); color: var(--crema); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--crema); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burdeo-700);
  margin-bottom: 1.1rem;
}
.section--dark .eyebrow { color: #d9b8b3; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--texto-suave); max-width: 62ch; }
.section--dark .lead { color: #e7dcd8; }
.muted { color: var(--texto-suave); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.rule { width: 96px; height: 1px; background: var(--burdeo); border: 0; margin: 28px 0; }
.center .rule { margin-left: auto; margin-right: auto; }
.section--dark .rule { background: rgba(248, 246, 242, 0.5); }

.grid-2 { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--wide-left { grid-template-columns: 1.2fr 0.8fr; }
  .grid-2--wide-right { grid-template-columns: 0.85fr 1.15fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  font: 600 0.82rem/1 var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--burdeo); border-radius: var(--radius);
  background: var(--burdeo); color: var(--crema);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--burdeo-900); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--burdeo); }
.btn--ghost:hover { background: var(--burdeo); color: var(--crema); }
.btn--light { background: var(--crema); color: var(--burdeo-900); border-color: var(--crema); }
.btn--light:hover { background: var(--blanco); color: var(--burdeo-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.center .btn-row { justify-content: center; }

.text-link {
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em;
  color: var(--burdeo); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { color: var(--burdeo-900); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--linea); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--burdeo); }
.brand img { width: 38px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.14em; font-variant: small-caps; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--texto-suave); text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--texto);
  position: relative; padding: 6px 0;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--burdeo); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-menu a:not(.btn):hover::after,
.nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu a:not(.btn)[aria-current="page"] { color: var(--burdeo); }
.nav-menu .btn { padding: 12px 20px; font-size: 0.74rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  position: relative; margin-right: -10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--burdeo);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { content: ""; left: 0; top: -7px; }
.nav-toggle span::after { content: ""; left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 76px 0 0 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 24px var(--gutter) 40px;
    background: var(--crema);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    overflow-y: auto;
  }
  .nav-open .nav-menu { transform: none; opacity: 1; visibility: visible; }
  .nav-menu li { width: 100%; border-bottom: 1px solid var(--linea); }
  .nav-menu li:last-child { border: 0; margin-top: 24px; }
  .nav-menu a:not(.btn) { display: block; padding: 18px 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu .btn { width: 100%; padding: 18px; font-size: 0.8rem; }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; min-height: min(calc(100svh - 76px), 920px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 56px var(--gutter) 64px; }
.hero-copy h1 { margin-bottom: 0.3em; }
.hero-copy .subtitle { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--texto); line-height: 1.3; margin: 0; }
.hero-media { position: relative; min-height: 70vh; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-media::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--burdeo); z-index: 1;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 24px;
  border-top: 1px solid var(--linea); font-size: 0.86rem; color: var(--texto-suave);
}
.hero-meta strong { display: block; color: var(--burdeo); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-copy { padding: 64px clamp(40px, 6vw, 96px) 64px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .hero-media { min-height: auto; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.page-hero .lead { margin-top: 1rem; }
.page-hero--image { color: var(--crema); padding: clamp(120px, 20vw, 220px) 0 clamp(56px, 8vw, 96px); }
.page-hero--image h1 { color: var(--crema); }
.page-hero--image .eyebrow { color: #ecd3cf; }
.page-hero--image .lead { color: #efe7e3; }
.page-hero--image > picture img { position: absolute; top: -8%; left: 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; }
.page-hero--image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(34, 12, 14, 0.82) 0%, rgba(34, 12, 14, 0.45) 55%, rgba(34, 12, 14, 0.1) 100%), linear-gradient(180deg, transparent 50%, rgba(34, 12, 14, 0.5) 100%);
}
.page-hero--image { isolation: isolate; }

.watermark {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: clamp(260px, 36vw, 520px); opacity: 0.06; pointer-events: none; z-index: 0;
}
.page-hero .container, .section .container { position: relative; z-index: 1; }

/* ---------- Statement strip ---------- */
.statement h2 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.statement blockquote, .quote {
  margin: 36px 0 0; padding-left: 26px; border-left: 3px solid var(--burdeo);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.4; color: var(--burdeo);
}
.section--dark .quote { color: var(--crema); border-color: var(--crema); }

/* ---------- Phases ---------- */
.phases { display: grid; gap: 20px; margin-top: 56px; counter-reset: fase; }
@media (min-width: 700px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .phases--4 { grid-template-columns: repeat(4, 1fr); } }
.phase {
  background: var(--blanco); border-top: 5px solid var(--burdeo);
  padding: 30px 28px 34px; position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.section--stone .phase { background: var(--crema); }
.phase:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.phase .num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: var(--burdeo-700); text-transform: uppercase; }
.phase h3 { margin: 10px 0 2px; font-size: 1.9rem; }
.phase .weeks { font-family: var(--serif); font-style: italic; color: var(--texto-suave); font-size: 1.1rem; margin-bottom: 14px; display: block; }
.phase p { font-size: 0.95rem; margin: 0; color: var(--texto-suave); }

/* timeline bar */
.timeline { display: grid; grid-template-columns: 1fr 2fr 3fr 2fr; gap: 4px; margin-top: 48px; }
.timeline div {
  background: var(--burdeo); color: var(--crema); padding: 10px 12px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.timeline div:nth-child(2) { background: var(--burdeo-700); }
.timeline div:nth-child(3) { background: #4f6572; }
.timeline div:nth-child(4) { background: var(--burdeo-900); }
.timeline-scale { display: grid; grid-template-columns: repeat(8, 1fr); margin-top: 8px; font-size: 0.72rem; color: var(--texto-suave); }
.timeline-scale span { border-left: 1px solid var(--linea); padding-left: 6px; }
@media (max-width: 640px) { .timeline, .timeline-scale { display: none; } }

/* ---------- Lists ---------- */
.list-arrows { list-style: none; margin: 0; padding: 0; }
.list-arrows li { position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--linea); }
.list-arrows li:last-child { border-bottom: 0; }
.list-arrows li::before { content: "›"; position: absolute; left: 4px; top: 12px; font-size: 1.4rem; color: var(--burdeo); font-weight: 600; }
.list-arrows strong { color: var(--burdeo); }
.section--dark .list-arrows li { border-color: rgba(248, 246, 242, 0.18); }
.section--dark .list-arrows li::before, .section--dark .list-arrows strong { color: #f0cfc9; }

.variables { display: grid; gap: 1px; background: var(--linea); border: 1px solid var(--linea); margin-top: 48px; }
@media (min-width: 700px) { .variables { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .variables { grid-template-columns: repeat(3, 1fr); } }
.variable { background: var(--crema); padding: 32px 30px; }
.variable .idx { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--burdeo); opacity: 0.35; }
.variable h3 { font-size: 1.45rem; margin: 14px 0 8px; }
.variable p { margin: 0; font-size: 0.95rem; color: var(--texto-suave); }

/* ---------- Media frames ---------- */
.frame { position: relative; }
.frame img { width: 100%; object-fit: cover; }
.frame--offset::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--burdeo); z-index: -1;
}
.frame--offset { isolation: isolate; margin-right: 24px; margin-bottom: 24px; }
.ratio-portrait img { aspect-ratio: 4 / 5; }
.ratio-land img { aspect-ratio: 3 / 2; }
.frame figcaption { font-size: 0.8rem; color: var(--texto-suave); margin-top: 12px; font-style: italic; }

/* ---------- Science block ---------- */
.science { display: grid; gap: 32px; align-items: center; background: var(--blanco); padding: clamp(28px, 4vw, 48px); border-left: 4px solid var(--burdeo); }
@media (min-width: 800px) { .science { grid-template-columns: auto 1fr; gap: 56px; } }
.stats { display: flex; gap: clamp(24px, 4vw, 48px); flex-wrap: wrap; }
.stat strong { font-variant-numeric: lining-nums; display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--burdeo); font-weight: 600; }
.stat > span { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-suave); }
.science p { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; margin: 0; color: var(--texto); }

/* ---------- Weekly ---------- */
.weekly { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 800px) { .weekly { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.weekly-item { padding-top: 22px; border-top: 1px solid var(--linea); }
.section--dark .weekly-item { border-color: rgba(248, 246, 242, 0.25); }
.weekly-item .who { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--burdeo-700); }
.section--dark .weekly-item .who { color: #e6bdb6; }
.weekly-item h3 { font-size: 1.45rem; margin: 8px 0 8px; }
.weekly-item p { font-size: 0.95rem; margin: 0; opacity: 0.88; }

/* ---------- Pricing ---------- */
.currency {
  display: inline-flex; padding: 4px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 999px; margin-top: 28px;
}
.currency button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  min-height: 44px; padding: 10px 24px; font: 600 0.8rem/1 var(--sans); letter-spacing: 0.12em; color: var(--texto-suave);
  transition: background 0.25s, color 0.25s;
}
.currency button[aria-pressed="true"] { background: var(--burdeo); color: var(--crema); }

.plans { display: grid; gap: 24px; margin-top: 56px; align-items: stretch; }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--blanco); border: 1px solid var(--linea); padding: 40px 34px 36px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--featured { background: var(--burdeo); border-color: var(--burdeo); color: var(--crema); }
@media (min-width: 980px) { .plan--featured { transform: translateY(-16px); } .plan--featured:hover { transform: translateY(-22px); } }
.plan--featured h2, .plan--featured .price { color: var(--crema); }
.plan .badge {
  position: absolute; top: 0; right: 24px; transform: translateY(-50%);
  background: var(--crema); color: var(--burdeo); padding: 8px 14px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--burdeo);
}
.plan .num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: var(--burdeo-700); text-transform: uppercase; }
.plan--featured .num { color: #ecc6bf; }
.plan h2 { font-size: 2.3rem; margin: 6px 0 4px; }
.plan .tagline { font-style: italic; font-family: var(--serif); font-size: 1.1rem; opacity: 0.8; margin-bottom: 28px; }
.price { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 3.4vw, 2.8rem); line-height: 1; color: var(--burdeo); }
.price small { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; opacity: 0.75; margin-left: 6px; }
.price-from { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; opacity: 0.75; }
.price-note { font-size: 0.8rem; opacity: 0.7; margin-top: 8px; min-height: 1.3em; }
.plan hr { border: 0; border-top: 1px solid var(--linea); margin: 28px 0 20px; width: 100%; }
.plan--featured hr { border-color: rgba(248, 246, 242, 0.25); }
.plan .includes { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; margin-bottom: 8px; }
.plan .list-arrows li { padding: 9px 0 9px 24px; border: 0; font-size: 0.94rem; }
.plan .list-arrows li::before { top: 5px; }
.plan--featured .list-arrows li::before { color: #f0cfc9; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-body { flex: 1; margin-bottom: 30px; }
.fineprint { font-size: 0.8rem; color: var(--texto-suave); font-style: italic; margin-top: 48px; max-width: 80ch; }

.includes-all { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 800px) { .includes-all { grid-template-columns: repeat(3, 1fr); } }
.includes-all div { padding-top: 20px; border-top: 2px solid var(--burdeo); }
.includes-all h3 { font-size: 1.4rem; margin-bottom: 6px; }
.includes-all p { font-size: 0.95rem; color: var(--texto-suave); margin: 0; }

/* ---------- About ---------- */
.facts { display: grid; gap: 22px; }
.facts dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--burdeo-700); }
.facts dd { margin: 4px 0 0; font-size: 1.02rem; }
.bio p { font-size: 1.08rem; }
.definition {
  background: var(--piedra); padding: clamp(28px, 4vw, 44px); margin-top: 36px; position: relative; overflow: hidden;
}
.definition .word { font-family: var(--serif); font-size: 2rem; color: var(--burdeo); font-weight: 600; letter-spacing: 0.08em; }
.definition .phon { font-style: italic; color: var(--texto-suave); margin-left: 10px; }
.definition p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; margin: 12px 0 0; }

.sports { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; padding: 0; }
.sports li {
  padding: 9px 18px; border: 1px solid var(--linea); border-radius: 999px; font-size: 0.88rem; background: var(--blanco);
}
.section--dark .sports li { background: transparent; border-color: rgba(248, 246, 242, 0.3); }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
@media (min-width: 800px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
  .gallery .tall { grid-row: span 2; }
  .gallery .wide { grid-column: span 2; }
}
.gallery figure { margin: 0; overflow: hidden; background: var(--piedra); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform 0.9s var(--ease); }
@media (min-width: 800px) { .gallery img { aspect-ratio: auto; } }
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq details:first-child { border-top: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 28px 56px 28px 0;
  font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 600; color: var(--burdeo); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background:
    linear-gradient(var(--burdeo), var(--burdeo)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--burdeo), var(--burdeo)) center / 1.5px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 56px 28px 0; color: var(--texto-suave); font-size: 1.02rem; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Steps / CTA ---------- */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 18px; align-items: baseline; font-size: 1.08rem; }
.steps li::before {
  content: counter(step); flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
  border: 1px solid currentColor;
}
.center .steps { max-width: 460px; margin-left: auto; margin-right: auto; text-align: left; }

.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band .mark { width: 64px; margin: 0 auto 28px; }
.cta-band .avatar {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  border: 3px solid var(--crema); margin: 40px auto 0;
}

.booking { background: var(--blanco); border: 1px solid var(--linea); min-height: 720px; position: relative; }
.booking iframe { width: 100%; height: 720px; border: 0; display: block; }
.booking-fallback { padding: 48px 32px; text-align: center; }

.contact-aside { display: grid; gap: 22px; margin-top: 36px; }
.contact-aside a { text-decoration: none; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--blanco); border: 1px solid var(--linea); transition: border-color 0.3s; }
.contact-card:hover { border-color: var(--burdeo); }
.contact-card svg { flex: none; width: 26px; height: 26px; color: var(--burdeo); }
.contact-card strong { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burdeo-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--burdeo-900); color: #e3d6d3; padding: 80px 0 36px; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 44px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { width: 150px; margin-bottom: 20px; }
.site-footer .footer-h { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crema); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #e3d6d3; transition: color 0.2s; }
.site-footer a:hover { color: var(--blanco); }
.footer-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(248, 246, 242, 0.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: #bba9a5;
}

/* ---------- Floating CTA (mobile) ---------- */
.float-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  display: none; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
  transform: translateY(140%); transition: transform 0.4s var(--ease);
}
.float-cta.is-visible { transform: none; }
@media (max-width: 720px) { .float-cta { display: flex; } }

/* ---------- Reveal (animado por framer-motion en js/motion.js) ---------- */
.js .reveal { opacity: 0; }

/* Entrada del hero en CSS: no espera al módulo del CDN (mejor LCP) */
@keyframes hero-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes hero-img { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
@keyframes hero-bar { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0%); } }
.js [data-hero] > * { animation: hero-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards; }
.js [data-hero] > :nth-child(2) { animation-delay: 0.19s; }
.js [data-hero] > :nth-child(3) { animation-delay: 0.28s; }
.js [data-hero] > :nth-child(4) { animation-delay: 0.37s; }
.js [data-hero] > :nth-child(5) { animation-delay: 0.46s; }
.js [data-hero] > :nth-child(n+6) { animation-delay: 0.55s; }
.js .hero-media img, .js .page-hero--image > picture img { animation: hero-img 1.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.js .hero-media { animation: hero-bar 1.2s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.no-motion .reveal,
.no-motion [data-hero] > *,
.no-motion [data-stagger] > * { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; }
}

/* ---------- Ajustes móviles ---------- */
@media (max-width: 480px) {
  .btn { letter-spacing: 0.08em; padding: 16px 20px; }
  .btn-row .btn { width: 100%; }
}
@media (max-width: 720px) {
  .site-footer { padding-bottom: 104px; }
}

/* ---------- Selector de idioma ---------- */
.lang-switch { display: flex; align-items: center; gap: 2px; }
.nav-menu .lang-switch a {
  padding: 6px 7px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--texto-suave); border-radius: var(--radius);
}
.nav-menu .lang-switch a::after { display: none; }
.nav-menu .lang-switch a[aria-current="true"] { color: var(--burdeo); background: var(--burdeo-100); }
.nav-menu .lang-switch a:hover { color: var(--burdeo); }
@media (min-width: 961px) {
  .lang-switch { padding-left: 18px; border-left: 1px solid var(--linea); margin-left: -6px; }
  .nav-menu { gap: 26px; }
}
@media (max-width: 960px) {
  .nav-menu li.lang-switch { gap: 8px; padding: 18px 0; }
  .nav-menu .lang-switch a { display: inline-block; font-family: var(--sans); font-size: 0.9rem; padding: 10px 16px; border: 1px solid var(--linea); }
}

/* backdrop-filter crea un containing block para position:fixed; se quita con el menú abierto */
.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--crema); }

/* ---------- Selector de idioma móvil (header) ---------- */
.lang-mobile { display: none; position: relative; margin-left: auto; margin-right: 6px; }
.lang-mobile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; border: 1px solid var(--linea); border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--burdeo); background: var(--blanco);
}
.lang-mobile summary::-webkit-details-marker { display: none; }
.lang-mobile[open] summary { border-color: var(--burdeo); }
.lang-mobile[open] summary > svg:last-child { transform: rotate(180deg); }
.lang-mobile summary > svg:last-child { transition: transform 0.25s var(--ease); }
.lang-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; z-index: 60;
  background: var(--blanco); border: 1px solid var(--linea); box-shadow: var(--shadow); padding: 6px;
}
.lang-pop a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
  text-decoration: none; color: var(--texto); font-size: 0.95rem;
}
.lang-pop a span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--texto-suave); width: 22px; }
.lang-pop a:hover { background: var(--piedra); }
.lang-pop a[aria-current="true"] { background: var(--burdeo-100); color: var(--burdeo); font-weight: 600; }
.lang-pop a[aria-current="true"] span { color: var(--burdeo); }
@media (max-width: 960px) {
  .lang-mobile { display: block; }
  .nav-menu li.lang-switch { display: none; }
}
@media (max-width: 400px) {
  .brand-sub { display: none; }
}

/* ---------- Páginas legales ---------- */
.legal-body { max-width: 68ch; margin-top: 40px; }
.legal-body h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 1.6em; }
.legal-body a { color: var(--burdeo); }
