/* ==========================================================================
   Regreso al pasado · Hoja de estilos única
   Tipografía: Inter en local (/fonts/InterVariable*.woff2), sin Google Fonts.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --bg: #080c10;
  --bg2: #0d141a;
  --panel: #111a21;
  --text: #f1eee5;
  --muted: #b8c4cb;
  --soft: #9eb0bc;
  --cyan: #25bfe9;
  --orange: #ffae19;
  --line: #283740;
  --line-strong: #40515b;
  --whatsapp: #25d366;

  /* Sección cálida «álbum» */
  --paper: #f1eee5;
  --ink: #0d141a;
  --ink-soft: #3d4a53;
  --ink-line: #d6d0bf;
  --ink-orange: #9a5a00;
  --ink-cyan: #0a6a86;

  /* Tipografía */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;   /* 13 px: mínimo absoluto */
  --fs-sm: 0.875rem;    /* 14 px */
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;

  /* Forma */
  --radius: 13px;
  --radius-sm: 8px;
  --max: 1160px;
  --narrow: 720px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

p, li, summary, dd { text-wrap: pretty; overflow-wrap: break-word; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }
.text-link { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--text); }

img, video, svg { max-width: 100%; }
img, video { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 4px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--orange);
  color: #111;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap { width: min(var(--max), 92%); margin-inline: auto; }
.article-narrow { max-width: var(--narrow); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.orange { color: var(--orange); }

/* ---------- Cabecera ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 16, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

nav.main-nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.wordmark { display: block; width: 143px; height: auto; }

.links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #c8d0d5;
  font-size: var(--fs-sm);
}
.links a { transition: color 0.15s ease; }
.links a:hover, .links a[aria-current="page"] { color: var(--orange); }
.links .nav-cta { color: #111; }
.links .nav-cta:hover { color: #111; }

.menu-btn { display: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.btn.primary { background: var(--orange); color: #111; }
.btn.primary:hover { background: #ffbe45; }
.btn.ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: var(--fs-sm); }

/* ---------- Secciones ---------- */
section { padding: 84px 0; }
.dark { background: var(--bg2); }
.anchor-section { scroll-margin-top: 84px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--cyan);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -1.5px;
  font-weight: 800;
  margin: 12px 0 18px;
}
.section-head p { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 64px; }
.hero::before {
  content: "";
  position: absolute;
  width: 760px; height: 760px;
  border: 1px solid rgba(37, 191, 233, 0.13);
  border-radius: 50%;
  right: -270px; top: -160px;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -2.5px;
  font-weight: 800;
  font-style: italic;
  margin: 14px 0 22px;
}
.hero h1 .orange { display: inline; }
.lead { font-size: var(--fs-md); color: #c7d0d5; max-width: 620px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.actions.center { justify-content: center; }
.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.contact-line a { color: var(--text); font-weight: 700; }
.contact-line a:hover { color: var(--orange); }

.hero-logo { display: block; width: 100%; max-width: 470px; height: auto; margin: 0 auto; filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.45)); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(13, 20, 26, 0.8);
}
.fact { padding: 14px 14px; font-size: var(--fs-xs); color: var(--muted); border-right: 1px solid var(--line); line-height: 1.4; }
.fact:last-child { border-right: 0; }
.fact strong { display: block; color: var(--text); font-size: var(--fs-sm); margin-bottom: 4px; }

