/* ==========================================================================
   Altessora Group · web de una página (paneles apilados)
   Manual de marca: sin sombras, sin degradados, sin formas ajenas a la marca.
   ========================================================================== */

:root {
  --cream: #F6F2EA;
  --navy: #14284B;
  --sand: #E6D8BF;
  --gold: #B8955A;
  --gray: #8A847B;
  --ink: #1C1C1E;
  --navy-deep: #0d1a31;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, sans-serif;

  --gutter: clamp(1rem, .4rem + 3vw, 3.5rem);
  --header-h: 84px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--navy-deep); color: var(--cream);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--cream); color: var(--navy); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; }
.diamond { display: inline-block; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 0 var(--gutter); color: var(--cream); pointer-events: none;
}
.header > * { pointer-events: auto; }
.header { transition: background-color .5s var(--ease); }
.header.is-scrolled {
  background: rgba(13, 26, 49, .72); border-bottom: 1px solid rgba(184, 149, 90, .25);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); pointer-events: auto;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; min-height: 44px; justify-self: start; }
.brand svg { width: 38px; height: auto; }
.brand .tower { fill: currentColor; }
.brand .gem, .brand .base { fill: var(--gold); }
.brand__word { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .14em; margin-right: -.14em; }
.brand__group { display: flex; align-items: center; gap: .4rem; width: 100%; font-size: .48rem; letter-spacing: .5em; color: var(--gold); margin-top: .3rem; font-weight: 500; }
.brand__group::before, .brand__group::after { content: ""; flex: 1; height: 1px; background: var(--gold); }
.header__tag { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; opacity: .85; white-space: nowrap; }
.header__cta {
  justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1.2rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(246,242,234,.45); border-radius: 999px; background: none;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.header__cta:hover, .header__cta:focus-visible { background: var(--cream); color: var(--navy); border-color: var(--cream); }
@media (max-width: 899px) { .header__tag { display: none; } .header { grid-template-columns: 1fr auto; } }

/* ---------- Paneles apilados ---------- */
.panel {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2.5rem;
}
.panel + .panel { border-radius: var(--radius) var(--radius) 0 0; margin-top: calc(var(--radius) * -1); }
.panel__bg { position: absolute; inset: 0; z-index: -2; }
.panel__bg img { width: 100%; height: 100%; object-fit: cover; }
.panel__bg::after { content: ""; position: absolute; inset: 0; background: rgba(13, 26, 49, .55); }
.panel__inner { width: 100%; max-width: 1320px; margin: 0 auto; }
@media (min-width: 1000px) and (min-height: 700px) {
  /* Cada panel mide al menos una pantalla y crece si su contenido no cabe (nada se corta).
     Si es más alto que la pantalla, se queda fijo cuando su final llega abajo: --stick lo calcula onepage.js */
  .panel { position: sticky; top: var(--stick, 0px); min-height: 100vh; }
}

/* Tarjeta de cristal */
.glass {
  background: rgba(20, 40, 75, .5); border: 1px solid rgba(246, 242, 234, .16);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  border-radius: 22px; color: var(--cream);
}
.glass--light {
  background: rgba(246, 242, 234, .7); border-color: rgba(20, 40, 75, .1); color: var(--navy);
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 48px; padding: .8rem 1.5rem;
  border: 1px solid var(--gold); border-radius: 999px; background: var(--gold); color: var(--navy);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; text-decoration: none;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.btn:hover, .btn:focus-visible { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.btn--ghost { background: none; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- 1 · Portada ---------- */
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.8rem, 1.6rem + 4.6vw, 5.4rem); line-height: 1; letter-spacing: -.01em; max-width: 12ch;
}
.hero h1 em { color: var(--sand); }
.hero__line { width: 64px; height: 1px; background: var(--gold); margin: 1.6rem 0; }
.hero__sub { max-width: 34rem; font-size: clamp(1rem, .95rem + .25vw, 1.1rem); color: rgba(246,242,234,.9); }
.hero__down {
  position: absolute; left: var(--gutter); bottom: 1.6rem; display: inline-flex; align-items: center; gap: .9rem;
  font-size: .78rem; text-decoration: none; color: var(--cream); min-height: 44px;
}
.hero__down span:last-child {
  width: 36px; height: 36px; border: 1px solid rgba(246,242,234,.5); border-radius: 50%; display: grid; place-items: center;
  transition: background-color .4s, color .4s;
}
.hero__down:hover span:last-child { background: var(--cream); color: var(--navy); }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }

/* Vídeo de presentación en la portada */
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 3.3vw, 4.4rem); max-width: 14ch; }
.hero__line { margin: 1.2rem 0; }
.hero__sub { margin: 0; }
.hero__video {
  position: relative; margin: 1.8rem 0 0; width: 100%; max-width: 560px; aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden; background: #0b0b0c; border: 1px solid rgba(246, 242, 234, .25);
}
.hero__video img, .hero__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(246, 242, 234, .6); background: rgba(13, 26, 49, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .4s var(--ease), background-color .4s;
}
.hero__play span { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--gold); }
.hero__play:hover, .hero__play:focus-visible { transform: translate(-50%, -50%) scale(1.08); background: rgba(13, 26, 49, .7); }
.hero__play.is-sound span { border: 0; width: 18px; height: 18px; margin: 0; background: var(--gold); clip-path: polygon(0 30%, 30% 30%, 60% 0, 60% 100%, 30% 70%, 0 70%); }
.hero__video.is-playing .hero__play { width: 48px; height: 48px; left: auto; top: auto; right: 14px; bottom: 14px; transform: none; }
.hero__video.is-playing .hero__play:hover { transform: scale(1.06); }
.hero__video figcaption {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .85rem;
  border-radius: 999px; background: rgba(13, 26, 49, .65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
}
.hero__video.is-unmuted figcaption { display: none; }
@media (max-width: 999px) { .hero__video { max-width: none; } }
@media (min-width: 1000px) and (max-height: 820px) { .hero__video { max-width: 440px; } }

/* Diagnóstico por pasos */
.quiz { padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem); }
.quiz__title { font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; line-height: 1.45; max-width: 26ch; }
.quiz__count { display: block; margin: .8rem 0 1.4rem; font-size: .66rem; letter-spacing: .22em; color: var(--sand); font-weight: 500; }
.quiz__bar { height: 2px; background: rgba(246,242,234,.15); margin-bottom: 1.6rem; }
.quiz__bar i { display: block; height: 100%; width: 20%; background: var(--gold); transition: width .6s var(--ease); }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: stepIn .5s var(--ease); }
.quiz__opts.is-active { display: grid; }
.quiz__step:not(.is-active) { display: none !important; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz__q { font-family: var(--serif); font-size: clamp(1.5rem, 1.25rem + .9vw, 1.95rem); line-height: 1.15; margin-bottom: 1.2rem; }
.quiz__opts { display: grid; gap: .6rem; margin: 0 0 1.4rem; padding: 0; border: 0; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 50px; padding: .7rem 1.1rem;
  border: 1px solid rgba(246,242,234,.22); border-radius: 14px; font-size: .95rem;
  transition: border-color .3s, background-color .3s;
}
.opt span::after { content: ""; width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); transition: background-color .3s; }
.opt input:checked + span { border-color: var(--gold); background: rgba(184,149,90,.14); }
.opt input:checked + span::after { background: var(--gold); }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt:hover span { border-color: rgba(246,242,234,.5); }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.quiz__back { background: none; border: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .75; min-height: 44px; padding: 0; }
.quiz__back[hidden] { display: none; }
.quiz__hint { font-size: .72rem; opacity: .7; margin: 1rem 0 0; }
.quiz__summary { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; font-size: .92rem; }
.quiz__summary li { display: flex; gap: .7rem; align-items: center; }
@media (min-width: 560px) { .quiz__opts--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- 2 · Método ---------- */
.method { background: var(--sand); color: var(--navy); }
.method__grid { display: grid; gap: 1.5rem; align-items: stretch; }
.method__media { position: relative; border-radius: 22px; overflow: hidden; min-height: 320px; background: #0b0b0c; border: 1px solid rgba(20,40,75,.25); }
.method__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.method__media figcaption {
  position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem .9rem; border-radius: 999px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(13,26,49,.7); color: var(--cream); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.method__card { padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem); display: flex; flex-direction: column; }
.method__card h2 { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1.05; }
.method__card h2 em { color: var(--gold); display: block; } /* «Tú decides desde España.» siempre en su propia línea */
.method__intro { margin: 1rem 0 1.4rem; font-size: .95rem; max-width: 44ch; }
.steps { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .55rem; }
.step__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 54px; padding: .8rem 1.1rem;
  border: 1px solid rgba(20,40,75,.18); border-radius: 14px; background: rgba(246,242,234,.55); color: var(--navy);
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; text-align: left;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.step__btn i {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  border: 1px solid currentColor; font-size: .8rem; transition: transform .5s var(--ease);
}
.step.is-open .step__btn { background: var(--navy); color: var(--cream); border-color: var(--navy); border-radius: 14px 14px 0 0; }
.step.is-open .step__btn i { transform: rotate(45deg); color: var(--gold); }
.step__panel { overflow: hidden; height: 0; transition: height .5s var(--ease); }
.step__panel p { margin: 0; padding: 1rem 1.1rem 1.2rem; background: var(--navy); color: var(--cream); border-radius: 0 0 14px 14px; font-size: .92rem; }
.link-arrow {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px;
  padding-top: .6rem; border-top: 1px solid rgba(20,40,75,.18); text-decoration: none; background: none; border-left: 0; border-right: 0; border-bottom: 0;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--navy); width: 100%;
}
.stats { list-style: none; margin: clamp(1.5rem, 1rem + 2vw, 2.8rem) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; text-align: center; }
.stats li { display: grid; gap: .3rem; }
.stats strong { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; }
.stats span { font-size: .82rem; font-style: italic; }
@media (min-width: 1000px) {
  .method__grid { grid-template-columns: 1.1fr .9fr; }
  .method__media { min-height: 0; } /* la foto ocupa el alto de la tarjeta, sin estirar el panel */
  .method__card h2 { font-size: clamp(2rem, 1.4rem + 1.4vw, 2.7rem); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats li + li { border-left: 1px solid rgba(20,40,75,.25); }
}

/* ---------- 3 · Preguntas ---------- */
.faq__card { max-width: 860px; margin: 0 auto; padding: clamp(1.6rem, 1.2rem + 1.6vw, 3rem) clamp(1.2rem, 1rem + 2vw, 3.2rem); }
.faq__head { text-align: center; margin-bottom: 1.8rem; }
.faq__head h2 { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1.05; }
.faq__head p { margin: .8rem auto 0; max-width: 36ch; font-style: italic; color: rgba(246,242,234,.8); font-size: .92rem; }
.qa { border-top: 1px solid rgba(246,242,234,.18); }
.qa:last-child { border-bottom: 1px solid rgba(246,242,234,.18); }
.qa__btn {
  width: 100%; display: grid; grid-template-columns: 2.6rem 1fr 28px; align-items: center; gap: 1rem; min-height: 60px; padding: .7rem .6rem;
  background: none; border: 0; text-align: left; font-size: .98rem; border-radius: 12px; transition: background-color .4s;
}
.qa__btn b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.6rem; line-height: 1; letter-spacing: .02em; color: var(--gold); } /* números en Cormorant dorado, como los de la calculadora */
.qa__btn i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-style: normal; transition: transform .5s var(--ease), color .3s; }
.qa.is-open .qa__btn { background: var(--navy); }
.qa.is-open .qa__btn i { transform: rotate(45deg); color: var(--gold); }
.qa__panel { overflow: hidden; height: 0; transition: height .5s var(--ease); }
.qa__panel p { margin: 0; padding: .6rem .6rem 1.4rem calc(2.6rem + 1.6rem); font-size: .92rem; line-height: 1.7; color: rgba(246,242,234,.88); }
.faq__cta { display: flex; justify-content: center; margin-top: 1.8rem; }

