/* =============================================================
   DOTOKU HOMES — José Antonio Ramos
   Archetype: Editorial Light · navy + verde · fondo vivo reactivo
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* Papel y tinta — fondo blanco, texto azul */
  --bg:          #FFFFFF;
  --bg-2:        #F3F7FC;
  --paper:       #FFFFFF;
  --ink:         #0E2A52;
  --ink-2:       #12305C;
  --muted:       #3F5C87;
  --muted-2:     #7089AE;
  --line:        rgba(18, 48, 92, 0.12);
  --line-strong: rgba(18, 48, 92, 0.20);

  /* Acentos */
  --accent:      #1B7A57;   /* verde Dotoku */
  --accent-deep: #12583E;
  --accent-soft: #E5F1EB;
  --accent-glow: rgba(27, 122, 87, 0.30);
  --blue:        #1F6FE5;   /* azul del logotipo */
  --blue-soft:   #E6EFFC;

  /* Oscuro (secciones invertidas) */
  --dark:        #0B1B31;
  --dark-2:      #10233F;
  --dark-line:   rgba(255, 255, 255, 0.12);
  --dark-text:   #E8EDF5;
  --dark-muted:  #9FB0C7;

  /* Tipografía */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --jp:    "Noto Serif JP", var(--serif);

  /* Métrica */
  --wrap: 1220px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --sect-y: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 18px;
  --radius-sm: 11px;

  /* Easings */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Sombras */
  --sh-sm: 0 1px 2px rgba(18,48,92,.05), 0 4px 14px rgba(18,48,92,.06);
  --sh-md: 0 2px 6px rgba(18,48,92,.06), 0 14px 40px rgba(18,48,92,.10);
  --sh-lg: 0 4px 12px rgba(18,48,92,.07), 0 30px 70px rgba(18,48,92,.14);

  /* Puntero (lo actualiza main.js) */
  --mx: 50%;
  --my: 35%;
  --mxf: 0.5;
  --myf: 0.35;
}

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.022em; font-weight: 400; }
ol, ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: fixed; top: -120px; left: 1rem; z-index: 9999;
  padding: .65rem 1.1rem; background: var(--ink); color: #fff;
  border-radius: 9px; font-weight: 600; font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* =============================================================
   3. FONDO VIVO REACTIVO AL RATÓN
   ============================================================= */
