/* ============================================================
   STRANO ESTUDIO — Design System
   Editorial · Premium · Cinematic
   ============================================================ */

/* RESET ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: auto; }
body { margin: 0; }
img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; }

/* TOKENS --------------------------------------------------- */
:root {
  --ink:        #1a1410;
  --ink-soft:   #2a201a;
  --paper:      #f4ebdd;
  --paper-warm: #e8dcc8;
  --paper-dim:  #8a7d6e;
  --accent:     #b8946a;
  --accent-soft:#d4b88a;
  --line:       #d4c5ad;
  --f-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --f-sans:    'Inter Tight', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-w: 1280px;
  --space-section: clamp(80px, 12vw, 160px);
}

/* BASE ----------------------------------------------------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--paper); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 350;
  line-height: 1.06;
  margin: 0;
  letter-spacing: -0.005em;
}
p { margin: 0 0 1em; }
em, .italic { font-style: italic; font-variation-settings: "opsz" 144, "WONK" 1; }
.text-accent { color: var(--accent); }
.center { text-align: center; }
kbd, code, pre, samp { font-family: var(--f-mono); }

/* WRAP ----------------------------------------------------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap, .wrap--narrow { padding: 0 22px; } }

/* EYEBROW -------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--paper-dim); margin: 0 0 16px;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--center { justify-content: center; }
.eyebrow--paper { color: rgba(244,235,221,0.7); }

/* BUTTONS — hard contrast guarantee --------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-sans); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 16px 28px; text-decoration: none;
  cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
  will-change: transform;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn > span,
.btn > svg {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.btn svg { transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1); flex-shrink: 0; }
.btn:hover svg { transform: translateX(6px); }

/* Diagonal ink-fill overlay (parte fuori dal box, entra al hover) */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--btn-fill);
  transform: translate3d(-101%, 101%, 0);
  transition: transform 0.55s cubic-bezier(0.6,0.05,0.2,1);
  z-index: -1;
  pointer-events: none;
}
.btn:hover::before { transform: translate3d(0, 0, 0); }

/* Shimmer light overlay */
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.30) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 1s cubic-bezier(0.2,0.8,0.2,1) 0.15s;
  pointer-events: none;
  z-index: -1;
}
.btn:hover::after { transform: translateX(120%); }

/* === VARIANTS === Ognuna definisce ESPLICITAMENTE: bg, color,
   border, --btn-fill (colore overlay), e color hover. */

/* PRIMARY — su sfondi paper, ink di default → accent al hover */
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  --btn-fill: var(--accent);
}
.btn--primary:hover {
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(184,148,106,0.35);
}

/* GHOST — su sfondi paper, trasparente con border ink → ink fill al hover */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  --btn-fill: var(--ink);
}
.btn--ghost:hover {
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 8px 24px rgba(26,20,16,0.28);
}

/* GHOST-PAPER — su sfondi ink, trasparente con border paper → paper fill al hover */
.btn--ghost-paper {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
  --btn-fill: var(--paper);
}
.btn--ghost-paper:hover {
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 0 8px 24px rgba(244,235,221,0.18);
}

/* ACCENT — bottone accent dorato → ink al hover */
.btn--accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  --btn-fill: var(--ink);
}
.btn--accent:hover {
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 8px 32px rgba(26,20,16,0.4);
}

.btn--large { padding: 22px 40px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .btn::before, .btn::after {
    transition: none;
    transform: translate3d(-101%, 101%, 0);
  }
  .btn:hover::before { transform: translate3d(-101%, 101%, 0); }
  .btn:hover::after { transform: translateX(-120%); }
}

/* LINK ARROW ----------------------------------------------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink); text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 16px; }
.link-arrow--paper { color: var(--paper); border-color: var(--paper); }
.link-arrow--paper:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.link-arrow--accent { color: var(--accent); border-color: var(--accent); }

/* REVEAL --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.2,0.8,0.2,1), transform 0.9s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal--right { transform: translateX(40px); }
.reveal--right.is-in { transform: translateX(0); }
.reveal--scale { transform: scale(0.96); }
.reveal--scale.is-in { transform: scale(1); }

/* GRAIN ---------------------------------------------------- */
body::after {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* LIGHT VEIL ----------------------------------------------- */
.light-veil {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(184,148,106,0.10) 0%, rgba(184,148,106,0) 60%);
  transition: opacity 0.6s;
  mix-blend-mode: multiply;
}
@media (hover: none), (prefers-reduced-motion: reduce) { .light-veil { display: none; } }