/* ---------- Pie ---------- */
.footer { position: relative; z-index: 2; background: var(--navy-deep); padding: 2.6rem var(--gutter) 1.6rem; border-top: 1px solid rgba(184,149,90,.35); }
.footer__row { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.footer__contact { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; font-size: .86rem; }
.footer__contact a { text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.footer__contact a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer__legal { max-width: 1320px; margin: 1.6rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(246,242,234,.12); display: grid; gap: .5rem; font-size: .72rem; color: rgba(230,216,191,.85); }
.footer__legal p { margin: 0; display: flex; gap: .7rem; align-items: baseline; }
.footer__legal .diamond { width: 5px; height: 5px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.4rem; margin-top: .8rem; letter-spacing: .08em; }
.footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; margin: 0; padding: 0; }
.footer__bottom a, .footer__bottom button { text-decoration: none; background: none; border: 0; padding: 0; font-size: inherit; letter-spacing: inherit; min-height: 32px; display: inline-flex; align-items: center; color: inherit; }
.footer__bottom a:hover, .footer__bottom button:hover { color: var(--cream); }

/* ---------- Diálogo de reserva (Google Calendar) ---------- */
.booking { width: min(980px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 22px; background: var(--cream); color: var(--navy); overflow: hidden; }
.booking::backdrop { background: rgba(13,26,49,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.booking[open] { display: grid; grid-template-rows: auto 1fr; animation: dlgIn .45s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.booking__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem 1rem; border-bottom: 1px solid rgba(20,40,75,.12); }
.booking__head h2 { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.1; }
.booking__head p { margin: .3rem 0 0; font-size: .85rem; }
.booking__close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(20,40,75,.3); background: none; font-size: 1.3rem; line-height: 1; color: var(--navy); }
.booking__body { overflow: auto; padding: 1.2rem 1.6rem 1.6rem; }
.booking__summary { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.booking__summary span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; background: var(--sand); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; align-items: start; padding: 1rem 1.1rem; border: 1px solid rgba(20,40,75,.25); border-radius: 14px; font-size: .85rem; margin-bottom: 1rem; }
.consent input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--navy); }
.booking__frame { min-height: 560px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(20,40,75,.12); position: relative; }
.booking__frame iframe { width: 100%; height: 680px; border: 0; }
.booking__locked { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; background: var(--sand); }
.booking__locked > div { display: grid; gap: .9rem; justify-items: center; max-width: 30rem; }
.booking__locked h3 { font-family: var(--serif); font-size: 1.6rem; }
.booking__locked p { margin: 0; font-size: .88rem; }

/* ---------- WhatsApp y cookies ---------- */
.wa { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.wa__btn { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--cream); border: 1px solid var(--gold); transition: transform .4s var(--ease); }
.wa:hover .wa__btn { transform: scale(1.06); }
.wa__btn svg { width: 26px; height: 26px; }
.wa__dot { position: absolute; right: 3px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); border: 2px solid var(--navy); }
.wa.is-off .wa__dot { background: var(--gray); }
.wa__tip { background: var(--cream); color: var(--navy); font-size: .72rem; padding: .5rem .8rem; border-radius: 10px; max-width: 220px; opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.wa:hover .wa__tip, .wa:focus-visible .wa__tip { opacity: 1; transform: none; }

.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 540px; padding: 1.3rem; border-radius: 18px; background: var(--cream); color: var(--ink); border: 1px solid rgba(20,40,75,.2); transform: translateY(calc(100% + 32px)); transition: transform .6s var(--ease); }
.cookies.is-visible { transform: none; }
.cookies h2 { font-size: .95rem; margin-bottom: .4rem; color: var(--navy); }
.cookies p { font-size: .82rem; margin: 0; }
.cookies__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.cookies__actions button { min-height: 44px; border-radius: 999px; border: 1px solid var(--navy); background: var(--navy); color: var(--cream); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.cookies__prefs { display: none; margin-top: 1rem; gap: .5rem; }
.cookies.show-prefs .cookies__prefs { display: grid; }
.toggle { display: flex; align-items: center; justify-content: space-between; min-height: 40px; font-size: .84rem; }
.toggle input { width: 20px; height: 20px; accent-color: var(--navy); }

/* ---------- Página legal ---------- */
.legal { background: var(--cream); color: var(--ink); padding: calc(var(--header-h) + 3rem) var(--gutter) 5rem; }
.legal .header-solid { background: var(--navy-deep); }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal h1 { font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); color: var(--navy); }
.legal h2 { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); margin: 3rem 0 1rem; }
.legal h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin: 1.8rem 0 .6rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal li::marker { color: var(--gold); }
.legal table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1rem 0; }
.legal th, .legal td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid rgba(20,40,75,.15); }
.pending { background: var(--sand); color: var(--navy); padding: .05em .35em; }
.header--solid { background: var(--navy-deep); }