/* ---------- Muestra de vídeo ---------- */
.result-video { margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #05080b; }
.result-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #05080b; }
.result-video video::-internal-media-controls-download-button { display: none !important; }
.result-video video::-webkit-media-controls-enclosure { overflow: hidden; }
.video-note { margin: 0; padding: 14px 18px; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Tarjetas de servicio / formatos ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card, .box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.service-card h3 { font-size: 1.3rem; font-weight: 800; margin: 10px 0; }
.service-card p, .box p { color: var(--muted); font-size: var(--fs-sm); }
.service-card p:last-child, .box p:last-child { margin-bottom: 0; }
.label { color: var(--cyan); font-size: var(--fs-xs); letter-spacing: 2px; font-weight: 800; text-transform: uppercase; }
.badge-soon {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 174, 25, 0.1);
  border: 1px solid rgba(255, 174, 25, 0.35);
}

/* ---------- Precios ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.tier {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.tier .range { color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.tier .price { margin: 6px 0 2px; font-size: 2.4rem; font-weight: 900; letter-spacing: -1px; color: var(--orange); line-height: 1.1; }
.tier .price small { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); letter-spacing: 0; }
.tier .per { color: var(--muted); font-size: var(--fs-xs); margin: 0; }
.price-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.extra strong { display: block; }
.extra span { color: var(--muted); font-size: var(--fs-sm); }
.extra .amount { color: var(--cyan); font-size: 1.35rem; font-weight: 800; white-space: nowrap; }
.price-foot { margin-top: 18px; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Calculadora ---------- */
.calc {
  margin-top: 34px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 30px;
}
.calc h3 { font-size: 1.5rem; font-weight: 800; margin: 8px 0 6px; }
.calc-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; margin-top: 22px; }
.calc-rows { display: flex; flex-direction: column; gap: 10px; }
.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.calc-row label { font-weight: 700; flex: 1; }
.calc-row label small { display: block; color: var(--muted); font-weight: 500; font-size: var(--fs-xs); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: inherit; font-size: 1.25rem; font-weight: 800;
  cursor: pointer;
}
.stepper button:hover { border-color: var(--cyan); color: var(--cyan); }
.stepper input {
  width: 56px; height: 40px;
  text-align: center;
  font: inherit; font-weight: 800;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; color: var(--muted); font-size: var(--fs-sm); }
.calc-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }
.calc-check strong { color: var(--text); }
.calc-result { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 22px; align-self: start; }
.calc-result .total { font-size: 2.6rem; font-weight: 900; color: var(--orange); letter-spacing: -1px; line-height: 1.1; margin: 6px 0; }
.calc-result ul { list-style: none; margin: 10px 0 18px; padding: 0; color: var(--muted); font-size: var(--fs-sm); }
.calc-result li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.calc-result li:last-child { border-bottom: 0; }
.calc-result .btn { width: 100%; }
.calc-note { color: var(--muted); font-size: var(--fs-xs); margin: 12px 0 0; }

/* ---------- Avisos y cajas ---------- */
.notice { margin-top: 20px; background: #0e171e; border: 1px solid #334650; border-radius: var(--radius); padding: 24px; }
.notice h3 { font-size: 1.2rem; font-weight: 800; margin: 6px 0 8px; }
.notice p { color: var(--muted); margin: 6px 0 0; }
.notice p strong { color: var(--text); }

.delivery-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.85fr;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
  padding: 28px;
}
.delivery-card h3 { font-size: 1.3rem; font-weight: 800; margin: 6px 0 12px; }
.delivery-options { border-left: 1px solid rgba(255, 255, 255, 0.1); padding-left: 32px; display: flex; flex-direction: column; gap: 16px; }
.delivery-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.delivery-item strong { display: block; }
.delivery-item span.sub { color: var(--muted); font-size: var(--fs-sm); }
.delivery-tag { font-weight: 800; color: var(--orange); white-space: nowrap; flex-shrink: 0; }
.delivery-tag.cyan { color: var(--cyan); }
.divider { height: 1px; background: var(--line); width: 100%; }

/* ---------- Huecos para fotografías propias ---------- */
.photo-slot {
  position: relative;
  display: block;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 14px, transparent 14px 28px),
    #0a1015;
}
.photo-slot.ratio-3-2 { aspect-ratio: 3 / 2; }
.photo-slot .slot-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  color: var(--soft);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.photo-slot .slot-label::before { content: "◀"; color: var(--orange); font-size: 1.2rem; }
.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.photo-slot.is-loaded { border-style: solid; border-color: var(--line); }
.photo-slot.is-loaded img { opacity: 1; }
.photo-slot.is-loaded .slot-label { display: none; }
.photo-caption { color: var(--muted); font-size: var(--fs-xs); margin: 10px 0 0; }