/* CUSTOM CURSOR -------------------------------------------- */
.cursor {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  border: 1px solid var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s, opacity 0.3s;
  mix-blend-mode: difference;
}
.cursor.is-hover { width: 32px; height: 32px; background: var(--accent); border-color: var(--accent); opacity: 0.6; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* NAV TOP -------------------------------------------------- */
.nav-top { position: sticky; top: 0; z-index: 100; padding: 22px 0; transition: background 0.4s, border-color 0.4s, padding 0.4s; border-bottom: 1px solid transparent; }
.nav-top.is-scrolled { background: rgba(244,235,221,0.85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom-color: var(--line); padding: 14px 0; }
.nav-top__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
/* Brand logo (nav + footer) — letter split + reveal + shimmer */
.nav-top__logo,
.site-footer__brand {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  text-decoration: none; line-height: 1;
  display: inline-flex; align-items: baseline;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.nav-top__logo { font-size: 22px; color: var(--ink); }
.site-footer__brand { font-size: 28px; color: var(--paper); margin: 0 0 16px; }
.nav-top__logo .char,
.site-footer__brand .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: brandLetterIn 0.8s cubic-bezier(0.2,0.8,0.2,1) forwards;
  transition: color 0.3s ease;
  position: relative;
}
.nav-top__logo .dot,
.site-footer__brand .dot {
  display: inline-block;
  margin: 0 6px;
  color: var(--accent);
  opacity: 0;
  transform: scale(0) rotate(-90deg);
  animation: brandDotIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.30s forwards;
}
@keyframes brandLetterIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes brandDotIn {
  to { opacity: 1; transform: scale(1) rotate(0); }
}
.nav-top__logo .char:nth-child(1),
.site-footer__brand .char:nth-child(1)  { animation-delay: 0.05s; }
.nav-top__logo .char:nth-child(2),
.site-footer__brand .char:nth-child(2)  { animation-delay: 0.08s; }
.nav-top__logo .char:nth-child(3),
.site-footer__brand .char:nth-child(3)  { animation-delay: 0.11s; }
.nav-top__logo .char:nth-child(4),
.site-footer__brand .char:nth-child(4)  { animation-delay: 0.14s; }
.nav-top__logo .char:nth-child(5),
.site-footer__brand .char:nth-child(5)  { animation-delay: 0.17s; }
.nav-top__logo .char:nth-child(6),
.site-footer__brand .char:nth-child(6)  { animation-delay: 0.20s; }
.nav-top__logo .char:nth-child(7),
.site-footer__brand .char:nth-child(7)  { animation-delay: 0.23s; }
.nav-top__logo .char:nth-child(8),
.site-footer__brand .char:nth-child(8)  { animation-delay: 0.26s; }
.nav-top__logo .char:nth-child(9),
.site-footer__brand .char:nth-child(9)  { animation-delay: 0.40s; }
.nav-top__logo .char:nth-child(10),
.site-footer__brand .char:nth-child(10) { animation-delay: 0.43s; }
.nav-top__logo .char:nth-child(11),
.site-footer__brand .char:nth-child(11) { animation-delay: 0.46s; }
.nav-top__logo .char:nth-child(12),
.site-footer__brand .char:nth-child(12) { animation-delay: 0.49s; }
.nav-top__logo .char:nth-child(13),
.site-footer__brand .char:nth-child(13) { animation-delay: 0.52s; }
.nav-top__logo .char:nth-child(14),
.site-footer__brand .char:nth-child(14) { animation-delay: 0.55s; }
.nav-top__logo .char:nth-child(15),
.site-footer__brand .char:nth-child(15) { animation-delay: 0.58s; }
.nav-top__logo .char:nth-child(16),
.site-footer__brand .char:nth-child(16) { animation-delay: 0.61s; }

@keyframes brandShimmer {
  0%   { color: inherit; transform: translateY(0); }
  35%  { color: var(--accent); transform: translateY(-2px); }
  70%  { color: var(--accent); transform: translateY(0); }
  100% { color: inherit; transform: translateY(0); }
}
@keyframes brandShimmerStrong {
  0%   { color: inherit; transform: translateY(0) rotate(0); }
  20%  { color: var(--accent); transform: translateY(-4px) rotate(-2deg); }
  40%  { color: var(--accent); transform: translateY(0) rotate(2deg); }
  60%  { color: var(--accent); transform: translateY(-2px) rotate(0); }
  100% { color: inherit; transform: translateY(0) rotate(0); }
}
.nav-top__logo:hover {
  transform: scale(1.03);
}
.site-footer__brand:hover {
  transform: scale(1.03);
}
.nav-top__logo:hover .char,
.site-footer__brand:hover .char {
  animation: brandShimmerStrong 0.8s ease forwards;
}
.nav-top__logo:hover .char:nth-child(1),
.site-footer__brand:hover .char:nth-child(1)  { animation-delay: 0.00s; }
.nav-top__logo:hover .char:nth-child(2),
.site-footer__brand:hover .char:nth-child(2)  { animation-delay: 0.04s; }
.nav-top__logo:hover .char:nth-child(3),
.site-footer__brand:hover .char:nth-child(3)  { animation-delay: 0.08s; }
.nav-top__logo:hover .char:nth-child(4),
.site-footer__brand:hover .char:nth-child(4)  { animation-delay: 0.12s; }
.nav-top__logo:hover .char:nth-child(5),
.site-footer__brand:hover .char:nth-child(5)  { animation-delay: 0.16s; }
.nav-top__logo:hover .char:nth-child(6),
.site-footer__brand:hover .char:nth-child(6)  { animation-delay: 0.20s; }
.nav-top__logo:hover .char:nth-child(7),
.site-footer__brand:hover .char:nth-child(7)  { animation-delay: 0.24s; }
.nav-top__logo:hover .char:nth-child(8),
.site-footer__brand:hover .char:nth-child(8)  { animation-delay: 0.28s; }
.nav-top__logo:hover .char:nth-child(9),
.site-footer__brand:hover .char:nth-child(9)  { animation-delay: 0.36s; }
.nav-top__logo:hover .char:nth-child(10),
.site-footer__brand:hover .char:nth-child(10) { animation-delay: 0.40s; }
.nav-top__logo:hover .char:nth-child(11),
.site-footer__brand:hover .char:nth-child(11) { animation-delay: 0.44s; }
.nav-top__logo:hover .char:nth-child(12),
.site-footer__brand:hover .char:nth-child(12) { animation-delay: 0.48s; }
.nav-top__logo:hover .char:nth-child(13),
.site-footer__brand:hover .char:nth-child(13) { animation-delay: 0.52s; }
.nav-top__logo:hover .char:nth-child(14),
.site-footer__brand:hover .char:nth-child(14) { animation-delay: 0.56s; }
.nav-top__logo:hover .char:nth-child(15),
.site-footer__brand:hover .char:nth-child(15) { animation-delay: 0.60s; }
.nav-top__logo:hover .char:nth-child(16),
.site-footer__brand:hover .char:nth-child(16) { animation-delay: 0.64s; }

.nav-top__logo:hover .dot,
.site-footer__brand:hover .dot {
  animation: dotPulseStrong 1s ease;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1) rotate(0); color: var(--accent); }
  50%      { transform: scale(1.5) rotate(0); color: var(--accent-soft); }
}
@keyframes dotPulseStrong {
  0%, 100% { transform: scale(1) rotate(0); color: var(--accent); text-shadow: none; }
  30%      { transform: scale(1.8) rotate(180deg); color: var(--accent-soft); text-shadow: 0 0 12px var(--accent); }
  60%      { transform: scale(1.3) rotate(360deg); color: var(--accent); text-shadow: 0 0 6px var(--accent); }
}

