@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/cinzel-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;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-500-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-400-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;
}

/* TABVLARIVM — web comercial
   Tokens canónicos del Manual de Identidad v1.0: marino estructural + dorado
   acento (≈10%, nunca texto sobre claro → para texto dorado, dorado oscuro). */

:root {
  /* Paleta canónica del manual (secc. 03/11) */
  --navy: #0F2A44;          /* marino — titulares, texto, iconos, bordes */
  --navy-2: #163B5C;        /* azul de apoyo — hover / profundidad */
  --navy-700: #163B5C;      /* compat */
  --navy-900: #0A2138;
  --gold: #C9A668;          /* dorado — acento, botón primario, separadores */
  --gold-soft: #C9A668;
  --gold-dark: #A77A28;     /* dorado oscuro — acentos gráficos */
  --gold-text: #8F651F;     /* texto dorado accesible sobre marfil y blanco */
  --ivory: #FBF8F2;         /* marfil — fondo general */
  --sand: #EADCC6;          /* arena — tarjetas / bloques suaves */
  --ink: #21272A;           /* tinta — texto principal */
  --muted: #5B6B7D;
  --green: #2F6B43;         /* estado correcto */
  --line: #DADDE2;          /* gris UI — divisores */
  --white: #ffffff;

  --display: 'Cinzel', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(15, 42, 68, .08);
  --maxw: 1140px;
  --header-height: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); color: var(--white); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: .5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* separador dorado Bauhaus */
.rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 18px 0; }
.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.topbar .container { max-width: 1440px; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-height); }
.topbar .brand { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.topbar .brand { gap: 13px; }
.topbar .brand img { height: 68px; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .bt b { font-family: var(--display); color: var(--navy); font-size: 1.2rem; letter-spacing: 1.5px; }
.topbar .brand .bt b { font-size: 1.35rem; letter-spacing: 1.7px; }
.brand .bt span { font-size: .62rem; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 12px; }
.nav a { font-size: .92rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--navy); }
.nav a.active { border-bottom: 2px solid var(--gold-dark); padding-bottom: 2px; font-weight: 700; }
.nav .lang { border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--navy); font-size: .82rem; padding: 6px 8px; cursor: pointer; }
/* El botón de la nav debe conservar el color del botón (mayor especificidad que .nav a) */
.nav a.btn-primary { color: var(--navy); }
.nav a.btn-primary:hover { color: var(--navy); }
.nav a.btn-secondary { color: var(--navy); }
.nav a.btn { border-bottom: 0; }
.hamb { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamb span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; text-align: center; border-radius: 10px; padding: 13px 22px; font-weight: 600; font-size: 1rem; transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, filter .18s ease; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { filter: brightness(.95); box-shadow: var(--shadow); transform: translateY(-2px); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--gold); }
.btn-secondary:hover { background: var(--ivory); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15, 42, 68, .08); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

:is(a, button, select, input, textarea, summary):focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
footer :is(a, button, select):focus-visible,
.cta-band :is(a, button):focus-visible { outline-color: var(--gold); }