/* ---------- Revelado ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .panel { position: relative !important; height: auto !important; min-height: 100svh !important; }
}

/* Móvil: botón corto en la cabecera y sin enlace flotante sobre el diagnóstico */
.cta-short { display: none; }
@media (max-width: 599px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 999px) {
  .hero__down { display: none; }
}

/* Con el vídeo en la columna izquierda, «Descubre cómo trabajamos» va centrado abajo */
@media (min-width: 1000px) {
  .hero__down { left: 50%; transform: translateX(-50%); bottom: 1.1rem; }
}

/* El vídeo va encima del titular */
.hero__video { margin: 0 0 1.6rem; }

/* La etiqueta del vídeo deja sitio al botón de sonido */
.hero__video figcaption { right: 74px; max-width: max-content; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__video.is-unmuted video { cursor: auto !important; }
.hero__play[hidden] { display: none; }

/* Vídeo de la portada algo más grande y centrado en su columna */
/* En escritorio el vídeo empieza a la misma altura que el diagnóstico y ocupa toda su columna;
   el alto de pantalla lo limita para que vídeo, titular y subtítulo quepan en un panel */
.hero__video { max-width: 700px; margin-left: auto; margin-right: auto; }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.2fr .8fr; align-items: start; }
  .hero__video { max-width: min(100%, calc((100vh - 340px) * 16 / 9)); margin-bottom: 1.1rem; }
  .hero h1 { font-size: clamp(2.1rem, 6.4vh, 4rem); }
  .hero__line { margin: .9rem auto; }
  .hero__sub { font-size: clamp(.92rem, 2.1vh, 1.1rem); max-width: 36rem; }
}
/* En pantallas bajas «Descubre cómo trabajamos» se solaparía con el subtítulo */
@media (min-width: 1000px) and (max-height: 860px) { .hero__down { display: none; } }