/* Underline accent that grows from center on hover */
.nav-top__logo {
  position: relative;
  padding-bottom: 4px;
}
.nav-top__logo::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.2,0.8,0.2,1), left 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.nav-top__logo:hover::after {
  width: 100%;
  left: 0;
}
.site-footer__brand {
  position: relative;
  padding-bottom: 4px;
}
.site-footer__brand::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.2,0.8,0.2,1), left 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.site-footer__brand:hover::after {
  width: 100%;
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .nav-top__logo .char, .site-footer__brand .char,
  .nav-top__logo .dot, .site-footer__brand .dot {
    opacity: 1; transform: none; animation: none;
  }
  .nav-top__logo:hover, .site-footer__brand:hover { transform: none; }
  .nav-top__logo:hover .char, .site-footer__brand:hover .char { animation: none; }
  .nav-top__logo:hover .dot, .site-footer__brand:hover .dot { animation: none; }
  .nav-top__logo::after, .site-footer__brand::after { display: none; }
}
.nav-top__menu { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.nav-top__menu a { font-family: var(--f-sans); font-size: 14px; color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color 0.3s, color 0.3s; }
.nav-top__menu a:hover, .nav-top__menu a.is-current { border-bottom-color: var(--accent); color: var(--accent); }
.nav-top__cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink); text-decoration: none; padding: 10px 16px; border: 1px solid var(--ink); transition: background 0.3s, color 0.3s; }
.nav-top__cta:hover { background: var(--ink); color: var(--paper); }
.nav-top__burger { display: none; background: transparent; border: 0; color: var(--ink); cursor: pointer; padding: 4px; }
@media (max-width: 900px) {
  .nav-top__menu, .nav-top__cta { display: none; }
  .nav-top__burger { display: inline-flex; }
}

/* MOBILE OVERLAY ------------------------------------------- */
.nav-overlay { position: fixed; inset: 0; background: var(--paper); z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1); }
.nav-overlay.is-open { transform: translateX(0); }
.nav-overlay__close { position: absolute; top: 24px; right: 24px; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.nav-overlay__menu { display: flex; flex-direction: column; gap: 20px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-overlay__menu a { font-family: var(--f-display); font-style: italic; font-size: 32px; color: var(--ink); text-decoration: none; transition: color 0.3s; }
.nav-overlay__menu a:hover { color: var(--accent); }
.nav-overlay__contact { font-family: var(--f-mono); font-size: 12px; color: var(--paper-dim); margin-top: 32px; text-decoration: none; }

/* FOOTER --------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 80px 0 40px; position: relative; z-index: 2; }
.site-footer__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 1024px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__inner { grid-template-columns: 1fr; gap: 36px; } }
.site-footer__meta { font-family: var(--f-sans); font-size: 13px; color: rgba(244,235,221,0.6); line-height: 1.7; margin: 0 0 4px; }
.site-footer__head { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(244,235,221,0.5); margin: 0 0 20px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin: 0 0 10px; }
.site-footer__list a { font-family: var(--f-sans); font-size: 14px; color: var(--paper); text-decoration: none; opacity: 0.8; transition: opacity 0.3s, color 0.3s; }
.site-footer__list a:hover { opacity: 1; color: var(--accent); }
.site-footer__bottom {
  max-width: var(--max-w);
  margin: 60px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(244,235,221,0.12);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(244,235,221,0.5);
}
.site-footer__bottom-left { display: flex; flex-direction: column; gap: 8px; }
.site-footer__legal-links {
  display: inline-flex; gap: 8px; flex-wrap: wrap;
  text-transform: none; letter-spacing: 0.06em;
}
.site-footer__legal-links a {
  color: rgba(244,235,221,0.7); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.site-footer__legal-links a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer__legal-links span[aria-hidden] { color: rgba(244,235,221,0.3); }
.site-footer__dev {
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.18em;
}
.site-footer__dev a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  font-style: italic;
  text-transform: none;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0;
}
.site-footer__dev a:hover { border-color: var(--accent); }
@media (max-width: 720px) {
  .site-footer__bottom { flex-direction: column; gap: 16px; }
}

/* PAGE HERO (interior pages) ------------------------------- */
.page-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--line); position: relative; }
.page-hero__title { font-family: var(--f-display); font-weight: 350; font-size: clamp(40px, 6vw, 88px); line-height: 1.02; max-width: 16ch; margin: 16px 0 24px; letter-spacing: -0.01em; }
.page-hero__title em { font-style: italic; color: var(--accent); font-variation-settings: "opsz" 144, "WONK" 1; }
.page-hero__lead { font-family: var(--f-display); font-weight: 400; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; max-width: 56ch; color: var(--ink-soft); margin: 0; }