/* ---------- Secciones ---------- */
section { padding: 64px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 48em; margin: 0 auto 44px; }
.eyebrow { font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-text); font-weight: 700; margin-bottom: 8px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .card-heading { font-size: 1.2rem; }
section.alt .card { background: var(--ivory); }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--sand); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon-circle svg { width: 24px; height: 24px; }

ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding-left: 26px; position: relative; margin-bottom: 9px; }
ul.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; overflow: hidden; padding: clamp(78px, 8vw, 112px) 0; background-color: var(--ivory); background-image: url('../assets/fondo-inicio.webp'); background-position: center center; background-size: cover; background-repeat: no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(251,248,242,.99) 0%, rgba(251,248,242,.97) 31%, rgba(251,248,242,.82) 48%, rgba(251,248,242,.26) 72%, rgba(251,248,242,.08) 100%), linear-gradient(180deg, rgba(251,248,242,.2), rgba(251,248,242,.04) 70%, rgba(251,248,242,.25)); pointer-events: none; }
.hero .container { display: grid; min-height: 430px; grid-template-columns: minmax(0, 660px) minmax(120px, 1fr); gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-copy { max-width: 660px; }
.hero h1 { color: var(--navy); }
.hero h1 { max-width: 11.5em; font-size: clamp(2.55rem, 5.2vw, 4.15rem); line-height: 1.08; }
.hero .sub { font-size: 1.12rem; color: #3c4a55; max-width: 34em; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .micro { margin-top: 22px; font-size: .9rem; color: var(--muted); }
.hero .micro b { color: var(--navy); font-weight: 600; }

/* ---------- Capturas reales del producto ---------- */
.beta-badge { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-bottom: 14px; border: 1px solid rgba(167, 122, 40, .45); border-radius: 999px; background: rgba(201, 166, 104, .15); color: var(--gold-text); padding: 6px 12px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.beta-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-dark); box-shadow: 0 0 0 4px rgba(201, 166, 104, .18); }
.gallery-panel img { display: block; width: 100%; height: auto; object-fit: contain; }

.product-gallery { display: grid; grid-template-columns: minmax(220px, .32fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gallery-controls { display: none; gap: 9px; align-content: start; }
.product-gallery.is-enhanced .gallery-controls { position: sticky; top: calc(var(--header-height) + 22px); display: grid; max-height: calc(100vh - var(--header-height) - 44px); max-height: calc(100dvh - var(--header-height) - 44px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 4px 4px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.gallery-control { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); padding: 12px 14px; font: inherit; font-weight: 650; text-align: left; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.gallery-control:hover,
.gallery-control:focus-visible { border-color: var(--gold-dark); box-shadow: 0 7px 20px rgba(15, 42, 68, .09); transform: translateY(-1px); }
.gallery-control[aria-pressed="true"] { border-color: var(--gold); background: var(--navy); color: var(--white); box-shadow: inset 4px 0 0 var(--gold); }
.gallery-stage { min-width: 0; }
.gallery-panel { scroll-margin-top: calc(var(--header-height) + 28px); margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 10px; box-shadow: var(--shadow); }
.gallery-panel + .gallery-panel { margin-top: clamp(36px, 7vh, 70px); }
.product-gallery.is-enhanced .gallery-panel { transform: scale(.985); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.product-gallery.is-enhanced .gallery-panel[data-active="true"] { border-color: rgba(167,122,40,.72); box-shadow: 0 24px 58px rgba(15,42,68,.16); transform: none; }
.gallery-panel img { border-radius: 8px; background: var(--ivory); }
.gallery-caption { padding: 12px 6px 4px; color: var(--muted); font-size: .9rem; }
.gallery-caption strong { color: var(--navy); }

/* El contenido parte visible. JavaScript añade reveal-ready únicamente cuando
   IntersectionObserver está disponible. */
.reveal-ready { opacity: 0; transform: translateY(12px); transition: opacity .42s ease, transform .42s ease; }
.reveal-ready.reveal-in { opacity: 1; transform: none; }

/* ---------- Desplegables (ventajas / FAQ) ---------- */
details.acc { background: var(--white); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
section.alt details.acc { background: var(--ivory); }
details.acc summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 12px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary:focus-visible { outline-offset: -3px; }
details.acc summary .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
details.acc summary .chev { margin-left: auto; color: var(--gold-dark); transition: transform .15s; }
details.acc[open] summary .chev { transform: rotate(180deg); }
details.acc .body { padding: 0 20px 18px 72px; font-size: .95rem; color: var(--muted); }

/* ---------- Pasos ---------- */
ol.steps { counter-reset: paso; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
ol.steps li { counter-increment: paso; padding-top: 52px; position: relative; }
ol.steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--serif); }

/* ---------- Precios ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; position: relative; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.price-card.featured { border: 2px solid var(--gold); }
.price-card .pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy); font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; font-weight: 700; }
.price-card .plan { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin: 0; }
.price-card .who { font-size: .85rem; color: var(--muted); min-height: 2.6em; }
.price-card .price { font-size: 2.3rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); margin: 10px 0 0; }
.price-card .per { font-size: .9rem; color: var(--muted); font-weight: 400; }
.price-card .iva { font-size: .75rem; color: var(--muted); margin: 4px 0 16px; }
.price-card ul.checks { flex: 1; margin-bottom: 20px; font-size: .9rem; }
.price-card .btn { width: 100%; justify-content: center; white-space: normal; }
.prelaunch-note { margin: 0 0 34px; border-left: 4px solid var(--gold-dark); border-radius: 8px; background: var(--white); padding: 16px 18px; color: var(--navy); font-size: .9rem; box-shadow: var(--shadow); }

/* ---------- Descargas ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dl-box { background: var(--sand); border-radius: 14px; padding: 28px; display: flex; gap: 18px; align-items: center; }
.dl-box .os-ic { width: 56px; height: 56px; flex: 0 0 auto; color: var(--navy); }
.dl-box .os { font-family: var(--serif); color: var(--navy); font-size: 1.3rem; margin: 0; }
.dl-note { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 18px; }

/* ---------- Guía de compra y canales futuros ---------- */
.price-store-links { display: grid; gap: 9px; width: 100%; }
.store-guide-link { min-height: 58px; flex-direction: column; justify-content: center; gap: 1px; line-height: 1.25; }
.store-link-status { color: var(--gold-text); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.purchase-intro { padding: 36px 0; }
.purchase-intro-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 42px; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #dbe3ea; padding: clamp(28px, 4vw, 42px); box-shadow: var(--shadow); }
.purchase-intro-card .eyebrow { color: #e4c88f; }
.purchase-intro-card h2 { color: var(--white); }
.purchase-intro-card p { max-width: 48em; margin-bottom: 0; }
.purchase-intro-card .btn { grid-column: 2; grid-row: 1 / 4; min-width: 220px; justify-content: center; background: var(--gold); border-color: var(--gold); }
.purchase-help-card { border-top: 3px solid var(--gold); }

.purchase-guide { max-width: 760px; margin: 24px auto 0; border: 1px solid rgba(167,122,40,.4); border-radius: 12px; background: var(--white); padding: 20px; text-align: center; }
.purchase-guide p { color: var(--navy); margin-bottom: 12px; }

.purchase-hero { background: linear-gradient(120deg, var(--white) 0%, var(--ivory) 62%, var(--sand) 155%); }
.purchase-hero h1 { max-width: 15em; }
.purchase-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.purchase-status { width: fit-content; margin: 0; border-left-color: var(--gold-dark); box-shadow: none; }

.purchase-warning { position: relative; isolation: isolate; max-width: 900px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(201,166,104,.65); border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #dbe3ea; padding: clamp(28px, 5vw, 48px); box-shadow: 0 18px 42px rgba(15,42,68,.14); }
.purchase-warning::after { content: ''; position: absolute; z-index: -1; right: -62px; bottom: -82px; width: 190px; height: 190px; border: 28px solid rgba(201,166,104,.12); border-radius: 50%; }
.purchase-warning .eyebrow { color: #e4c88f; }
.purchase-warning h2 { color: var(--white); }
.purchase-warning p { max-width: 56em; }
.purchase-warning-strong { margin: 22px 0 0; border-left: 4px solid var(--gold); padding-left: 16px; color: var(--white); font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; }

.purchase-plan-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.purchase-plan-option { position: relative; display: flex; min-width: 0; min-height: 245px; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; background: var(--ivory); color: var(--ink); padding: 28px; font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.purchase-plan-option:hover,
.purchase-plan-option:focus-visible { border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15,42,68,.12); }
.purchase-plan-option.is-active,
.purchase-plan-option[aria-pressed="true"] { border: 2px solid var(--gold-dark); background: var(--white); box-shadow: inset 5px 0 0 var(--gold), 0 16px 38px rgba(15,42,68,.12); }
.purchase-plan-option.is-active::after,
.purchase-plan-option[aria-pressed="true"]::after { content: ''; position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; background: var(--navy); clip-path: polygon(13% 43%, 0 58%, 38% 100%, 100% 17%, 84% 2%, 37% 69%); }
.purchase-plan-name { max-width: calc(100% - 32px); color: var(--navy); font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.purchase-plan-users { color: var(--muted); font-size: .86rem; margin: 8px 0 auto; }
.purchase-plan-price { color: var(--ink); font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.purchase-plan-price .per { color: var(--muted); font-size: .88rem; font-weight: 400; }
.purchase-plan-vat { color: var(--muted); font-size: .76rem; }
.purchase-plan-recommended { border-color: var(--gold); background: rgba(201,166,104,.16); color: var(--gold-text); }
.purchase-selection-summary { width: fit-content; max-width: 100%; margin: 24px auto 0; border-radius: 999px; background: var(--sand); color: var(--navy); padding: 9px 16px; text-align: center; }
.purchase-selection-summary strong { margin-left: 4px; }

.purchase-store-selector { align-items: stretch; }
.purchase-store-card { position: relative; display: flex; min-width: 0; min-height: 255px; flex-direction: column; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.purchase-store-card:hover,
.purchase-store-card:focus-within { border-color: rgba(167,122,40,.7); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15,42,68,.11); }
.purchase-store-card[data-active] { border: 2px solid var(--gold-dark); box-shadow: inset 5px 0 0 var(--gold), 0 16px 38px rgba(15,42,68,.12); }
.purchase-store-card[data-active]::after { content: ''; position: absolute; top: 22px; right: 22px; width: 24px; height: 24px; background: var(--navy); clip-path: polygon(13% 43%, 0 58%, 38% 100%, 100% 17%, 84% 2%, 37% 69%); }
.purchase-store-card h3 { padding-right: 36px; }
.purchase-store-card p { flex: 1; }
.purchase-store-state { border-color: var(--gold); }
.purchase-store-option { width: 100%; min-height: 44px; justify-content: center; white-space: normal; }
.purchase-store-option.is-active,
.purchase-store-option[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
html:not(.js) .purchase-plan-option,
html:not(.js) .purchase-store-option { pointer-events: none; cursor: default; }
html:not(.js) .purchase-plan-option:hover,
html:not(.js) .purchase-store-card:hover { transform: none; box-shadow: var(--shadow); }

.purchase-flow { list-style: none; padding: 0; margin: 0; }
.purchase-step { position: relative; padding-top: 62px; }
.purchase-step-number { position: absolute; top: 24px; left: 26px; color: var(--gold-text); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.purchase-step h3 { font-size: 1.35rem; }

.purchase-enterprise { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr) auto; gap: 30px; align-items: center; border-top: 4px solid var(--gold); padding: clamp(26px, 4vw, 42px); }
.purchase-enterprise-copy p { margin-bottom: 0; }
.purchase-enterprise-features { min-width: 0; }
.purchase-enterprise .btn { justify-content: center; white-space: normal; }
.purchase-final .section-head { margin-bottom: 24px; }
.purchase-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }


/* ---------- Contacto ---------- */
.form { display: grid; gap: 16px; max-width: 620px; margin: 0 auto; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .field { display: block; }
.form .field > span { font-size: .85rem; font-weight: 600; color: var(--ink); display: block; }
.form .field.required > span::after { content: ' *'; color: var(--gold-text); font-weight: 700; }
.form input, .form select, .form textarea { width: 100%; margin-top: 5px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; font-size: .95rem; background: var(--white); color: var(--ink); }
.form textarea { resize: vertical; min-height: 200px; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,33,56,.08); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.form .consent input[type="checkbox"] { width: 15px; height: 15px; min-width: 15px; flex: 0 0 15px; margin: 3px 0 0; padding: 0; accent-color: var(--navy); cursor: pointer; }
.form .consent a { font-weight: 600; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #cdd6df; padding: 44px 0 30px; }
footer .top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer .brand .bt b { color: #fff; }
footer .brand .bt span { color: #9fb0c0; }
footer .flinks { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .9rem; }
footer .flinks a { color: #cdd6df; text-decoration: none; }
footer .flinks a:hover { color: #fff; text-decoration: underline; }
footer .disclaimer { max-width: 60em; margin: 22px 0 12px; font-size: .8rem; color: #9fb0c0; line-height: 1.6; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
footer .copy { font-size: .75rem; color: #9fb0c0; }

/* ---------- Legal ---------- */
.legal-page { padding: 48px 0; }
.legal-page .doc { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 32px; margin-bottom: 28px; }
.legal-page .doc h2,
.legal-page .doc h3 { color: var(--navy-700); margin-top: 1.4em; }
.legal-page .doc h2 { font-size: 1.2rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.legal-nav a { font-size: .85rem; text-decoration: none; border: 1px solid var(--gold); color: var(--navy); border-radius: 999px; padding: 6px 14px; background: var(--white); }
.legal-nav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.placeholder { background: #fff8e6; border-bottom: 1px dashed var(--gold); }

/* ---------- Cabecera de página interior ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 48px 0 40px; position: relative; overflow: hidden; }
.page-head .container { position: relative; z-index: 1; }
.page-head .eyebrow { margin-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 46em; }

/* ---------- Página 404 ---------- */
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }

/* ---------- Banda CTA ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: 16px; padding: 40px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d3dc; max-width: 40em; margin: 0 auto 22px; }
.cta-band .deco-q { position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; background: rgba(201,166,104,.18); border-top-left-radius: 100%; }

/* ---------- Valores (Sobre nosotros) ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }

/* ---------- FAQ, ayuda y estados precomerciales ---------- */
.faq-content { max-width: 880px; margin: 0 auto; }
.help-subnav { margin: 0 0 28px; }
.faq-group + .faq-group { margin-top: 42px; }
.faq-group > h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.faq-item summary > [data-i18n] { flex: 1; min-width: 0; }
.faq-item .body { padding-left: 20px; }
.faq-item .body p:last-child { margin-bottom: 0; }

.status-badge { display: inline-flex; align-self: flex-start; width: fit-content; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; font-size: .72rem; line-height: 1.25; font-weight: 700; margin-bottom: 12px; }
.status-available { color: var(--green); background: #edf5ef; border-color: #cfe2d4; }
.status-development { color: var(--navy); background: var(--sand); border-color: #d8c5a8; }
.status-planned, .status-preparing { color: var(--gold-text); background: rgba(201,166,104,.14); border-color: var(--gold); }
.status-email { color: var(--navy); background: #eef3f7; border-color: #cbd7e1; }
.status-unavailable { color: var(--muted); background: #eef1f4; }

.feature-section + .feature-section { margin-top: 46px; }
.feature-section > h2 { margin-bottom: 18px; }
.feature-card, .help-card { display: flex; flex-direction: column; align-items: flex-start; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.feature-card:hover,
.feature-card:focus-within,
.help-card:hover,
.help-card:focus-within,
.price-card:hover,
.price-card:focus-within { border-color: rgba(167, 122, 40, .68); box-shadow: 0 14px 34px rgba(15, 42, 68, .11); transform: translateY(-3px); }
.feature-card .icon-circle,
.help-card .icon-circle { transition: transform .2s ease, background-color .2s ease; }
.feature-card:hover .icon-circle,
.feature-card:focus-within .icon-circle,
.help-card:hover .icon-circle,
.help-card:focus-within .icon-circle { transform: translateY(-2px); background: #e4d2b6; }
.help-card p { flex: 1; }
.help-card > .btn, .help-card .card-actions { margin-top: auto; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.text-link { font-size: .9rem; font-weight: 600; }

/* ---------- Motivos geométricos decorativos (Bauhaus) ---------- */
/* Disco suave + retícula de puntos en el hero (automático, sin marcado por página). */
.hero::after { content: ''; position: absolute; left: -30px; bottom: -10px; width: 150px; height: 110px; background-image: radial-gradient(var(--gold-soft) 1.5px, transparent 1.7px); background-size: 15px 15px; opacity: .55; z-index: 0; }
/* Anillo sutil en secciones alternas. */
section.alt { position: relative; overflow: hidden; }
section.alt::after { content: ''; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border: 2px solid var(--sand); border-radius: 50%; opacity: .8; z-index: 0; pointer-events: none; }
section.alt .container { position: relative; z-index: 1; }
/* Retícula de puntos tenue en cabeceras de página interior. */
.page-head::after { content: ''; position: absolute; right: 24px; top: 18px; width: 130px; height: 80px; background-image: radial-gradient(var(--gold-soft) 1.5px, transparent 1.7px); background-size: 14px 14px; opacity: .5; z-index: 0; }
/* Cuarto de círculo y puntos en el footer (azul sobre azul). */
footer { position: relative; overflow: hidden; }
footer::before { content: ''; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border: 2px solid rgba(255,255,255,.08); border-radius: 50%; }
footer .container { position: relative; z-index: 1; }

/* ---------- Utilidades accesibles ---------- */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row.center { justify-content: center; }

/* ---------- Flujo visual de la portada ---------- */
.workflow-section { position: relative; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; align-items: stretch; }
.workflow-card { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--white); padding: 24px; box-shadow: 0 9px 26px rgba(15, 42, 68, .08); transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.workflow-card h3 { max-width: calc(100% - 42px); font-size: 1.28rem; }
.workflow-card > p { flex: 1; color: var(--muted); font-size: .9rem; }
.workflow-number { position: absolute; top: 20px; right: 22px; color: rgba(143, 101, 31, .42); font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: .08em; transition: color .25s ease, transform .3s ease; }
.workflow-image-link { position: relative; display: block; margin-top: 10px; overflow: hidden; border: 1px solid rgba(15, 42, 68, .16); border-radius: 11px; background: var(--ivory); color: var(--white); text-decoration: none; aspect-ratio: 16 / 10; }
.workflow-image-link picture,
.gallery-lightbox picture { display: block; width: 100%; height: 100%; }
.workflow-image-link img,
.gallery-lightbox img { width: 100%; height: 100%; background: var(--ivory); object-fit: contain; transition: transform .3s cubic-bezier(.2,.7,.2,1), filter .25s ease; }
.workflow-expand,
.gallery-expand { position: absolute; right: 9px; bottom: 9px; border-radius: 999px; background: rgba(10, 33, 56, .92); color: var(--white); padding: 6px 10px; font-size: .72rem; font-weight: 700; line-height: 1.25; box-shadow: 0 4px 14px rgba(10,33,56,.24); }
.workflow-related { display: inline-flex; width: fit-content; gap: .2em; margin-top: 12px; color: var(--navy); font-size: .82rem; font-weight: 700; }
.workflow-related:hover { color: var(--gold-text); }
.workflow-card:focus-within { z-index: 6; border-color: var(--gold-dark); background: #fffefa; box-shadow: 0 18px 42px rgba(15, 42, 68, .17); transform: translateY(-5px) scale(1.018); }
.workflow-card:focus-within .workflow-number { color: var(--gold-text); transform: translateY(-3px); }
.workflow-card:focus-within .workflow-image-link img { transform: scale(1.025); }

@media (hover: hover) and (pointer: fine) {
  .workflow-card:hover { z-index: 7; border-color: var(--gold-dark); background: #fffefa; box-shadow: 0 28px 58px rgba(15, 42, 68, .22); transform: translateY(-12px) scale(1.065); }
  .workflow-card:hover .workflow-number { color: var(--gold-text); transform: translate(-2px, -5px) scale(1.08); }
  .workflow-card:hover .workflow-image-link { border-color: var(--gold); }
  .workflow-card:hover .workflow-image-link img { filter: contrast(1.025); transform: scale(1.035); }
}

/* La galería de Características usa las mismas miniaturas y el mismo visor. */
.gallery-lightbox { position: relative; display: block; overflow: hidden; border-radius: 8px; background: var(--ivory); aspect-ratio: 16 / 10; }
.gallery-lightbox:focus-visible { outline-offset: 4px; }

/* ---------- Visor ampliado reutilizable ---------- */
html.viewer-open,
html.viewer-open body { overflow: hidden; }
.media-viewer { width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; border: 1px solid rgba(201,166,104,.75); border-radius: 16px; background: var(--navy-900); color: var(--white); padding: 0; box-shadow: 0 30px 90px rgba(5, 17, 29, .48); }
.media-viewer::backdrop { background: rgba(5, 17, 29, .82); backdrop-filter: blur(3px); }
.media-viewer[open] { display: block; }
.viewer-shell { display: grid; max-height: calc(100vh - 34px); max-height: calc(100dvh - 34px); grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 18px 20px 12px; }
.viewer-head h2 { margin: 0; color: var(--white); font-size: clamp(1.2rem, 3vw, 1.65rem); }
.viewer-position { margin: 3px 0 0; color: #cdd6df; font-size: .78rem; }
.viewer-close,
.viewer-nav button,
.spotlight-arrow { min-width: 44px; min-height: 44px; border: 1px solid rgba(201,166,104,.7); border-radius: 10px; background: rgba(255,255,255,.08); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.viewer-close { flex: 0 0 auto; padding: 9px 14px; color: var(--white); }
.viewer-figure { display: grid; min-height: 0; margin: 0; grid-template-rows: minmax(0, 1fr) auto; }
.viewer-image-stage { display: flex; min-height: 180px; align-items: center; justify-content: center; overflow: hidden; margin: 0 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: var(--ivory); }
.viewer-image-stage img { display: block; max-width: 100%; max-height: min(65vh, 720px); max-height: min(65dvh, 720px); width: auto; height: auto; object-fit: contain; }
.viewer-caption { min-height: 3.2em; margin: 0; padding: 12px 20px 6px; color: #dbe3ea; font-size: .88rem; }
.viewer-nav { display: flex; justify-content: center; gap: 12px; padding: 8px 20px 18px; }
.viewer-nav button { min-width: 132px; padding: 9px 14px; color: var(--white); }
.viewer-close:hover,
.viewer-nav button:hover { background: rgba(201,166,104,.2); border-color: var(--gold); }

/* ---------- Presentación spotlight de los planes ---------- */
.plan-spotlight { min-width: 0; }
.spotlight-controls { display: none; }
.plan-spotlight.is-spotlight .spotlight-controls { display: flex; justify-content: center; gap: 14px; align-items: center; margin: 0 auto 8px; }
.spotlight-arrow { color: var(--navy); background: var(--white); }
.spotlight-arrow:hover { border-color: var(--gold-dark); background: var(--sand); }
.spotlight-indicators { display: flex; gap: 9px; align-items: center; justify-content: center; min-height: 44px; padding: 0 5px; }
.spotlight-indicators button { position: relative; width: 28px; height: 44px; border: 0; border-radius: 999px; background: transparent; padding: 0; cursor: pointer; }
.spotlight-indicators button::before { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border: 1px solid var(--gold-dark); border-radius: 50%; background: var(--white); transform: translate(-50%, -50%); transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.spotlight-indicators button:hover::before { transform: translate(-50%, -50%) scale(1.12); }
.spotlight-indicators button[aria-pressed="true"]::before { background: var(--gold-dark); box-shadow: 0 0 0 4px rgba(201,166,104,.22); transform: translate(-50%, -50%) scale(1.12); }
.plan-spotlight.is-spotlight .spotlight-track { display: flex; min-width: 0; gap: 16px; align-items: stretch; overflow-x: auto; overscroll-behavior-inline: contain; padding: 28px max(24px, calc(50% - 180px)) 46px; scroll-behavior: smooth; scroll-padding-inline: 50%; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.plan-spotlight.is-spotlight .price-card { flex: 0 0 min(360px, calc(100% - 48px)); scroll-snap-align: center; scroll-snap-stop: always; background: #f6f3ed; filter: saturate(.82); transform: scale(.9); transform-origin: center; box-shadow: 0 8px 22px rgba(15,42,68,.06); transition: transform .42s cubic-bezier(.2,.72,.2,1), background-color .3s ease, border-color .3s ease, box-shadow .3s ease, filter .3s ease; }
.plan-spotlight.is-spotlight .price-card[data-active="true"] { z-index: 3; border-color: var(--gold); background: var(--white); filter: none; box-shadow: 0 24px 54px rgba(15,42,68,.2); transform: scale(1); }
.plan-spotlight.is-spotlight .price-card::after { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: 14px; background: linear-gradient(105deg, transparent 25%, rgba(201,166,104,.02) 39%, rgba(201,166,104,.28) 49%, rgba(255,255,255,.34) 52%, rgba(201,166,104,.02) 64%, transparent 76%); background-position: 180% 0; background-size: 260% 100%; opacity: 0; pointer-events: none; }
.plan-spotlight.is-spotlight .price-card.spotlight-sweep::after { animation: spotlight-sweep .52s ease-out 1; }
.plan-spotlight .price-card .pop { z-index: 5; white-space: nowrap; }
@keyframes spotlight-sweep { 0% { background-position: 180% 0; opacity: 0; } 16% { opacity: 1; } 100% { background-position: -80% 0; opacity: 0; } }

/* ---------- Historia y equipo ---------- */
.about-hero .about-hero-note { margin-top: 18px; color: var(--navy); font-weight: 700; }
.story-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 52px; align-items: center; }
.story-quote { position: relative; margin: 0; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: var(--navy); color: var(--white); padding: 34px 30px; box-shadow: var(--shadow); }
.story-quote::before { content: '“'; position: absolute; top: -20px; left: 18px; color: var(--gold); font-family: var(--serif); font-size: 5rem; line-height: 1; opacity: .8; }
.story-quote p { position: relative; margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.35; }
.project-timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 28px 0 0; }
.project-timeline::before { content: ''; position: absolute; top: 9px; left: 8%; right: 8%; height: 2px; background: var(--gold); transform-origin: left; transition: transform .8s ease .2s; }
.timeline-section.reveal-ready .project-timeline::before { transform: scaleX(0); }
.timeline-section.reveal-in .project-timeline::before { transform: scaleX(1); }
.timeline-item { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory); padding: 23px 20px 19px; }
.timeline-item::before { content: ''; position: absolute; top: -25px; left: 50%; width: 12px; height: 12px; border: 3px solid var(--ivory); border-radius: 50%; background: var(--gold-dark); box-shadow: 0 0 0 1px var(--gold-dark); transform: translateX(-50%); }
.timeline-date { display: block; color: var(--gold-text); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.timeline-item h3 { margin-top: 6px; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .84rem; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.team-card { display: grid; min-width: 0; grid-template-columns: minmax(170px, .72fr) minmax(0, 1.28fr); align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.team-card:hover,
.team-card:focus-within { border-color: rgba(167,122,40,.7); box-shadow: 0 18px 42px rgba(15,42,68,.14); transform: translateY(-3px); }
.team-photo { display: block; width: calc(100% - 20px); height: auto; min-height: 0; margin-left: 20px; overflow: hidden; border-radius: 12px; background: var(--sand); aspect-ratio: 4 / 5; }
.team-photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.team-photo-borja { object-position: 50% 44%; }
.team-photo-alejandro { object-position: 50% 42%; }
.team-copy { display: flex; min-width: 0; flex-direction: column; padding: 26px; }
.team-copy h3 { font-size: 1.38rem; }
.team-copy > p:not(.team-role) { color: var(--muted); font-size: .84rem; }
.team-role { color: var(--gold-text); font-size: .78rem; font-weight: 700; }
.team-copy .external-link { width: fit-content; margin-top: auto; }
.external-link::after { content: ' ↗'; }
.work-cycle { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.work-step { border-top: 3px solid var(--gold); border-radius: 0 0 10px 10px; background: var(--ivory); padding: 18px; }
.work-step > span { color: var(--gold-text); font-family: var(--display); font-size: .78rem; }
.work-step h3 { margin-top: 9px; font-size: 1.05rem; }
.name-section { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--ivory) 0%, #f9f3e9 54%, var(--ivory) 100%); }
.name-editorial { position: relative; min-height: 650px; }
.name-copy { position: relative; z-index: 2; width: min(100%, 760px); margin: 0 auto; }
.name-copy::before { content: ''; position: absolute; z-index: -1; inset: -42px -72px; background: radial-gradient(ellipse at center, rgba(251,248,242,.99) 0%, rgba(251,248,242,.97) 58%, rgba(251,248,242,.78) 76%, rgba(251,248,242,0) 100%); pointer-events: none; }
.name-copy h2 { max-width: 16em; margin-bottom: 22px; }
.name-prose { color: #314353; }
.name-prose p { margin-bottom: 17px; font-size: .96rem; line-height: 1.72; }
.name-prose p:last-child { margin-bottom: 0; }
.name-closing { margin: 28px 0 0; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--navy); color: var(--white); padding: 19px 24px; box-shadow: 0 14px 34px rgba(15,42,68,.15); }
.name-closing strong { font-family: var(--serif); font-size: clamp(1.16rem, 2vw, 1.42rem); font-weight: 600; line-height: 1.35; }
.name-visual { position: absolute; z-index: 0; margin: 0; pointer-events: none; }
.name-visual img { display: block; width: 100%; height: auto; }
.name-visual-tabulae { top: 4px; left: -300px; width: 650px; opacity: .84; }
.name-visual-building { right: -350px; bottom: -92px; width: 760px; opacity: .76; }

/* ---------- Movimiento progresivamente mejorado ---------- */
.hero.hero-motion-ready [data-hero-part] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: var(--hero-delay, 0ms); }
.hero.hero-motion-in [data-hero-part] { opacity: 1; transform: none; }
.hero.hero-motion-in::after { animation: motif-turn 16s ease-in-out infinite alternate; }
.page-hidden .hero::after { animation-play-state: paused; }
@keyframes motif-turn { from { transform: translate(0, 0) rotate(0); } to { transform: translate(4px, -3px) rotate(3deg); } }
:where(.reveal-ready) .reveal-child { opacity: 0; transform: translateY(14px); }
:where(.reveal-ready.reveal-in) .reveal-child { opacity: 1; transform: none; transition: opacity .46s ease var(--reveal-delay, 0ms), transform .46s ease var(--reveal-delay, 0ms); }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  :root { --header-height: 84px; }
  .topbar .brand img { height: 62px; }
  .topbar .brand .bt b { font-size: 1.22rem; }
  .nav { position: fixed; inset: var(--header-height) 0 auto 0; max-height: calc(100vh - var(--header-height)); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .nav a.active { border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--gold-dark); padding-left: 12px; font-weight: 700; }
  .nav .lang { margin-top: 10px; }
  .hamb { display: block; }
}

@media (min-width: 1321px) and (max-width: 1439px) {
  :root { --header-height: 84px; }
  .topbar .brand { gap: 9px; }
  .topbar .brand img { height: 58px; }
  .topbar .brand .bt b { font-size: 1.08rem; letter-spacing: 1.2px; }
  .nav { gap: 7px; }
  .nav a { font-size: .82rem; }
  .nav .lang { padding-inline: 6px; font-size: .76rem; }
  .nav .btn-sm { padding: 9px 12px; font-size: .79rem; }
}

@media (max-width: 1180px) {
  .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .purchase-intro-card { grid-template-columns: 1fr; row-gap: 22px; }
  .purchase-intro-card .btn { grid-column: 1; grid-row: auto; width: fit-content; min-width: 0; }
  .purchase-plan-selector { grid-template-columns: 1fr; }
  .purchase-plan-option { min-height: 0; }
  .purchase-enterprise { grid-template-columns: 1fr; }
  .purchase-enterprise .btn { width: fit-content; }
  .hero .container, .grid-3, .grid-2, .grid-4, .dl-grid, ol.steps, .form .row { grid-template-columns: 1fr; }
  .hero { min-height: 590px; background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(251,248,242,.98) 0%, rgba(251,248,242,.94) 54%, rgba(251,248,242,.68) 100%), linear-gradient(180deg, rgba(251,248,242,.12), rgba(251,248,242,.2)); }
  .hero .container { min-height: 400px; gap: 0; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-gallery.is-enhanced .gallery-controls { position: sticky; z-index: 9; top: var(--header-height); display: flex; max-height: none; margin: 0 -8px 8px; overflow-x: auto; overflow-y: hidden; border: 1px solid rgba(218,221,226,.9); border-radius: 11px; background: rgba(251,248,242,.96); padding: 7px; box-shadow: 0 8px 22px rgba(15,42,68,.09); scrollbar-width: thin; }
  .product-gallery.is-enhanced .gallery-control { flex: 0 0 auto; width: auto; min-height: 44px; padding: 10px 14px; white-space: nowrap; }
  .gallery-panel { scroll-margin-top: calc(var(--header-height) + 76px); }
  .gallery-panel + .gallery-panel { margin-top: 34px; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-layout { grid-template-columns: 1fr; gap: 30px; }
  .name-editorial { display: grid; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .name-copy { grid-column: 1 / -1; }
  .name-copy::before { inset: -28px -20px; }
  .name-visual { position: relative; width: 100%; opacity: .82; }
  .name-visual-tabulae { top: auto; left: auto; }
  .name-visual-building { right: auto; bottom: auto; }
  .project-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 20px; }
  .project-timeline::before { display: none; }
  .timeline-item::before { top: -9px; left: 24px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: minmax(190px, .45fr) minmax(0, 1fr); }
  .work-cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .pricing { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-timeline { grid-template-columns: 1fr; gap: 24px; }
  .team-card { grid-template-columns: 1fr; padding-top: 20px; }
  .team-photo { width: min(280px, calc(100% - 40px)); height: auto; min-height: 0; margin: 0 auto; border-radius: 12px; }
  .team-copy { padding: 22px; }
  .work-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .name-editorial { grid-template-columns: 1fr; }
  .name-visual { width: min(100%, 560px); justify-self: center; }
  .plan-spotlight.is-spotlight .spotlight-track { gap: 14px; padding-inline: 24px; scroll-padding-inline: 24px; }
  .plan-spotlight.is-spotlight .price-card { flex-basis: calc(100% - 48px); }
  .viewer-head { padding: 14px 14px 10px; }
  .viewer-close { width: 44px; padding: 8px; font-size: 0; }
  .viewer-close::before { content: '×'; font-size: 1.4rem; }
  .viewer-image-stage { margin-inline: 12px; }
  .viewer-caption { padding-inline: 14px; }
  .viewer-nav { gap: 8px; padding: 8px 12px max(14px, env(safe-area-inset-bottom)); }
  .viewer-nav button { min-width: 0; flex: 1; padding-inline: 10px; }
}

@media (max-width: 420px) {
  :root { --header-height: 72px; }
  .container { padding-inline: 16px; }

  .topbar .brand { gap: 9px; }
  .topbar .brand img { height: 52px; }
  .topbar .brand .bt b { font-size: 1.05rem; letter-spacing: 1px; }

  .nav { inset: var(--header-height) 0 auto 0; max-height: calc(100vh - var(--header-height)); max-height: calc(100dvh - var(--header-height)); padding: 8px 16px 16px; }

  section { padding: 44px 0; }
  .hero { min-height: 560px; padding: 54px 0 48px; background-position: 65% center; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3rem); }
  .page-head { padding: 36px 0 30px; }

  .hero .cta-row { flex-direction: column; }
  .hero .btn, .cta-band .btn, .dl-box .btn, .form .btn, .help-card .btn, .purchase-hero-actions .btn, .purchase-intro-card .btn, .purchase-enterprise .btn, .purchase-links .btn { width: 100%; justify-content: center; white-space: normal; }

  .card, .price-card, .dl-box { padding: 20px; }
  .dl-box { flex-direction: column; align-items: flex-start; }
  .dl-box > div { width: 100%; }

  details.acc summary { padding: 16px; gap: 10px; }
  details.acc .body { padding: 0 16px 16px; }

  .cta-band { padding: 30px 18px; border-radius: 12px; }
  .card-actions { width: 100%; }
  .error-actions { flex-direction: column; padding: 20px; }
  .error-actions .btn { width: 100%; justify-content: center; white-space: normal; }

  .legal-page { padding: 32px 0; }
  .legal-page .doc { padding: 20px; }
  .product-gallery.is-enhanced .gallery-controls { margin-inline: 0; }
  .gallery-control { padding: 11px 12px; }
  .gallery-panel { padding: 6px; }
  .workflow-card { padding: 20px; }
  .workflow-number { top: 17px; right: 18px; }
  .workflow-expand, .gallery-expand { right: 7px; bottom: 7px; }
  .spotlight-controls { gap: 8px; }
  .spotlight-indicators { gap: 7px; }
  .media-viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .viewer-shell { max-height: calc(100dvh - 18px); }
  .work-cycle { grid-template-columns: 1fr; }
  .name-prose p { font-size: .92rem; line-height: 1.68; }
  .name-closing { padding: 17px 18px; }
  .purchase-warning, .purchase-plan-option, .purchase-store-card { padding: 20px; }
  .purchase-plan-option.is-active::after, .purchase-plan-option[aria-pressed="true"]::after { top: 12px; right: 12px; }
  .purchase-store-card[data-active]::after { top: 15px; right: 15px; }
  .purchase-selection-summary { border-radius: 12px; }
  .purchase-selection-summary strong { display: block; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover,
  .gallery-control:hover,
  .gallery-control:focus-visible,
  .feature-card:hover,
  .feature-card:focus-within,
  .help-card:hover,
  .help-card:focus-within,
  .price-card:hover,
  .price-card:focus-within,
  .feature-card:hover .icon-circle,
  .feature-card:focus-within .icon-circle,
  .help-card:hover .icon-circle,
  .help-card:focus-within .icon-circle,
  .reveal-ready { transform: none; }
  .reveal-ready { opacity: 1; }
  .hero.hero-motion-ready [data-hero-part],
  .reveal-ready .reveal-child { opacity: 1; transform: none; }
  .hero.hero-motion-in::after,
  .plan-spotlight.is-spotlight .price-card.spotlight-sweep::after { animation: none !important; }
  .workflow-card:hover,
  .workflow-card:focus-within,
  .workflow-card:hover .workflow-number,
  .workflow-card:focus-within .workflow-number,
  .workflow-card:hover .workflow-image-link img,
  .workflow-card:focus-within .workflow-image-link img,
  .team-card:hover,
  .team-card:focus-within { transform: none; }
  .spotlight-indicators button:hover::before,
  .spotlight-indicators button[aria-pressed="true"]::before { transform: translate(-50%, -50%); }
  .plan-spotlight.is-spotlight .price-card,
  .plan-spotlight.is-spotlight .price-card[data-active="true"],
  .purchase-plan-option:hover,
  .purchase-plan-option:focus-visible,
  .purchase-store-card:hover,
  .purchase-store-card:focus-within { transform: none; }
}