/* Titular, línea y subtítulo centrados bajo el vídeo */
.hero__grid > div:first-child { text-align: center; }
.hero h1, .hero__sub { margin-left: auto; margin-right: auto; }
.hero__line { margin-left: auto; margin-right: auto; }

/* Titular en dos líneas: «Tu tesoro en el Caribe,» arriba y «al alcance desde España.» abajo */
.hero h1 { max-width: none; font-size: clamp(2.3rem, 1.1rem + 2.9vw, 4rem); }
.hero h1 em { display: block; }


/* ---------- Accesos a la calculadora de rentabilidad ---------- */
.header__actions { justify-self: end; display: flex; align-items: center; gap: .6rem; }
.header__calc {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; min-width: 44px; justify-content: center; padding: .6rem 1rem;
  border-radius: 999px; border: 1px solid var(--gold); color: var(--cream); text-decoration: none;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.header__calc svg, .calc-cta__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.header__calc svg { color: var(--gold); }
.header__calc:hover, .header__calc:focus-visible { background: var(--gold); color: var(--navy); }
.header__calc:hover svg, .header__calc:focus-visible svg { color: var(--navy); }

.calc-cta {
  margin-top: auto; margin-bottom: .4rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; border-radius: 16px; background: var(--navy); color: var(--cream); text-decoration: none;
  border: 1px solid var(--navy); transition: background-color .4s var(--ease), border-color .4s;
}
.calc-cta:hover, .calc-cta:focus-visible { background: var(--navy-deep); border-color: var(--gold); }
.calc-cta:hover .arrow { transform: translateX(4px); }
.calc-cta__icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; }
.calc-cta__icon svg { width: 22px; height: 22px; }
.calc-cta__txt { display: grid; gap: .15rem; }
.calc-cta__txt b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.1; }
.calc-cta__txt small { font-size: .74rem; color: rgba(246,242,234,.78); line-height: 1.35; }
.calc-cta .arrow { color: var(--gold); font-size: 1.1rem; }
.calc-cta + .link-arrow { margin-top: 0; }
/* Móvil: logo, calculadora y «Agendar» caben en una fila */
@media (max-width: 560px) {
  .header { gap: .5rem; }
  .header__actions { gap: .4rem; }
  .header .brand { gap: .55rem; }
  .header .brand svg { width: 32px; }
  .header .brand__name { font-size: 1.15rem; letter-spacing: .1em; margin-right: -.1em; }
  .header .header__cta { padding: .6rem .85rem; letter-spacing: .12em; }
}
/* Escritorio: «Agenda tu videollamada» en una línea; la calculadora solo con icono si no cabe el texto */
.header__cta, .header__calc { white-space: nowrap; }
/* Pantallas bajas: botón de la calculadora más compacto para que quepa en el panel */
@media (min-width: 1000px) and (max-height: 860px) {
  .calc-cta { padding: .55rem .9rem; gap: .8rem; }
  .calc-cta small { display: none; }
  .calc-cta__icon { width: 36px; height: 36px; }
}