/* HERO EDITORIAL ------------------------------------------ */
.hero-editorial { position: relative; padding: 32px 0 80px; overflow: hidden; }
.hero-editorial__filigree { position: absolute; inset: 0; opacity: 0.05; z-index: 0; pointer-events: none; }
.hero-editorial__filigree svg { width: 100%; height: 100%; }
.hero-editorial__grid {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  align-items: start;
}
.hero-editorial__edition {
  grid-column: 1 / -1;
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--paper-dim); display: flex; align-items: center; gap: 16px;
  padding: 20px 0 32px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.hero-editorial__edition span { display: inline-flex; align-items: center; gap: 8px; }
.hero-editorial__edition span:first-child::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero-editorial__edition .sep { color: var(--line); font-weight: 300; }
.hero-editorial__photo {
  grid-column: 7 / 13; grid-row: 2;
  aspect-ratio: 2 / 3; max-height: 720px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  position: relative; overflow: hidden;
  margin-top: 32px;
  z-index: 1;
}
.hero-editorial__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; will-change: transform; transition: transform 1s cubic-bezier(0.2,0.8,0.2,1); }
.hero-editorial__photo-caption { position: absolute; bottom: 16px; left: 16px; right: 16px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper); mix-blend-mode: difference; opacity: 0.85; }
.hero-editorial__text {
  grid-column: 1 / 9; grid-row: 2;
  position: relative; z-index: 2;
  padding-top: 64px;
  pointer-events: none;
}
.hero-editorial__text > * { pointer-events: auto; }
.hero-editorial__title {
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(56px, 9.5vw, 152px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin: 0 0 32px;
  pointer-events: none;
}
.hero-editorial__title em { font-style: italic; color: var(--accent); font-variation-settings: "opsz" 144, "WONK" 1; }
.hero-editorial__title .word { display: inline-block; opacity: 0; transform: translateY(60px); }
.hero-editorial__title.is-loaded .word { opacity: 1; transform: translateY(0); transition: opacity 1.1s cubic-bezier(0.2,0.8,0.2,1), transform 1.1s cubic-bezier(0.2,0.8,0.2,1); }
.hero-editorial__lead {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  max-width: 50ch;
  color: var(--ink-soft);
  margin: 0 0 40px;
  pointer-events: none;
}
.hero-editorial__cta { display: flex; gap: 16px; flex-wrap: wrap; pointer-events: auto; }

@media (max-width: 900px) {
  .hero-editorial { padding: 16px 0 60px; }
  .hero-editorial__grid { gap: 0; }
  .hero-editorial__edition { padding: 16px 0 20px; row-gap: 6px; font-size: 10px; }
  .hero-editorial__photo {
    grid-column: 1 / -1; grid-row: 2;
    aspect-ratio: 3 / 4;
    margin-top: 20px;
    margin-left: -32px; margin-right: -32px;
  }
  .hero-editorial__text { grid-column: 1 / -1; grid-row: 3; padding-top: 32px; }
  .hero-editorial__title { font-size: clamp(48px, 13vw, 92px); max-width: 100%; }
  .hero-editorial__lead { font-size: 17px; }
}
@media (max-width: 600px) {
  .hero-editorial__photo { margin-left: -22px; margin-right: -22px; }
}

/* MARQUEE -------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}
.marquee__track {
  display: inline-flex; gap: 0;
  animation: marqueeScroll 60s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-duration: 200s; }
.marquee__item {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(28px, 4vw, 56px);
  color: var(--ink);
  padding: 0 32px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 32px;
}
.marquee__item::after {
  content: '·';
  color: var(--accent);
  font-style: normal;
  font-weight: 400;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ÁREAS STICKY-STAGE -------------------------------------- */
.areas { padding: var(--space-section) 0; }
.areas__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
@media (max-width: 900px) { .areas__inner { grid-template-columns: 1fr; gap: 40px; } }
.areas__sticky { position: sticky; top: 120px; align-self: start; }
@media (max-width: 900px) { .areas__sticky { position: static; } }
.areas__title { font-family: var(--f-display); font-weight: 350; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.04; margin: 16px 0 24px; max-width: 14ch; }
.areas__title em { font-style: italic; color: var(--accent); font-variation-settings: "opsz" 144, "WONK" 1; }
.areas__sub { font-family: var(--f-display); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-soft); max-width: 40ch; margin: 0 0 36px; }
.areas__counter { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--paper-dim); }
.areas__counter strong { color: var(--ink); font-weight: 500; transition: color 0.3s; }