.livebg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, #FFFFFF 0%, #FFFFFF 48%, var(--bg-2) 100%);
  overflow: hidden;
}
.livebg-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  transition: transform .9s var(--ease-soft);
}
.livebg-blob--a {
  width: 46vmax; height: 46vmax;
  background: radial-gradient(circle, rgba(31,111,229,.20), rgba(31,111,229,0) 68%);
  left: calc(var(--mx) - 23vmax);
  top:  calc(var(--my) - 23vmax);
  transition: none;
}
.livebg-blob--b {
  width: 40vmax; height: 40vmax;
  background: radial-gradient(circle, rgba(27,122,87,.20), rgba(27,122,87,0) 68%);
  right: calc((100% - var(--mx)) - 20vmax);
  bottom: calc((100% - var(--my)) - 20vmax);
  transition: none;
}
.livebg-blob--c {
  width: 52vmax; height: 52vmax;
  left: 50%; top: 62%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(18,48,92,.10), rgba(18,48,92,0) 70%);
  animation: drift 22s var(--ease-soft) infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(-56%, -52%) scale(1); }
  100% { transform: translate(-44%, -46%) scale(1.14); }
}
.livebg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(18,48,92,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18,48,92,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(90% 70% at var(--mx) var(--my), #000 0%, rgba(0,0,0,.35) 45%, transparent 78%);
  mask-image: radial-gradient(90% 70% at var(--mx) var(--my), #000 0%, rgba(0,0,0,.35) 45%, transparent 78%);
}
/* Columnas de kanji que se deslizan con el scroll */
.livebg-kanji {
  position: absolute; inset: -12vh 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.kcol {
  position: absolute; top: -30vh;
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--jp);
  font-size: clamp(3.6rem, 7.5vw, 7rem);
  line-height: 1.18; letter-spacing: .16em;
  color: rgba(18, 48, 92, 0.055);
  white-space: nowrap; user-select: none;
  will-change: transform;
}
.kcol--1 { left: 3%;  transform: translateY(calc(var(--sy, 0) * -0.22px)); }
.kcol--2 { left: 24%; transform: translateY(calc(var(--sy, 0) * -0.09px)); color: rgba(27,122,87,.055); }
.kcol--3 { left: 47%; transform: translateY(calc(var(--sy, 0) * -0.30px)); }
.kcol--4 { left: 70%; transform: translateY(calc(var(--sy, 0) * -0.14px)); color: rgba(31,111,229,.05); }
.kcol--5 { left: 89%; transform: translateY(calc(var(--sy, 0) * -0.25px)); }
@media (max-width: 719px) {
  .kcol--2, .kcol--3, .kcol--4 { display: none; }
  .kcol { font-size: clamp(2.6rem, 13vw, 4.2rem); color: rgba(18, 48, 92, 0.038); }
  .kcol--1 { left: -3%; }
  .kcol--5 { left: 88%; }
}

.livebg-grain {
  position: absolute; inset: 0; opacity: .16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* =============================================================
   4. SPLASH
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: var(--dark);
  animation: splashSafety .01s 4.5s forwards;
  transition: opacity .7s var(--ease-out), clip-path .9s var(--ease-out);
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-mark { text-align: center; color: #fff; }
.splash-kanji {
  display: block; font-family: var(--jp); font-size: clamp(3rem, 11vw, 5.6rem);
  letter-spacing: .16em; color: var(--accent);
  animation: splashIn 1s var(--ease-out) both;
}
.splash-word {
  display: block; margin-top: .9rem;
  font-size: .78rem; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(255,255,255,.62);
  animation: splashIn 1s .18s var(--ease-out) both;
}
@keyframes splashIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =============================================================
   5. NAV
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  background: rgba(255,255,255,.80);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
@supports (backdrop-filter: blur(18px)) {
  .nav { background: rgba(255,255,255,.72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(18,48,92,.07); }
.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transition: width .1s linear;
}
.nav-inner {
  width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto;
  display: flex; align-items: center; gap: 1.4rem;
  height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.brand-mark { flex: 0 0 auto; border-radius: 9px; }
.nav-brand:hover .brand-mark { transform: rotate(-4deg) scale(1.05); }
.brand-mark { transition: transform .4s var(--ease-bounce); }
.nav-brand-text { font-size: 1.16rem; letter-spacing: -.02em; color: var(--ink-2); font-family: var(--serif); }
.nav-brand-text strong { font-weight: 600; }
.nav-brand-text em { font-style: italic; color: var(--accent); font-weight: 300; }
.nav-links { display: none; gap: 1.5rem; margin-left: auto; }
.nav-links a {
  position: relative; font-size: .88rem; color: var(--muted); font-weight: 500;
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--ink); }
.nav .nav-cta { display: none; }
.nav-burger {
  margin-left: auto; width: 42px; height: 42px; display: grid; place-content: center; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: 11px;
}
.nav-burger span { display: block; width: 17px; height: 1.6px; background: var(--ink); transition: transform .35s var(--ease-out), opacity .25s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

body.menu-open { overflow: hidden; }
.nav.is-open .nav-links {
  display: flex; flex-direction: column; gap: 0;
  position: fixed; inset: 72px 0 0 0; margin: 0;
  background: var(--bg); padding: 1.4rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
}
.nav.is-open .nav-links a { font-family: var(--serif); font-size: 1.55rem; color: var(--ink); padding: .72rem 0; border-bottom: 1px solid var(--line); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav .nav-cta { display: inline-flex; margin-left: .4rem; }
  .nav-burger { display: none; }
  .nav-inner { height: 78px; }
}

/* =============================================================
   6. COMPONENTES — botones
   ============================================================= */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem; border-radius: 100px;
  font-size: .9rem; font-weight: 600; letter-spacing: -.005em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--accent-deep); box-shadow: 0 12px 30px var(--accent-glow); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }
.btn--quiet { --btn-bg: transparent; --btn-fg: var(--muted); font-weight: 500; padding: .72rem 1rem; }
.btn--quiet:hover { --btn-fg: var(--ink); box-shadow: none; transform: none; text-decoration: underline; }
.btn--lg { padding: .92rem 1.7rem; font-size: .96rem; }
.btn--block { width: 100%; }
.linklike { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   7. TIPOGRAFÍA DE SECCIÓN
   ============================================================= */
.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .55; }
.eyebrow--center { justify-content: center; }
.h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; letter-spacing: -.03em; }
.h3 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400; }
.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-sub { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.08rem); margin-top: 1rem; max-width: 60ch; }
.section-head .section-sub { margin-inline: 0; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.6; color: var(--ink); }

.section { padding-block: var(--sect-y); position: relative; }
.section--paper { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark .h2, .section--dark .h3 { color: #fff; }
.section--dark .section-sub { color: var(--dark-muted); }
.section--dark .eyebrow { color: #6FD3A6; }
.section--dark .eyebrow::before { background: #6FD3A6; }

.grid-2 { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 960px) { .grid-2 { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.col-sticky { align-self: start; }
@media (min-width: 960px) { .col-sticky { position: sticky; top: 118px; } }

.prose p { margin-bottom: 1.15rem; color: var(--muted); font-size: 1.03rem; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose .lead { color: var(--ink); }

.pullquote {
  margin: 2.2rem 0; padding: 1.6rem 1.7rem; background: var(--accent-soft);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  position: relative;
}
.pullquote p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--accent-deep); margin: 0; }
.pullquote-kanji {
  font-family: var(--jp); font-size: 2.4rem; color: var(--accent); opacity: .32;
  position: absolute; right: 1.1rem; top: .7rem; line-height: 1;
}

/* =============================================================
   8. HERO
   ============================================================= */
.hero { padding-top: clamp(7.5rem, 15vw, 10.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }

.kicker {
  display: inline-flex; align-items: center; gap: .7rem; flex-wrap: wrap; justify-content: center;
  padding: .42rem .95rem .42rem .55rem; border-radius: 100px;
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
  font-size: .78rem; color: var(--muted); box-shadow: var(--sh-sm);
}
.kicker-kanji {
  font-family: var(--jp); font-size: .95rem; color: var(--accent);
  background: var(--accent-soft); border-radius: 100px; padding: .1rem .5rem;
}
.kicker em { color: var(--ink); font-style: italic; }

.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.1rem, 12vw, 8.2rem);
  line-height: .92; letter-spacing: -.05em;
  margin-top: 1.5rem; color: var(--ink-2);
  max-width: 12ch;
}
.hero-title-em { font-weight: 300; font-style: italic; color: var(--accent); }

.hero-mark {
  margin-top: .95rem; font-family: var(--jp);
  font-size: clamp(.85rem, 1.8vw, 1.05rem); letter-spacing: .5em;
  color: var(--muted-2); text-indent: .5em;
}

.hero-person {
  margin-top: 1.35rem; font-size: clamp(1rem, 1.9vw, 1.18rem);
  color: var(--muted); letter-spacing: -.005em;
}
.hero-person strong {
  color: var(--ink); font-weight: 600;
  border-bottom: 1.5px solid var(--accent); padding-bottom: 1px;
}

.hero-roles {
  margin-top: .9rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .8rem;
  font-size: clamp(.9rem, 1.6vw, 1.05rem); color: var(--muted); letter-spacing: -.005em;
}
.hero-roles strong { color: var(--accent-deep); font-weight: 600; }
.hero-roles .dot { color: var(--accent); }

.hero-claim {
  margin-top: 1.7rem; min-height: 2.4em;
  font-family: var(--serif); font-size: clamp(1.25rem, 3.2vw, 2.05rem);
  font-weight: 400; color: var(--ink-2); letter-spacing: -.025em;
  max-width: 20ch;
}
.hero-claim-rotator { position: relative; }
.hero-claim-rotator .rot-word { display: inline-block; white-space: nowrap; }
.hero-claim-rotator .rot-char { display: inline-block; }

.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.hero-figure {
  margin-top: clamp(2.6rem, 6vw, 4.2rem); width: 100%;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(255,255,255,.7);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
}
.hero-figure img { width: 100%; }

.stats {
  margin-top: clamp(2.6rem, 6vw, 4rem); width: 100%;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgba(243,247,252,.85); padding: 1.5rem 1.1rem; text-align: center; }
.stat-num {
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.1rem, 5.5vw, 3.1rem); line-height: 1; color: var(--accent-deep);
  letter-spacing: -.03em;
}
.stat-num--text { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -.02em; }
.stat-label { display: block; margin-top: .6rem; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.stat-label small { color: var(--muted-2); font-size: .76rem; }

.hero-scroll {
  margin-top: 2.6rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted-2);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
}
.hero-scroll span { width: 1px; height: 42px; background: linear-gradient(var(--accent), transparent); animation: scrollPulse 2.4s var(--ease-soft) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* =============================================================
   9. MERCADO
   ============================================================= */
.market-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .market-grid { grid-template-columns: repeat(4, 1fr); } }
.market-card {
  background: rgba(255,255,255,.045); border: 1px solid var(--dark-line);
  border-radius: var(--radius); padding: 1.5rem 1.35rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: transform .45s var(--ease-out), background .35s, border-color .35s;
  will-change: transform;
}
.market-card:hover { background: rgba(255,255,255,.075); border-color: rgba(111,211,166,.4); }
.market-card--wide { grid-column: 1 / -1; }
.market-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--dark-muted); }
.market-value {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1; color: #fff; letter-spacing: -.035em;
}
.market-value span { font-size: .42em; color: #6FD3A6; margin-left: .12em; letter-spacing: 0; }
.market-note { font-size: .87rem; color: var(--dark-muted); line-height: 1.55; }
.market-note em { color: #C9D6E8; }
.market-src { margin-top: auto; padding-top: .5rem; font-size: .8rem; color: #6FD3A6; transition: gap .3s; }
.market-src:hover { text-decoration: underline; }
.forecast { display: grid; gap: .6rem; margin-block: .4rem .6rem; }
@media (min-width: 620px) { .forecast { grid-template-columns: repeat(3, 1fr); } }
.forecast div { background: rgba(255,255,255,.05); border-radius: var(--radius-sm); padding: .85rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.forecast span { font-size: .78rem; color: var(--dark-muted); }
.forecast b { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: #6FD3A6; }
.market-updated { margin-top: 1.6rem; font-size: .82rem; color: var(--dark-muted); display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.pill { background: rgba(111,211,166,.14); color: #6FD3A6; border-radius: 100px; padding: .28rem .8rem; font-family: var(--mono); font-size: .72rem; }

/* =============================================================
   10. CONSEJOS
   ============================================================= */
.tips { display: grid; gap: 1rem; }
@media (min-width: 720px)  { .tips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tips { grid-template-columns: repeat(4, 1fr); } }
.tip {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; position: relative; overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s;
  will-change: transform;
}
.tip::before {
  content: ""; position: absolute; inset: auto -30% -60% -30%; height: 130px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.tip:hover { background: var(--paper); box-shadow: var(--sh-md); border-color: rgba(27,122,87,.3); }
.tip:hover::before { opacity: .5; }
.tip-num { font-family: var(--mono); font-size: .74rem; color: var(--accent); letter-spacing: .12em; }
.tip h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin-top: .7rem; margin-bottom: .55rem; position: relative; }
.tip h3 em { font-style: italic; color: var(--accent-deep); }
.tip p { font-size: .9rem; color: var(--muted); line-height: 1.6; position: relative; }

/* =============================================================
   10 bis. ESCENAS (obra y oficina)
   ============================================================= */
.scenes { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .scenes { grid-template-columns: repeat(2, 1fr); } }
.scene {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
  will-change: transform;
}
.scene:hover { box-shadow: var(--sh-lg); border-color: rgba(27,122,87,.3); }
.scene img { width: 100%; height: auto; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.scene figcaption { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .5rem; }
.scene-tag {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.scene figcaption h3 { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 500; }
.scene figcaption p { font-size: .92rem; color: var(--muted); line-height: 1.62; }
.scene-note { margin-top: 1.4rem; font-size: .82rem; color: var(--muted-2); text-align: center; }

/* =============================================================
   11. MANIFIESTO
   ============================================================= */
.section--manifesto { background: linear-gradient(180deg, #FFFFFF 0%, #EAF3FB 52%, #FFFFFF 100%); }
.manifesto { text-align: center; }
.manifesto .eyebrow { justify-content: center; }
.manifesto-title {
  font-family: var(--serif); font-weight: 300; letter-spacing: -.04em;
  font-size: clamp(2.1rem, 6vw, 4.2rem); line-height: 1.02; color: var(--accent-deep);
  max-width: 20ch; margin-inline: auto;
}
.manifesto-grid {
  margin-top: clamp(2.4rem, 5vw, 3.6rem); display: grid; gap: 1.1rem; text-align: left;
}
@media (min-width: 760px)  { .manifesto-grid { grid-template-columns: repeat(2, 1fr); gap: 1.3rem 2rem; } }
@media (min-width: 1100px) { .manifesto-grid { grid-template-columns: repeat(3, 1fr); } }
.manifesto-grid p {
  font-size: .96rem; color: var(--ink); line-height: 1.65;
  padding-left: 1.1rem; border-left: 2px solid rgba(27,122,87,.35);
}
.manifesto-grid strong { font-family: var(--mono); font-size: .82rem; color: var(--accent); margin-right: .3rem; }
.manifesto-sign { margin-top: 2.6rem; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1rem; }
.manifesto-sign span { font-family: var(--jp); font-style: normal; color: var(--accent); }

/* =============================================================
   12. PRENSA
   ============================================================= */
.section--press { padding-block: clamp(2.6rem, 6vw, 4rem); background: var(--bg-2); border-block: 1px solid var(--line); }
.press-marquee { margin-top: 1.6rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.press-track { display: flex; gap: 3rem; width: max-content; animation: marquee 34s linear infinite; }
.press-marquee:hover .press-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.press-item {
  font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--muted-2);
  white-space: nowrap; opacity: .55;
}
.press-item.is-empty { border: 1px dashed var(--line-strong); border-radius: 100px; padding: .35rem 1.3rem; font-size: .9rem; font-family: var(--sans); }
.press-note { margin-top: 1.6rem; font-size: .85rem; color: var(--muted); text-align: center; }
.press-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   13. ZONA DE ANUNCIOS
   ============================================================= */
.adzone { margin-block: clamp(2rem, 5vw, 3.2rem); text-align: center; }
.adzone-tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .55rem; }
.ad-slot { display: flex; justify-content: center; }
.ad-placeholder {
  width: 100%; max-width: 970px; min-height: 110px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: repeating-linear-gradient(45deg, rgba(18,48,92,.03) 0 12px, transparent 12px 24px);
  color: var(--muted-2);
}
.ad-slot--rect .ad-placeholder { max-width: 336px; min-height: 260px; }
.ad-placeholder strong { font-size: .85rem; color: var(--muted); }
.ad-placeholder span { font-size: .76rem; }

/* =============================================================
   14. HERRAMIENTAS
   ============================================================= */
.tool {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 1.4rem;
  box-shadow: var(--sh-sm);
}
.tool-head { margin-bottom: 1.4rem; }
.tool-head h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 400; }
.tool-head p { color: var(--muted); font-size: .92rem; margin-top: .35rem; }

.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }
.tab {
  padding: .42rem .85rem; border-radius: 100px; font-size: .81rem; font-weight: 500;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
  transition: all .28s var(--ease-out);
}
.tab:hover { border-color: var(--accent); color: var(--accent-deep); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px var(--accent-glow); }

.tool-form { display: grid; gap: 1rem; }
@media (min-width: 620px)  { .tool-form { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tool-form { grid-template-columns: repeat(4, 1fr); } .tool-form--3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.field .opt { font-weight: 400; color: var(--muted-2); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .unit {
  position: absolute; right: .85rem; font-size: .82rem; color: var(--muted-2); pointer-events: none;
  font-family: var(--mono);
}
.field input[type="number"], .field input[type="text"], .field input[type="email"],
.field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: .72rem .9rem; padding-right: 3.2rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); font-size: .95rem; color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
  -moz-appearance: textfield;
}
.field textarea { padding-right: .9rem; resize: vertical; min-height: 120px; }
.field select { padding-right: 2.2rem; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235C6779' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field--check { grid-column: 1 / -1; }
.field--check label { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; font-size: .87rem; color: var(--muted); line-height: 1.5; }
.field--check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .1rem; accent-color: var(--accent); }

.tool-out { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.out-hero { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1.3rem; }
.out-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.out-value {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 6.5vw, 3.6rem);
  line-height: 1; color: var(--accent-deep); letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.out-sub { font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.out-grid { display: grid; gap: .7rem; }
@media (min-width: 620px)  { .out-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .out-grid { grid-template-columns: repeat(4, 1fr); } .out-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.out-grid > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; display: flex; flex-direction: column; gap: .18rem; }
.out-grid > div > span { font-size: .76rem; color: var(--muted); }
.out-grid > div > b { font-size: 1.12rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.out-note { margin-top: 1rem; font-size: .8rem; color: var(--muted-2); line-height: 1.55; }

.breakdown { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1rem; }
.breakdown li { background: var(--paper); padding: .68rem 1rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.breakdown li > span { color: var(--muted); }
.breakdown li > b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown li.is-major { background: var(--accent-soft); }
.breakdown li.is-major > span, .breakdown li.is-major > b { color: var(--accent-deep); }

/* Recursos */
.resources { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 860px) { .resources { grid-template-columns: 1.4fr 1fr; } }
.resource {
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.resource:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: rgba(27,122,87,.35); }
.resource--main { background: linear-gradient(135deg, var(--accent-deep), #1B7A57 65%, #23906A); color: #fff; border-color: transparent; }
.resource-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.resource--main .resource-tag { color: rgba(255,255,255,.72); }
.resource h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.resource p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.resource--main p { color: rgba(255,255,255,.82); }
.resource-cta { margin-top: auto; padding-top: .6rem; font-size: .88rem; font-weight: 600; color: var(--accent); }
.resource--main .resource-cta { color: #fff; }

/* Normativa */
.legal { margin-top: clamp(2.6rem, 6vw, 4rem); }
.legal-grid { display: grid; gap: .7rem; margin-top: 1.6rem; }
@media (min-width: 620px)  { .legal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .legal-grid { grid-template-columns: repeat(3, 1fr); } }
.legal-item {
  display: flex; flex-direction: column; gap: .15rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .95rem 1.1rem; transition: all .3s var(--ease-out);
}
.legal-item:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateX(3px); }
.legal-item b { font-size: .95rem; color: var(--ink); }
.legal-item span { font-size: .82rem; color: var(--muted); }

/* =============================================================
   15. ARTÍCULOS
   ============================================================= */
.articles { display: grid; gap: 1rem; }
@media (min-width: 760px)  { .articles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .articles { grid-template-columns: repeat(3, 1fr); } }
.article {
  display: flex; flex-direction: column; gap: .6rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; position: relative; overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.article:hover { background: var(--paper); transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(27,122,87,.3); }
.article-meta { display: flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.article-cat { color: var(--accent); }
.article-date { color: var(--muted-2); }
.article h3 { font-family: var(--serif); font-size: 1.24rem; font-weight: 500; line-height: 1.22; }
.article p { font-size: .89rem; color: var(--muted); line-height: 1.6; }
.article-cta { margin-top: auto; padding-top: .5rem; font-size: .85rem; font-weight: 600; color: var(--accent); }
.article-draft { position: absolute; top: 1rem; right: 1rem; font-size: .64rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--bg-2); color: var(--muted-2); border-radius: 100px; padding: .2rem .6rem; }

/* =============================================================
   16. FAQ
   ============================================================= */
.faq { display: grid; gap: .55rem; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: rgba(27,122,87,.35); background: var(--paper); box-shadow: var(--sh-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.2rem;
  font-size: .98rem; font-weight: 500; color: var(--ink); position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: 11px; height: 11px;
  border-right: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-body { padding: 0 1.2rem 1.2rem; }
.faq-body p { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* =============================================================
   17. FORMULARIO DE ASESORAMIENTO
   ============================================================= */
.grid-form { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 960px) { .grid-form { grid-template-columns: 1fr 1fr; align-items: start; } }
.explainer {
  margin-top: 1.8rem; background: rgba(255,255,255,.05);
  border: 1px solid var(--dark-line); border-left: 3px solid #6FD3A6;
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem 1.5rem;
}
.explainer h3 { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin-bottom: .9rem; font-weight: 500; }
.explainer ol { counter-reset: step; display: grid; gap: .7rem; }
.explainer li { counter-increment: step; position: relative; padding-left: 2rem; font-size: .9rem; color: var(--dark-muted); line-height: 1.55; }
.explainer li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(111,211,166,.16); color: #6FD3A6; font-family: var(--mono); font-size: .7rem;
}
.explainer li b { color: #fff; font-weight: 600; }
.explainer-note { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--dark-line); font-size: .82rem; color: var(--dark-muted); line-height: 1.55; }
.explainer-note strong { color: #C9D6E8; }

.form {
  background: var(--paper); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem);
  display: grid; gap: 1rem; box-shadow: var(--sh-lg);
}
.form .field input, .form .field select, .form .field textarea { padding-right: .9rem; }
.form-status { font-size: .87rem; min-height: 1.2em; }
.form-status.is-ok { color: var(--accent-deep); font-weight: 600; }
.form-status.is-err { color: #B3261E; font-weight: 600; }
.form-legal { font-size: .78rem; color: var(--muted-2); text-align: center; }

/* =============================================================
   18. CONTACTO
   ============================================================= */
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; position: relative; overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
  will-change: transform;
}
.contact-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue)); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.contact-card:hover { background: var(--paper); box-shadow: var(--sh-md); border-color: rgba(27,122,87,.3); }
.contact-card:hover::after { transform: scaleX(1); }
.contact-num { font-family: var(--mono); font-size: .72rem; color: var(--accent); letter-spacing: .14em; }
.contact-card h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.contact-card p { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.contact-mail { margin-top: auto; padding-top: .7rem; font-weight: 600; font-size: .93rem; color: var(--ink); word-break: break-all; }
.contact-tag { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); }

/* =============================================================
   19. CONTADOR DE VISITAS (lateral)
   ============================================================= */
.visits {
  position: fixed; z-index: 700; right: 0; top: 50%;
  transform: translate(0, -50%);
  display: flex; align-items: center; gap: .45rem;
  background: var(--paper); border: 1px solid var(--line); border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: .6rem .85rem; box-shadow: var(--sh-md);
  font-size: .78rem; color: var(--muted);
  animation: visitsIn .6s var(--ease-out) both;
}
@keyframes visitsIn { from { opacity: 0; transform: translate(20px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
.visits-eye { color: var(--accent); display: grid; place-items: center; }
.visits-num { font-family: var(--mono); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .visits {
    top: auto; bottom: 0; right: .75rem; transform: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-right: 1px solid var(--line);
    padding: .4rem .7rem; font-size: .72rem;
    animation: none;
  }
}

/* =============================================================
   20. FOOTER
   ============================================================= */
.footer { background: var(--dark); color: var(--dark-muted); padding-block: clamp(3rem, 7vw, 4.5rem) 2.5rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.6rem; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: .85rem; }
.footer-brand .brand-mark rect { fill: #16406F; }
.footer-name { color: #fff; font-size: 1.45rem; font-family: var(--serif); letter-spacing: -.02em; }
.footer-name strong { font-weight: 600; }
.footer-name em { font-style: italic; color: #6FD3A6; font-weight: 300; }
.footer-claim { font-size: .8rem; color: var(--dark-muted); }
.footer-claim span { font-family: var(--jp); color: #6FD3A6; }
.footer-links, .footer-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.3rem; }
.footer-links a, .footer-legal-links a, .footer-legal-links button {
  font-size: .85rem; color: var(--dark-muted); transition: color .3s;
}
.footer-links a:hover, .footer-legal-links a:hover, .footer-legal-links button:hover { color: #6FD3A6; }
.footer-legal-links { padding-top: 1.2rem; border-top: 1px solid var(--dark-line); width: 100%; }
.footer-legal-links a, .footer-legal-links button { font-weight: 500; color: #C9D6E8; }
.footer-legal { font-size: .82rem; line-height: 1.6; }
.footer-disclaimer {
  font-size: .715rem; line-height: 1.65; color: #7B8CA5; max-width: 84ch;
  border-top: 1px solid var(--dark-line); padding-top: 1.3rem;
}
.footer-top { font-size: .84rem; color: #6FD3A6; }

/* =============================================================
   21. AVISO DE COOKIES
   ============================================================= */
.cookie {
  position: fixed; z-index: 9500; left: 0; right: 0; bottom: 0;
  padding: var(--gutter);
  display: flex; justify-content: center;
  animation: cookieIn .5s var(--ease-out) both;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cookie[hidden] { display: none; }
.cookie-panel {
  width: min(1000px, 100%);
  max-height: min(78vh, 620px); overflow-y: auto;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--sh-lg);
  padding: 1.2rem 1.3rem;
  display: grid; gap: .9rem;
}
@media (min-width: 900px) { .cookie-panel { grid-template-columns: 1fr auto; align-items: center; gap: 1.6rem; padding: 1.3rem 1.6rem; } }
.cookie h2 { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; margin-bottom: .35rem; }
.cookie p { font-size: .82rem; color: var(--muted); line-height: 1.55; }
.cookie p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-content: center; }
.cookie-actions .btn { flex: 1 1 auto; padding-inline: 1rem; }
@media (min-width: 900px) {
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; min-width: 260px; gap: .5rem; }
  .cookie-actions .btn { width: 100%; }
  .cookie-actions .btn--quiet { grid-column: 1 / -1; }
}
.cookie-prefs { margin-top: 1rem; display: grid; gap: .7rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.cookie-prefs[hidden] { display: none; }
.cookie-opt { display: flex; align-items: flex-start; gap: .65rem; font-size: .83rem; color: var(--muted); line-height: 1.5; }
.cookie-opt input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .12rem; accent-color: var(--accent); }
.cookie-opt b { color: var(--ink); }

/* =============================================================
   22. PÁGINAS LEGALES
   ============================================================= */
.page-legal { padding-top: clamp(7.5rem, 14vw, 10rem); padding-bottom: var(--sect-y); }
.doc { max-width: 74ch; margin-inline: auto; }
.doc h1 { font-family: var(--serif); font-size: clamp(2.1rem, 5.5vw, 3.2rem); font-weight: 300; letter-spacing: -.035em; }
.doc h2 { font-family: var(--serif); font-size: clamp(1.3rem, 2.8vw, 1.65rem); font-weight: 500; margin-top: 2.4rem; margin-bottom: .8rem; color: var(--ink-2); }
.doc h3 { font-size: 1rem; font-weight: 600; margin-top: 1.4rem; margin-bottom: .4rem; font-family: var(--sans); }
.doc p, .doc li { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.doc p { margin-bottom: .9rem; }
.doc ul, .doc ol { display: grid; gap: .45rem; margin: .3rem 0 1.1rem 0; padding-left: 1.2rem; }
.doc ul li { list-style: disc; }
.doc ol li { list-style: decimal; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc-updated { font-family: var(--mono); font-size: .75rem; color: var(--muted-2); margin-top: .8rem; }
.doc-back { display: inline-flex; gap: .4rem; margin-bottom: 2rem; font-size: .87rem; color: var(--accent); font-weight: 600; }
.doc-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .86rem; display: block; overflow-x: auto; }
.doc-table th, .doc-table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { font-weight: 600; color: var(--ink); background: #E8F0FA; white-space: nowrap; }
.doc-table td { color: var(--muted); }
.todo {
  background: #FFF7E6; border: 1px solid #F0D9A6; border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; font-size: .85rem; color: #7A5A16; margin-bottom: 1.4rem;
}
.todo strong { color: #5C430F; }

/* =============================================================
   23. EFECTOS — reveals y split text
   ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.split-word { display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(1.2deg); }
.is-visible .split-word, .split-ready .split-word { animation: wordIn .85s var(--ease-out) both; }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.55em) rotate(1.2deg); } to { opacity: 1; transform: none; } }

.rot-char { animation: rotCharIn .5s var(--ease-out) both; }
@keyframes rotCharIn { from { opacity: 0; transform: translateY(.45em); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

html.is-ready .reveal { will-change: opacity, transform; }

/* =============================================================
   24. REDUCED MOTION — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .livebg-blob--c { animation: none; }
  .livebg-grain { display: none; }
  .press-track { animation-duration: 90s; }
  .hero-scroll span { animation: none; }
}

/* =============================================================
   25. PRINT
   ============================================================= */
@media print {
  .nav, .livebg, .splash, .visits, .cookie, .adzone, .hero-scroll { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