/* Panel 2 (método) en escritorio: todo cabe en una pantalla (el panel es fijo y no tiene scroll).
   Los tamaños dependen del alto de pantalla. */
@media (min-width: 1000px) and (min-height: 700px) {
  .method { padding-top: calc(var(--header-h) + 1vh); padding-bottom: calc(var(--radius) + 1.4vh); } /* el panel siguiente se monta 28 px por encima */
  .method { scroll-margin-top: var(--radius); } /* el enlace #metodo para justo antes de que entre el panel siguiente */
  .method__grid { gap: 1.2rem; }
  .method__card { padding: clamp(1rem, 2.2vh, 2.2rem) clamp(1.4rem, 2vw, 2.4rem); }
  .method__card h2 { font-size: clamp(1.7rem, 4.3vh, 2.7rem); }
  .method__intro { margin: 1.2vh 0 1.8vh; font-size: clamp(.86rem, 1.9vh, .95rem); max-width: none; line-height: 1.5; }
  .steps { gap: .4rem; margin-bottom: 1.4vh; }
  .step__btn { min-height: 40px; padding: .4rem 1rem; }
  .step__panel p { padding: .7rem 1rem .9rem; font-size: clamp(.84rem, 1.9vh, .92rem); line-height: 1.5; }
  .method .link-arrow { min-height: 42px; }
  .stats { margin-top: 1.4vh; }
  .stats li { gap: .1rem; }
  .stats strong { font-size: clamp(1.6rem, 4.4vh, 3.2rem); }
  .stats span { font-size: .78rem; }
}
/* Botón «Calculadora» relleno en dorado para que destaque junto a «Agenda tu videollamada» */
.header__calc { background: var(--gold); color: var(--navy); }
.header__calc svg { color: var(--navy); }
.header__calc:hover, .header__calc:focus-visible { background: var(--cream); border-color: var(--cream); color: var(--navy); }
/* Móvil: «Calculadora» con texto más pequeño; por debajo de 430 px no cabe y queda solo el icono */
@media (max-width: 560px) {
  .header__calc { padding: .5rem .8rem; gap: .4rem; font-size: .62rem; letter-spacing: .08em; }
  .header__calc svg { width: 16px; height: 16px; }
}
@media (max-width: 429px) { .header__calc { padding: 0; width: 44px; } .header__calc span { display: none; } }
/* Escritorio estrecho: la frase central, «Calculadora» y la reserva caben juntas.
   Frase algo más pequeña, «Agendar» corto hasta 1199 px y calculadora solo con icono hasta 999 px */
@media (min-width: 900px) and (max-width: 1299px) { .header__tag { font-size: .6rem; letter-spacing: .16em; } }
@media (min-width: 900px) and (max-width: 1199px) {
  .header:has(.header__calc) .cta-long { display: none; }
  .header:has(.header__calc) .cta-short { display: inline; }
}
@media (min-width: 900px) and (max-width: 999px) { .header__calc { padding: 0; width: 44px; } .header__calc span { display: none; } }