.areas__list { display: flex; flex-direction: column; gap: 0; }
.area-row {
  display: grid;
  grid-template-columns: 64px 56px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s ease;
}
.area-row:first-child { border-top: 1px solid var(--line); }
.area-row:hover { background: rgba(184,148,106,0.04); }
.area-row__num { font-family: var(--f-mono); font-size: 12px; color: var(--paper-dim); padding-top: 6px; letter-spacing: 0.16em; }
.area-row__icon { width: 48px; height: 48px; color: var(--accent); flex-shrink: 0; }
.area-row__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.area-row__body { min-width: 0; }
.area-row__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; margin: 0 0 12px; }
.area-row__desc { font-family: var(--f-sans); font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 20px; max-width: 56ch; }
.area-row__link { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; transition: color 0.3s, border-color 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.area-row__link:hover { color: var(--accent); border-color: var(--accent); }
.area-row__cta-cell { padding-top: 6px; }
@media (max-width: 700px) {
  .area-row { grid-template-columns: 48px 40px 1fr; padding: 28px 0; gap: 16px; }
  .area-row__icon { width: 40px; height: 40px; }
  .area-row__cta-cell { display: none; }
}

/* PULL QUOTE ----------------------------------------------- */
.pull-quote {
  background: var(--paper-warm);
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pull-quote__mark {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(120px, 16vw, 180px);
  color: var(--accent);
  opacity: 0.5;
  line-height: 0.6;
  margin: 0 0 20px;
  user-select: none;
}
.pull-quote__text {
  font-family: var(--f-display);
  font-weight: 350;
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.2;
  max-width: 24ch;
  margin: 0 auto 32px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pull-quote__author {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--paper-dim);
}
.pull-quote--ink { background: var(--ink); border-color: rgba(244,235,221,0.12); }
.pull-quote--ink .pull-quote__text { color: var(--paper); }
.pull-quote--ink .pull-quote__author { color: rgba(244,235,221,0.6); }

/* HERITAGE STRIP ------------------------------------------- */
.heritage { background: var(--paper); padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.heritage__label { text-align: center; }
.heritage__grid {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--line);
  gap: 1px;
  max-width: var(--max-w);
  margin-left: auto; margin-right: auto;
}
.heritage__item {
  background: var(--paper);
  padding: 32px 20px;
  font-family: var(--f-display);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  min-height: 140px;
}
.heritage__item strong { display: block; font-weight: 500; color: var(--ink); margin-bottom: 6px; font-size: 16px; }
.heritage__item em { color: var(--accent); font-variation-settings: "opsz" 144, "WONK" 1; }
@media (max-width: 1000px) { .heritage__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .heritage__grid { grid-template-columns: 1fr; } }

/* SOBRE PREVIEW -------------------------------------------- */
.sobre-preview { padding: var(--space-section) 0; }
.sobre-preview__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .sobre-preview__inner { grid-template-columns: 1fr; gap: 48px; } }
.sobre-preview__h { font-family: var(--f-display); font-weight: 350; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.04; margin: 16px 0 24px; }
.sobre-preview__h em { font-style: italic; color: var(--accent); font-variation-settings: "opsz" 144, "WONK" 1; }
.sobre-preview__lead { font-family: var(--f-display); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--ink-soft); margin: 0 0 32px; max-width: 50ch; }

.stat-block { display: grid; grid-template-rows: auto auto auto; gap: 32px; padding: 40px; border: 1px solid var(--line); background: var(--paper-warm); }
.stat-block__row { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); gap: 16px; }
.stat-block__row:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-block__num { font-family: var(--f-display); font-weight: 350; font-style: italic; font-size: clamp(48px, 6vw, 88px); color: var(--accent); line-height: 1; }
.stat-block__lbl { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-soft); text-align: right; max-width: 140px; }

/* LIBRO SPREAD --------------------------------------------- */
.libro-spread { background: var(--ink); color: var(--paper); padding: clamp(100px, 14vw, 140px) 0; position: relative; overflow: hidden; }
.libro-spread__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center; max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
@media (max-width: 900px) { .libro-spread__inner { grid-template-columns: 1fr; gap: 56px; padding: 0 22px; } }
.libro-spread__cover { position: relative; max-width: 420px; margin: 0 auto; transform: rotate(-1.5deg); transition: transform 0.7s cubic-bezier(0.2,0.8,0.2,1); }
.libro-spread__cover:hover { transform: rotate(0deg) scale(1.02); }
.libro-spread__cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; box-shadow: 0 50px 100px rgba(0,0,0,0.5); position: relative; z-index: 2; }
.libro-spread__cover::before {
  content: ''; position: absolute; inset: -40px; z-index: 1;
  background: radial-gradient(closest-side, rgba(184,148,106,0.35), transparent 70%);
  filter: blur(40px);
}
.libro-spread__chapter { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); margin: 0 0 16px; }
.libro-spread__title { font-family: var(--f-display); font-weight: 350; font-style: italic; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.06; color: var(--paper); margin: 0 0 28px; max-width: 18ch; }
.libro-spread__title em { color: var(--accent); }
.libro-spread__excerpt { font-family: var(--f-display); font-weight: 400; font-size: 19px; line-height: 1.65; color: rgba(244,235,221,0.85); margin: 0 0 32px; max-width: 56ch; }
.libro-spread__excerpt::first-letter {
  font-family: var(--f-display); font-style: italic;
  font-size: 88px; line-height: 0.8; color: var(--accent);
  float: left; padding: 6px 12px 0 0; font-weight: 350;
}
.libro-spread__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(244,235,221,0.12); margin: 0 0 36px; }
.libro-spread__meta-cell { background: var(--ink); padding: 18px 12px; text-align: center; }
.libro-spread__meta-num { font-family: var(--f-display); font-weight: 350; font-size: 24px; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.libro-spread__meta-lbl { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(244,235,221,0.6); }
@media (max-width: 600px) { .libro-spread__meta { grid-template-columns: repeat(2, 1fr); } }
.libro-spread__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* CONTACTO PREVIEW ----------------------------------------- */
.contacto-preview { background: var(--paper-warm); padding: clamp(100px, 14vw, 160px) 0; text-align: center; border-top: 1px solid var(--line); }
.contacto-preview__h { font-family: var(--f-display); font-weight: 350; font-size: clamp(48px, 8vw, 144px); line-height: 1.0; max-width: 14ch; margin: 16px auto 28px; letter-spacing: -0.02em; }
.contacto-preview__h em { font-style: italic; color: var(--accent); font-variation-settings: "opsz" 144, "WONK" 1; }
.contacto-preview__sub { font-family: var(--f-display); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 48ch; margin: 0 auto 56px; }
.contacto-preview__mail {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--f-display); font-style: italic; font-weight: 350;
  font-size: clamp(28px, 5vw, 56px);
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  transition: color 0.4s, border-color 0.4s, gap 0.4s;
  letter-spacing: -0.01em;
}
.contacto-preview__mail:hover { color: var(--accent); border-color: var(--accent); gap: 24px; }
.contacto-preview__hubs { list-style: none; padding: 0; margin: 56px 0 0; display: inline-flex; gap: 24px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--paper-dim); flex-wrap: wrap; justify-content: center; }
.contacto-preview__hubs li { display: inline-flex; align-items: center; gap: 8px; }
.contacto-preview__hubs li::before { content: ''; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; display: inline-block; }