/* ---------- Cómo funciona (sección «álbum») ---------- */
.paper { background: var(--paper); color: var(--ink); }
.paper .eyebrow { color: var(--ink-cyan); }
.paper .section-head p { color: var(--ink-soft); }
.paper .process { border-top-color: var(--ink-line); }
.paper .step { border-color: var(--ink-line); }
.paper .step .num { color: var(--ink-orange); }
.paper .step p { color: var(--ink-soft); }
.paper .notice { background: #e8e3d3; border-color: var(--ink-line); }
.paper .notice p { color: var(--ink-soft); }
.paper .notice p strong { color: var(--ink); }
.paper .notice .eyebrow { color: var(--ink-cyan); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 28px 22px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.num { color: var(--orange); font-size: var(--fs-xs); letter-spacing: 3px; font-weight: 800; }
.step h3 { font-size: 1.15rem; font-weight: 800; margin: 11px 0 7px; }
.step p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* ---------- Filosofía ---------- */
.philosophy { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.quote { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -2px; font-weight: 800; font-style: italic; }
.philosophy-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -1.5px; font-weight: 800; margin: 10px 0 20px; }
.philosophy-copy p { color: var(--muted); font-size: var(--fs-md); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.principle { border-left: 2px solid var(--cyan); padding-left: 14px; font-weight: 700; }

/* ---------- Quién está detrás ---------- */
.who-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.who-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -1.5px; font-weight: 800; margin: 10px 0 20px; }
.who-copy p { color: #c5cdd1; font-size: var(--fs-md); }
.who-photos { display: grid; gap: 18px; }

/* ---------- Bloques partidos / Guía en portada ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.05; margin: 10px 0 14px; letter-spacing: -0.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 920px; margin: 0; }
.faq-list details { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 18px 0; }
.faq-list details:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.faq-list summary { cursor: pointer; font-weight: 700; list-style: none; padding-right: 28px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; opacity: 0.75; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 780px; margin: 12px 0 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, #121d25, #0b1116); border: 1px solid #344650; border-radius: 19px; padding: 56px 40px; text-align: center; }
.cta h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -2px; font-weight: 800; margin: 10px auto 18px; max-width: 800px; }
.cta p { max-width: 650px; margin: 0 auto; color: var(--muted); }
.cta .contact-line { justify-content: center; }

/* ---------- Pie ---------- */
footer.site-footer { border-top: 1px solid var(--line); padding: 44px 0 40px; color: var(--soft); font-size: var(--fs-sm); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 34px; }
.footer-col strong { color: var(--text); }
.footer-col p { margin: 10px 0 12px; color: #98a8b3; line-height: 1.5; }
.footer-col h2 { color: var(--text); margin: 0 0 16px; font-size: var(--fs-sm); letter-spacing: 1px; text-transform: uppercase; font-weight: 800; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--cyan); }
.footer-col .ico-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-col .ico-link svg { flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: var(--fs-xs); color: #8fa0ac; }
.footer-bottom a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.float-wa {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 99;
  display: flex; align-items: center; gap: 8px;
  background: var(--whatsapp);
  color: #0b1c11;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: var(--fs-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.float-wa:hover { transform: scale(1.05); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); }

/* ---------- Guía: portada ---------- */
.article-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.article-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1; letter-spacing: -2px; font-weight: 800; max-width: 900px; margin: 14px 0; }
.article-hero .intro { font-size: var(--fs-lg); color: #c7d0d5; max-width: 760px; margin: 0; }
.article-hero.article-narrow, .article-hero .article-narrow { max-width: var(--narrow); }
.back { display: inline-block; color: var(--cyan); font-size: var(--fs-sm); font-weight: 700; margin-bottom: 18px; }
.back:hover { color: var(--text); }
.byline { margin: 18px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.byline strong { color: var(--text); }
.byline time { color: var(--muted); }

.guide-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.topic-card h3 { margin: 8px 0 10px; font-size: 1.25rem; font-weight: 800; }
.topic-card p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; margin: 0 0 16px; }
.topic-card a { color: var(--cyan); font-weight: 700; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.check-item { padding: 22px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; }
.check-item h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.check-item p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

.format-visual-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0 0; }
.format-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.format-card .photo-slot { border-radius: 0; border-width: 0 0 1px; border-bottom-style: dashed; }
.format-card .photo-slot.is-loaded { border-bottom-style: solid; }
.format-info { padding: 18px 20px 20px; flex-grow: 1; }
.format-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.format-title { font-size: 1.1rem; font-weight: 800; }
.format-badge { font-size: var(--fs-xs); font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.4px; flex-shrink: 0; }
.badge-available { background: rgba(37, 191, 233, 0.15); color: var(--cyan); border: 1px solid rgba(37, 191, 233, 0.3); }
.badge-soon-tag { background: rgba(255, 174, 25, 0.1); color: var(--orange); border: 1px solid rgba(255, 174, 25, 0.35); }
.format-dim { font-size: var(--fs-xs); color: var(--cyan); margin-bottom: 10px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.format-desc { font-size: var(--fs-sm); color: var(--muted); margin: 0; line-height: 1.5; }
.format-desc a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Artículos ---------- */
.article-body { font-size: var(--fs-md); line-height: 1.75; color: #c9d2d8; padding: 56px 0 64px; }
.article-body h2 { color: var(--text); margin: 46px 0 16px; font-size: 1.6rem; font-weight: 800; line-height: 1.25; }
.article-body h3 { color: var(--orange); margin: 28px 0 12px; font-size: 1.2rem; font-weight: 800; }
.article-body p { margin-bottom: 20px; }
.article-body ul { padding-left: 22px; margin: 0 0 20px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body a:not(.btn) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.callout-box { background: var(--panel); border-left: 4px solid var(--orange); padding: 20px 24px; border-radius: 0 12px 12px 0; margin: 30px 0; }
.callout-box.cyan { border-left-color: var(--cyan); }
.callout-box p { margin: 0; font-size: var(--fs-base); }
.callout-box p + p { margin-top: 12px; }

.table-scroll { overflow-x: auto; margin: 28px 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 520px; }
.data-table th, .data-table td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: var(--panel); color: var(--text); }
.data-table td strong { color: var(--text); }

.layer-diagram { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 28px 0; }
.layer-item { border: 1px dashed var(--line); background: rgba(37, 191, 233, 0.05); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; }
.layer-item:last-child { margin-bottom: 0; }
.layer-item strong { display: block; color: var(--cyan); font-size: var(--fs-sm); margin-bottom: 4px; }
.layer-item span { font-size: var(--fs-sm); color: var(--muted); }

.risk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 28px 0; }
.risk-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.risk-card h3 { color: var(--cyan); font-size: 1.05rem; margin: 0 0 8px; }
.risk-card p { font-size: var(--fs-sm); margin: 0; line-height: 1.55; color: var(--muted); }

.chain-steps { display: flex; flex-direction: column; gap: 14px; margin: 28px 0; }
.chain-step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; display: flex; gap: 16px; align-items: flex-start; }
.chain-num { background: rgba(37, 191, 233, 0.15); color: var(--cyan); font-weight: 800; font-size: var(--fs-sm); min-width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(37, 191, 233, 0.3); flex-shrink: 0; }
.chain-info h3 { margin: 0 0 6px; color: var(--text); font-size: 1.05rem; }
.chain-info p { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }

.guide-article-img { margin: 30px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.guide-article-img img { width: 100%; height: auto; display: block; max-height: 480px; object-fit: cover; }
.guide-article-img figcaption { padding: 12px 18px; font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid var(--line); line-height: 1.5; }

.article-cta { margin: 42px 0 0; padding: 26px; border: 1px solid #344650; border-radius: 16px; background: linear-gradient(120deg, #121d25, #0b1116); }
.article-cta h2 { margin: 0 0 10px; font-size: 1.4rem; }
.article-cta p { margin-bottom: 16px; color: var(--muted); }

.article-footer-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-footer-nav a { color: var(--cyan); font-weight: 700; font-size: var(--fs-sm); }

.sources { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: var(--fs-sm); color: var(--muted); }
.sources h2 { font-size: 1.1rem; margin: 0 0 12px; }
.sources ul { padding-left: 20px; margin: 0; }
.sources li { margin-bottom: 8px; font-size: var(--fs-sm); }
.sources a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tarifas ---------- */
.tarifas-hero { padding: 72px 0 40px; }
.tarifas-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1; letter-spacing: -2px; font-weight: 800; margin: 14px 0 18px; max-width: 880px; }
.include-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.include-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.include-item h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.include-item p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.chain-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.chain-table th, .chain-table td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.chain-table th { background: var(--panel); }
.chain-table td:first-child { white-space: nowrap; font-weight: 800; color: var(--cyan); }
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: var(--fs-sm); }
.compare-table th, .compare-table td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--panel); }
.compare-table thead th.us { color: var(--orange); }
.compare-table td.us { background: rgba(255, 174, 25, 0.05); }
.compare-table tbody th { font-weight: 700; background: var(--bg2); }

/* ---------- Legal ---------- */
.legal-page { padding: 72px 0 70px; }
.legal-page h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05; letter-spacing: -1.5px; font-weight: 800; margin: 12px 0 14px; }
.legal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 32px 38px; margin-bottom: 26px; line-height: 1.7; font-size: var(--fs-base); }
.legal-box h2 { color: var(--text); margin: 0 0 16px; font-size: 1.4rem; font-weight: 800; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.legal-box h3 { color: var(--cyan); margin: 22px 0 10px; font-size: 1.05rem; font-weight: 800; }
.legal-box p { color: var(--muted); margin: 0 0 14px; }
.legal-box ul { color: var(--muted); margin: 0 0 16px; padding-left: 22px; }
.legal-box li { margin-bottom: 8px; }
.legal-box strong { color: var(--text); }
.legal-box a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .service-grid, .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .format-visual-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 850px) {
  section { padding: 60px 0; }

  /* Navegación móvil */
  nav.main-nav { position: relative; min-height: 64px; }
  .wordmark { width: 135px; }
  .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 44px; height: 44px;
    padding: 9px;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 101;
  }
  .menu-btn span { display: block; height: 3px; width: 26px; margin: 0 auto; background: var(--text); border-radius: 3px; transition: transform 0.25s ease, opacity 0.25s ease; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .links {
    display: none;
    position: absolute;
    top: 64px; left: 0; width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
    z-index: 100;
    font-size: var(--fs-base);
  }
  .links.is-open { display: flex; }
  .links a { width: 100%; padding: 6px 0; }
  .links .nav-cta { width: 100%; }

  /* Hero compacto: el CTA queda visible sin hacer scroll */
  .hero { padding: 32px 0 44px; }
  .hero::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.7rem); letter-spacing: -1.5px; margin: 10px 0 14px; }
  .hero-visual { display: none; }
  .lead { font-size: var(--fs-base); }
  .actions { margin-top: 20px; }
  .actions .btn { flex: 1 1 100%; }
  .contact-line { margin-top: 14px; }

  .philosophy, .who-grid, .split, .calc-grid, .price-extras, .guide-topics, .check-grid, .include-grid { grid-template-columns: 1fr; }
  .philosophy { gap: 32px; }
  .who-grid { gap: 32px; }
  .process { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .paper .step { border-bottom-color: var(--ink-line); }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .delivery-card { grid-template-columns: 1fr; gap: 24px; }
  .delivery-options { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .cta { padding: 40px 20px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .calc { padding: 22px 18px; }
  .legal-box { padding: 24px 20px; }
  .article-hero { padding: 48px 0 36px; }
}

@media (max-width: 700px) {
  /* Mismo alto y padding en ambos botones */
  .btn.primary, .btn.ghost { padding: 12px 16px; min-height: 48px; }
  .btn.small { min-height: 44px; }
}

@media (max-width: 560px) {
  .service-grid, .tier-grid, .format-visual-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .float-wa span { display: none; }
  .float-wa { padding: 14px; }
}

/* ---------- Preferencias del usuario ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.legal-intro { max-width: 750px; color: var(--muted); }

.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.05; letter-spacing: -1px; font-weight: 800; margin: 12px 0 18px; }