/* CONTACTO PAGE -------------------------------------------- */
.contact-hero { padding: clamp(80px, 10vw, 120px) 0 80px; text-align: center; }
.contact-hero__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.contact-hero__mail {
  display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center;
  font-family: var(--f-display); font-style: italic; font-weight: 350;
  font-size: clamp(40px, 8vw, 120px);
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
  transition: color 0.4s, border-color 0.4s;
  line-height: 1;
  word-break: break-word;
}
.contact-hero__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-hero__lead { font-family: var(--f-display); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 48ch; margin: 40px auto 28px; }
.contact-hero__copy { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; padding: 14px 24px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background 0.3s, color 0.3s; }
.contact-hero__copy:hover { background: var(--ink); color: var(--paper); }
.contact-hero__copy.is-copied { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.canales { padding: 80px 0; border-top: 1px solid var(--line); }
.canales__grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 800px) { .canales__grid { grid-template-columns: 1fr; } }
.canal-card { background: var(--paper); padding: 40px 32px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; text-decoration: none; color: var(--ink); transition: background 0.4s; position: relative; }
.canal-card:hover { background: var(--paper-warm); }
.canal-card__icon { width: 32px; height: 32px; color: var(--accent); }
.canal-card__h { font-family: var(--f-display); font-style: italic; font-size: 28px; margin: 0; }
.canal-card__d { font-family: var(--f-sans); font-size: 15px; color: var(--ink-soft); margin: 0; flex-grow: 1; }
.canal-card__cta { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; align-self: flex-start; transition: color 0.3s, border-color 0.3s; }
.canal-card:hover .canal-card__cta { color: var(--accent); border-color: var(--accent); }

.world-map { padding: 80px 0; background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.world-map__inner { max-width: 900px; margin: 0 auto; padding: 0 32px; text-align: center; }
.world-map__svg { width: 100%; max-width: 720px; margin: 32px auto; }
.world-map__hubs { display: flex; gap: 32px; justify-content: center; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink); flex-wrap: wrap; }
.world-map__hubs span { display: inline-flex; align-items: center; gap: 8px; }
.world-map__hubs span::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.matriculas-line { padding: 40px 0 80px; text-align: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-dim); }

/* SOBRE-MI ------------------------------------------------- */
.sobre-bio { padding: var(--space-section) 0; }
.sobre-bio__inner { max-width: 720px; margin: 0 auto; padding: 0 32px; }
.sobre-bio__lead { font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.55; color: var(--ink); margin: 0 0 32px; }
.sobre-bio__p { font-family: var(--f-sans); font-size: 18px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 24px; }

.sobre-photo { padding: 60px 0; }
.sobre-photo__frame { max-width: 800px; margin: 0 auto; aspect-ratio: 4 / 5; overflow: hidden; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.sobre-photo__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.sobre-photo__caption { max-width: 800px; margin: 12px auto 0; padding: 0 32px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-dim); text-align: right; }

.stat-strip { padding: 80px 0; background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); max-width: 1100px; margin: 0 auto; }
@media (max-width: 700px) { .stat-strip__grid { grid-template-columns: repeat(2, 1fr); } }
.stat-strip__cell { background: var(--paper-warm); padding: 40px 16px; text-align: center; }
.stat-strip__num { font-family: var(--f-display); font-style: italic; font-weight: 350; font-size: clamp(48px, 6vw, 80px); color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat-strip__lbl { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-soft); }

.cta-final { padding: var(--space-section) 0; text-align: center; background: var(--paper); }
.cta-final__h { font-family: var(--f-display); font-style: italic; font-weight: 350; font-size: clamp(40px, 6vw, 80px); line-height: 1.05; max-width: 18ch; margin: 0 auto 32px; }
.cta-final__h em { color: var(--accent); }

/* LIBRO PAGE ----------------------------------------------- */
.libro-hero { padding: 60px 0 80px; }
.libro-hero__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: center; max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
@media (max-width: 900px) { .libro-hero__inner { grid-template-columns: 1fr; gap: 48px; } }
.libro-hero__cover { max-width: 380px; margin: 0 auto; transform: rotate(-1.5deg); transition: transform 0.7s cubic-bezier(0.2,0.8,0.2,1); position: relative; }
.libro-hero__cover:hover { transform: rotate(0deg); }
.libro-hero__cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; box-shadow: 0 30px 60px rgba(0,0,0,0.18); }
.libro-hero__title { font-family: var(--f-display); font-weight: 350; font-style: italic; font-size: clamp(48px, 7vw, 96px); line-height: 1.04; margin: 16px 0 24px; }
.libro-hero__title em { color: var(--accent); }
.libro-hero__sub { font-family: var(--f-display); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--ink-soft); margin: 0 0 32px; max-width: 50ch; }
.libro-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.libro-toc { padding: var(--space-section) 0; }
.libro-toc__h { text-align: center; margin: 0 0 56px; font-family: var(--f-display); font-style: italic; font-size: clamp(32px, 4.5vw, 56px); }
.libro-toc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; max-width: 1080px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 800px) { .libro-toc__grid { grid-template-columns: 1fr; } }
.libro-toc__item { display: grid; grid-template-columns: 60px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.libro-toc__num { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.16em; padding-top: 4px; }
.libro-toc__t { font-family: var(--f-display); font-size: 19px; font-weight: 400; color: var(--ink); margin: 0 0 6px; }
.libro-toc__d { font-family: var(--f-sans); font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

.libro-audience { padding: var(--space-section) 0; background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.libro-audience__h { text-align: center; font-family: var(--f-display); font-style: italic; font-size: clamp(32px, 4.5vw, 56px); margin: 0 0 56px; }
.libro-audience__grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 900px) { .libro-audience__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .libro-audience__grid { grid-template-columns: 1fr; } }
.libro-audience__cell { background: var(--paper-warm); padding: 36px 28px; text-align: center; min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
.libro-audience__icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 8px; }
.libro-audience__t { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--ink); margin: 0; }
.libro-audience__d { font-family: var(--f-sans); font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

.libro-cta-buy { padding: var(--space-section) 0; text-align: center; background: var(--ink); color: var(--paper); }
.libro-cta-buy__h { font-family: var(--f-display); font-style: italic; font-size: clamp(36px, 5.5vw, 64px); margin: 0 auto 20px; max-width: 18ch; line-height: 1.1; }
.libro-cta-buy__h em { color: var(--accent); }
.libro-cta-buy__sub { font-family: var(--f-display); font-size: 19px; color: rgba(244,235,221,0.7); margin: 0 auto 36px; max-width: 48ch; }

.libro-excerpt { padding: var(--space-section) 0; }
.libro-excerpt__inner { max-width: 720px; margin: 0 auto; padding: 0 32px; }
.libro-excerpt__h { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); margin: 0 0 24px; text-align: center; }
.libro-excerpt__text { font-family: var(--f-display); font-weight: 400; font-size: 21px; line-height: 1.6; color: var(--ink); margin: 0; }
.libro-excerpt__text::first-letter {
  font-family: var(--f-display); font-style: italic;
  font-size: 88px; line-height: 0.8; color: var(--accent);
  float: left; padding: 6px 12px 0 0; font-weight: 350;
}

/* METODO PAGE ---------------------------------------------- */
.metodo-steps { padding: var(--space-section) 0; max-width: var(--max-w); margin: 0 auto; }
.metodo-step {
  display: grid; grid-template-columns: 0.5fr 1fr; gap: 64px;
  padding: 80px 32px; border-bottom: 1px solid var(--line); align-items: start;
}
.metodo-step:first-of-type { border-top: 1px solid var(--line); }
@media (max-width: 900px) { .metodo-step { grid-template-columns: 1fr; gap: 24px; padding: 48px 22px; } }
.metodo-step__num { font-family: var(--f-display); font-style: italic; font-weight: 350; font-size: clamp(80px, 14vw, 200px); color: var(--accent); line-height: 0.85; position: sticky; top: 120px; }
@media (max-width: 900px) { .metodo-step__num { position: static; font-size: 88px; } }
.metodo-step__h { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05; margin: 16px 0 20px; }
.metodo-step__d { font-family: var(--f-display); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--ink-soft); margin: 0 0 24px; max-width: 56ch; }
.metodo-step__chip { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); }

/* FAQ PAGE ------------------------------------------------- */
.faq-list { padding: var(--space-section) 32px; max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 32px 0; cursor: pointer;
  font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 28px);
  color: var(--ink); line-height: 1.3;
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item__sign { width: 24px; height: 24px; flex-shrink: 0; position: relative; }
.faq-item__sign::before, .faq-item__sign::after { content: ''; position: absolute; background: currentColor; transition: transform 0.4s; }
.faq-item__sign::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.faq-item__sign::after { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }
.faq-item[open] .faq-item__sign::after { transform: translateX(-50%) rotate(90deg); }
.faq-item__content { font-family: var(--f-sans); font-size: 17px; line-height: 1.7; color: var(--ink-soft); padding: 0 0 32px; max-width: 56ch; }

/* TESTIMONIOS PAGE ----------------------------------------- */
.testimonios-list { padding: 0; }
.testimonio {
  padding: clamp(60px, 9vw, 120px) 24px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.testimonio:nth-child(even) { background: var(--paper-warm); }
.testimonio__mark { font-family: var(--f-display); font-style: italic; font-size: clamp(80px, 12vw, 140px); color: var(--accent); opacity: 0.5; line-height: 0.5; margin: 0 0 12px; }
.testimonio__text { font-family: var(--f-display); font-weight: 350; font-style: italic; font-size: clamp(24px, 3.4vw, 48px); line-height: 1.25; max-width: 24ch; margin: 0 auto 28px; }
.testimonio__author { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--paper-dim); }
.testimonios-note { padding: 40px 32px 80px; text-align: center; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--paper-dim); max-width: 600px; margin: 0 auto; }

/* SERVICIOS — sub-pages ------------------------------------ */
.svc-section { padding: var(--space-section) 0; border-bottom: 1px solid var(--line); }
.svc-section--alt { background: var(--paper-warm); }
.svc-section__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.svc-section__h { font-family: var(--f-display); font-style: italic; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.04; margin: 0 0 48px; max-width: 20ch; }
.svc-section__h em { color: var(--accent); }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 800px) { .svc-cards { grid-template-columns: 1fr; } }
.svc-card { background: var(--paper); padding: 36px 28px; min-height: 220px; display: flex; flex-direction: column; gap: 14px; }
.svc-section--alt .svc-card { background: var(--paper-warm); }
.svc-card__icon { width: 28px; height: 28px; color: var(--accent); }
.svc-card__t { font-family: var(--f-display); font-size: 22px; line-height: 1.3; color: var(--ink); margin: 0; }
.svc-card__d { font-family: var(--f-sans); font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

.svc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-top: 32px; }
@media (max-width: 800px) { .svc-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .svc-steps { grid-template-columns: 1fr; } }
.svc-step { background: var(--paper); padding: 32px 24px; min-height: 220px; }
.svc-section--alt .svc-step { background: var(--paper-warm); }
.svc-step__num { font-family: var(--f-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.2em; }
.svc-step__t { font-family: var(--f-display); font-size: 22px; margin: 16px 0 8px; line-height: 1.2; }
.svc-step__d { font-family: var(--f-sans); font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

.svc-related { padding: var(--space-section) 0; background: var(--ink); color: var(--paper); }
.svc-related__h { font-family: var(--f-display); font-style: italic; font-size: clamp(28px, 4vw, 44px); text-align: center; margin: 0 auto 56px; max-width: 24ch; padding: 0 32px; line-height: 1.1; }
.svc-related__h em { color: var(--accent); }
.svc-related__grid { max-width: 1100px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(244,235,221,0.12); }
@media (max-width: 900px) { .svc-related__grid { grid-template-columns: repeat(2, 1fr); padding: 0 22px; } }
@media (max-width: 500px) { .svc-related__grid { grid-template-columns: 1fr; } }
.svc-related__cell {
  background: var(--ink);
  padding: 32px 24px 28px;
  text-decoration: none;
  color: var(--paper);
  display: flex; flex-direction: column;
  gap: 10px;
  min-height: 200px;
  position: relative;
  transition: background 0.4s ease, color 0.4s ease;
}
.svc-related__cell:hover { background: var(--accent); color: var(--ink); }
.svc-related__num {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.22em; opacity: 0.6;
}
.svc-related__cell:hover .svc-related__num { opacity: 0.9; color: var(--ink); }
.svc-related__name {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  margin-top: 4px;
}
.svc-related__desc {
  font-family: var(--f-sans); font-size: 13px; line-height: 1.5;
  opacity: 0.7; margin-top: auto;
}
.svc-related__cell:hover .svc-related__desc { opacity: 0.9; }
.svc-related__arrow {
  position: absolute; bottom: 24px; right: 24px;
  font-family: var(--f-display); font-style: italic;
  font-size: 20px; opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s, transform 0.4s;
}
.svc-related__cell:hover .svc-related__arrow {
  opacity: 1; transform: translateX(0);
}

/* FAQ inside service ------------------------------------- */
.svc-faq { padding: var(--space-section) 0; }
.svc-faq__inner { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* 404 ------------------------------------------------------ */
.error-404 { padding: 120px 0 var(--space-section); text-align: center; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.error-404__num { font-family: var(--f-display); font-style: italic; font-weight: 350; font-size: clamp(96px, 18vw, 180px); color: var(--accent); line-height: 1; margin: 0 0 24px; }
.error-404__h { font-family: var(--f-display); font-size: clamp(24px, 3vw, 40px); margin: 0 0 32px; max-width: 24ch; }

/* UTILITIES ------------------------------------------------ */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; } .mt-6 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }
.lang-switcher { position: fixed; bottom: 24px; right: 24px; z-index: 90; display: none; }

/* REDUCED MOTION ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}

/* COOKIE BANNER ------------------------------------------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 24px 28px;
  display: flex; align-items: center;
  border: 1px solid var(--accent);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.2,0.8,0.2,1), opacity 0.5s;
  max-width: 760px;
  margin: 0 auto;
}
.cookie-banner.is-shown { transform: translateY(0); opacity: 1; }
.cookie-banner.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: center; width: 100%;
}
.cookie-banner__title {
  font-family: var(--f-display); font-style: italic; font-size: 18px;
  margin: 0 0 8px; color: var(--accent);
}
.cookie-banner__desc {
  font-family: var(--f-sans); font-size: 14px; line-height: 1.55;
  margin: 0; color: rgba(244,235,221,0.85);
}
.cookie-banner__desc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: inline-flex; gap: 12px; }
@media (max-width: 720px) {
  .cookie-banner__inner { grid-template-columns: 1fr; gap: 16px; }
  .cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .cookie-banner__actions .btn { padding: 12px 20px; font-size: 12px; flex: 1; justify-content: center; }
}

/* LEGAL CONTENT (aviso-legal, privacidad, cookies) -------- */
.legal-content { padding: 60px 0 var(--space-section); }
.legal-content__inner { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.legal-content h2 {
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2; margin: 56px 0 20px; color: var(--ink);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 21px; margin: 32px 0 12px; color: var(--ink);
}
.legal-content p {
  font-family: var(--f-sans); font-size: 16px; line-height: 1.7;
  color: var(--ink-soft); margin: 0 0 18px;
}
.legal-content ul {
  font-family: var(--f-sans); font-size: 16px; line-height: 1.7;
  color: var(--ink-soft); padding-left: 22px; margin: 0 0 18px;
}
.legal-content li { margin: 0 0 8px; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-content__updated {
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--paper-dim); margin: 0 0 32px;
}

/* DISCLAIMER STRIP (IT pages) ----------------------------- */
.disclaimer-strip {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 32px;
  text-align: center;
}
.disclaimer-strip p {
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--f-sans);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-style: italic;
}

/* LANGUAGE SWITCHER ---------------------------------------- */
.lang-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--accent);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.4s;
}
.lang-switcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
}
.lang-link {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.6;
  transition: color 0.3s, opacity 0.3s;
}
.lang-link:hover {
  color: var(--accent);
  opacity: 1;
}
.lang-link.is-current {
  color: var(--accent);
  opacity: 1;
  pointer-events: none;
}
.lang-divider {
  color: rgba(244,235,221,0.3);
}
@media (max-width: 720px) {
  .lang-switcher {
    bottom: 80px;
    padding: 8px 14px;
    font-size: 10px;
  }
}

/* PRINT ---------------------------------------------------- */
@media print {
  .nav-top, .site-footer, .light-veil, .cursor, body::after, .marquee, .cookie-banner, .lang-switcher { display: none; }
  body { background: white; color: black; }
}
