/* =========================================================
   sergimolina.pro · sistema visual
   Papel crema, tinta casi negra y un rojo que solo aparece
   donde hay algo que hacer (enlaces, botones, el sello).
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #FAF8F4;
  --paper-2: #F1EDE5;
  --ink: #1C1915;
  --ink-2: #5C564D;
  --ink-3: #6B6459;
  --rule: #E3DDD3;
  --red: #C8352A;
  --red-ink: #9E281F;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --measure: 66ch;
  --radius-photo: 14px;
  --radius-ui: 8px;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  --step-4: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  --step-5: clamp(2.6rem, 1.4rem + 5vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-ui);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

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

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--display);
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-weight: 400;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; font-variation-settings: "SOFT" 50; letter-spacing: -0.015em; line-height: 1.12; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums lining-nums; font-variation-settings: "SOFT" 30; letter-spacing: -0.02em; }

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color .2s, text-decoration-thickness .2s;
}
.link:hover { color: var(--red); text-decoration-thickness: 2.5px; }

.muted { color: var(--ink-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 13px 22px; border-radius: var(--radius-ui); border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand {
  font-family: var(--display); font-size: 20px; font-weight: 600; text-decoration: none;
  font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 10px;
}
.nav__brand img { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); }
.nav__links { display: flex; gap: 4px; list-style: none; }
.nav__links a {
  display: block; padding: 8px 12px; border-radius: var(--radius-ui);
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--paper-2); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav__burger span + span { margin-top: 5px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav__links li:last-child a { border-bottom: 0; }
  .nav__links a:hover { background: none; color: var(--red); }
}

/* ---------- HERO ---------- */
.hero { padding-block: clamp(40px, 9vh, 110px) clamp(56px, 10vh, 120px); position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__kicker { font-size: 15px; color: var(--ink-2); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.hero__title { font-size: var(--step-5); line-height: 1; }
.hero__title .l2 { color: var(--ink-3); font-weight: 300; }
.hero__lead { margin-top: 28px; font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); max-width: 560px; }
.hero__fact { padding: 18px 16px 0 0; }
.hero__fact + .hero__fact { padding-left: 20px; border-left: 1px solid var(--rule); }
.hero__fact .num { font-size: 30px; line-height: 1; }
.hero__fact span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 6px; }

/* La pila de fotos: lo único "ruidoso" de la página */
.stack { position: relative; height: clamp(380px, 46vw, 560px); }
.stack__photo {
  position: absolute; display: block; overflow: hidden;
  border-radius: var(--radius-photo); background: var(--paper-2);
  box-shadow: 0 1px 0 rgba(28,25,21,.04), 0 18px 40px -12px rgba(28,25,21,.28);
  outline: 1px solid rgba(28,25,21,.08);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.stack__photo img, .stack__photo picture { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.stack__photo--main { width: 58%; aspect-ratio: 3/4; right: 8%; top: 0; transform: rotate(1deg); z-index: 3; }
.stack__photo--a { width: 40%; aspect-ratio: 3/4; left: 0; top: 26%; transform: rotate(-2.5deg); z-index: 2; }
.stack__photo--b { width: 38%; aspect-ratio: 3/4; right: 0; bottom: 0; transform: rotate(3deg); z-index: 4; }
.stack__photo:hover { transform: rotate(0deg); }
.stack__sticker {
  position: absolute; z-index: 6; right: 4%; top: 52%;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px;
  transform: rotate(-2deg); box-shadow: 0 8px 20px -6px rgba(200,53,42,.4);
  transition: transform .25s;
}
.stack__sticker:hover { transform: rotate(0deg); }
.stack__hint { position: absolute; left: 0; bottom: -6px; font-size: 13px; color: var(--ink-3); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .stack { height: 330px; max-width: 420px; width: 100%; margin-inline: auto; order: -1; margin-bottom: 8px; }
  .stack__hint { display: none; }
  .hero__fact + .hero__fact { padding-left: 14px; }
  .hero__fact .num { font-size: 26px; }
  .hero__fact span { font-size: 13px; }
}

/* Entrada: un único momento orquestado al cargar */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-in] { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  .js .stack__photo { animation: drop .9s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 120ms + 250ms); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; translate: 0 -24px; scale: .96; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 11vw, 140px); border-top: 1px solid var(--rule); }
.section--tint { background: var(--paper-2); border-top: 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section__name { font-size: 15px; font-weight: 600; color: var(--red-ink); align-self: start; padding-top: .7em; }
.section__title { font-size: var(--step-4); max-width: 18ch; }
.section__intro { grid-column: 2; font-size: var(--step-1); color: var(--ink-2); max-width: 52ch; line-height: 1.55; margin-top: -12px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); }
.split > :first-child { position: relative; }
@media (max-width: 860px) {
  .section__head, .split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section__intro { grid-column: 1; margin-top: 0; }
  .section__name { padding-top: 0; }
}

/* ---------- Sobre mí ---------- */
.about__photo { width: 100%; max-width: 300px; border-radius: var(--radius-photo); overflow: hidden; position: sticky; top: 96px; }
.about__photo img { width: 100%; }
.about__photo figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.prose-lg p { font-size: var(--step-1); line-height: 1.7; color: var(--ink-2); max-width: var(--measure); }
.prose-lg p + p { margin-top: 1.1em; }
.prose-lg p:first-child { color: var(--ink); font-size: var(--step-2); line-height: 1.45; font-family: var(--display); font-variation-settings: "SOFT" 50; }
.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--rule); max-width: var(--measure); }
.facts div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 14px; color: var(--ink-3); }
.facts dd { font-size: 16px; margin-top: 2px; }
@media (max-width: 860px) { .about__photo { position: static; max-width: 220px; } }

/* ---------- Contenido (series) ---------- */
.series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.serie { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.serie:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--rule); }
.serie h3 { font-size: var(--step-2); }
.serie p { color: var(--ink-2); max-width: 48ch; }
.serie__foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; font-size: 15px; }
.serie__dato { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) {
  .series { grid-template-columns: 1fr; }
  .serie, .serie:nth-child(even) { padding: 24px 0; border-left: 0; }
}

.videos { margin-top: clamp(48px, 7vw, 88px); }
.videos h3 { font-size: var(--step-2); margin-bottom: 18px; }
.video-list { list-style: none; border-top: 1.5px solid var(--ink); }
.video-row a {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) auto; gap: 24px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background .2s, padding .25s;
}
.video-row a:hover { background: var(--paper-2); padding-inline: 14px; }
.video-row__title { font-family: var(--display); font-size: var(--step-1); font-variation-settings: "SOFT" 50; line-height: 1.3; }
.video-row__serie { display: block; font-family: var(--body); font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.video-row__desc { color: var(--ink-2); font-size: 15px; }
.video-row__dato { font-weight: 600; font-size: 15px; white-space: nowrap; text-align: right; }
.video-row a:hover .video-row__title { color: var(--red); }
@media (max-width: 760px) {
  .video-row a { grid-template-columns: 1fr; gap: 6px; }
  .video-row__dato { text-align: left; color: var(--red); }
}

/* ---------- Números (libro de cuentas) ---------- */
.ledger { width: 100%; border-collapse: collapse; }
.ledger caption { text-align: left; font-size: 14px; color: var(--ink-3); caption-side: bottom; padding-top: 16px; }
.ledger th, .ledger td { text-align: right; padding: 22px 0 22px 16px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.ledger thead th { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--ink-3); padding-block: 0 12px; border-bottom: 1.5px solid var(--ink); }
.ledger th[scope="row"], .ledger thead th:first-child { text-align: left; padding-left: 0; }
.ledger th[scope="row"] { font-family: var(--display); font-weight: 400; font-size: var(--step-2); font-variation-settings: "SOFT" 50; }
.ledger td .num { font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); line-height: 1; }
.ledger td small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.numbers__note { margin-top: 28px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 640px) {
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: 100%; }
  .ledger tr { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1.5px solid var(--ink); padding-bottom: 6px; margin-bottom: 18px; }
  .ledger th[scope="row"] { grid-column: 1 / -1; padding: 14px 0 6px; border: 0; }
  .ledger td { text-align: left; padding: 8px 8px 8px 0; border: 0; }
  .ledger td .num { font-size: 1.5rem; }
}

/* ---------- Colaboraciones ---------- */
.colabs { list-style: none; border-top: 1.5px solid var(--ink); }
.colab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 5vw, 80px); padding: 30px 0; border-bottom: 1px solid var(--rule); }
.colab__brand { font-family: var(--display); font-size: var(--step-3); line-height: 1.05; font-variation-settings: "SOFT" 50, "WONK" 1; }
.colab__sector { display: block; font-family: var(--body); font-size: 14px; color: var(--ink-3); margin-top: 8px; letter-spacing: 0; }
.colab__text { color: var(--ink-2); max-width: 58ch; }
.colab__result { margin-top: 12px; font-weight: 600; max-width: 58ch; }
.colab__more { display: inline-block; margin-top: 12px; font-size: 15px; }
@media (max-width: 700px) { .colab { grid-template-columns: 1fr; padding: 24px 0; } }

/* ---------- Bloque de blog en la home ---------- */
.teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.teaser { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.teaser__img { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius-photo); background: var(--paper-2); }
.teaser__img img, .teaser__img picture { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.teaser:hover .teaser__img img { transform: scale(1.04); }
.teaser__meta { font-size: 14px; color: var(--ink-3); }
.teaser__title { font-family: var(--display); font-size: var(--step-1); line-height: 1.3; font-variation-settings: "SOFT" 50; }
.teaser:hover .teaser__title { color: var(--red); }
.teasers__all { margin-top: 36px; }
@media (max-width: 860px) { .teasers { grid-template-columns: 1fr; } .teaser { display: grid; grid-template-columns: 120px 1fr; align-items: start; } .teaser__img { aspect-ratio: 1; grid-row: span 2; } }

/* ---------- Contacto ---------- */
.contact__title { font-size: var(--step-5); max-width: 12ch; }
.contact__lead { margin-top: 24px; font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; }
.contact__mail { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact__address { font-family: var(--display); font-size: var(--step-3); text-decoration: none; border-bottom: 2px solid var(--red); line-height: 1.2; overflow-wrap: anywhere; transition: color .2s; }
.contact__address:hover { color: var(--red); }
.copy-btn { background: none; border: 1.5px solid var(--rule); border-radius: var(--radius-ui); padding: 8px 12px; font-size: 14px; cursor: pointer; color: var(--ink-2); transition: border-color .2s, color .2s; }
.copy-btn:hover { border-color: var(--ink); color: var(--ink); }
.socials { list-style: none; margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--rule); }
.socials a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.socials a span { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.socials a:hover { color: var(--red); }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; padding: clamp(28px, 4vw, 44px); background: var(--paper-2); border-radius: 18px; }
.newsletter h2 { font-size: var(--step-3); }
.newsletter p { color: var(--ink-2); margin-top: 8px; max-width: 42ch; }
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter label { width: 100%; font-size: 14px; color: var(--ink-2); }
.newsletter input[type="email"] {
  flex: 1 1 200px; min-width: 0; padding: 13px 16px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--rule); border-radius: var(--radius-ui); background: var(--paper); color: var(--ink);
}
.newsletter input[type="email"]:focus { outline: none; border-color: var(--ink); }
.newsletter__note { width: 100%; font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); padding-block: 40px 56px; margin-top: 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: baseline; }
.footer__name { font-family: var(--display); font-size: 22px; font-variation-settings: "SOFT" 100, "WONK" 1; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; font-size: 15px; }
.footer__links a { text-decoration: none; color: var(--ink-2); }
.footer__links a:hover { color: var(--red); }
.footer__copy { width: 100%; font-size: 14px; color: var(--ink-3); }

/* ---------- Personaje ---------- */
.mascot { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.mascot img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); box-shadow: 0 8px 22px -6px rgba(28,25,21,.35); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.mascot:hover img { transform: scale(1.12) rotate(-8deg); }
.mascot.is-spinning img { animation: spin .6s ease; }
@keyframes spin { 50% { transform: rotate(200deg) scale(1.2); } 100% { transform: rotate(360deg); } }
.mascot__bubble {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.mascot__bubble::after { content: ""; position: absolute; right: 22px; top: 100%; border: 6px solid transparent; border-top-color: var(--ink); }
.mascot__bubble.is-on { opacity: 1; transform: none; }
@media (max-width: 600px) { .mascot, .mascot img { width: 48px; height: 48px; } .mascot { right: 14px; bottom: 14px; } }

/* =========================================================
   BLOG
   ========================================================= */
.blog-head { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 48px); }
.blog-head h1 { font-size: var(--step-5); max-width: 14ch; }
.blog-head p { margin-top: 20px; font-size: var(--step-1); color: var(--ink-2); max-width: 50ch; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { border: 1.5px solid var(--rule); background: transparent; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink-2); transition: all .2s; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; text-decoration: none; padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1.5px solid var(--ink); margin-bottom: 8px; }
.feature__img { aspect-ratio: 4/5; max-height: 560px; width: 100%; border-radius: var(--radius-photo); overflow: hidden; background: var(--paper-2); }
.feature__img img, .feature__img picture { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.feature:hover .feature__img img { transform: scale(1.03); }
.feature h2 { font-size: var(--step-4); margin-top: 10px; }
.feature:hover h2 { color: var(--red); }
.feature p { margin-top: 16px; color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; max-width: 44ch; }
.meta { font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.meta .cat { color: var(--red); font-weight: 600; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

.post-list { list-style: none; }
.post-item a { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); padding: 28px 0; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: center; }
.post-item__img { aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.post-item__img img, .post-item__img picture { width: 100%; height: 100%; object-fit: cover; }
.post-item h3 { font-size: var(--step-2); margin: 6px 0 8px; }
.post-item p { color: var(--ink-2); max-width: 60ch; }
.post-item a:hover h3 { color: var(--red); }
.post-item[hidden] { display: none; }
@media (max-width: 600px) { .post-item a { grid-template-columns: 96px minmax(0, 1fr); align-items: start; } .post-item p { display: none; } .post-item h3 { font-size: var(--step-1); } }

.blog-newsletter { margin-block: clamp(56px, 8vw, 96px); }

/* ---------- Artículo ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); z-index: 120; }
.article { padding-block: clamp(36px, 6vw, 72px) 0; }
.article__top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1040px; margin-inline: auto; }
.article__top--solo { grid-template-columns: 1fr; max-width: 820px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.article__title { font-size: var(--step-4); }
.article__desc { margin-top: 18px; font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; max-width: 52ch; }
.article__head .meta { margin-top: 22px; }
/* Las fotos son verticales, como los vídeos: se muestran como una pantalla de móvil */
.article__hero { aspect-ratio: 9/14; max-width: 340px; width: 100%; justify-self: end; border-radius: 22px; overflow: hidden; background: var(--paper-2); transform: rotate(2deg); box-shadow: 0 24px 50px -20px rgba(28,25,21,.35); }
.article__hero img, .article__hero picture { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .article__top { grid-template-columns: 1fr; }
  .article__hero { justify-self: start; max-width: 260px; transform: rotate(1.5deg); }
}

.gallery { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 12px; }
.gallery img, .gallery picture { aspect-ratio: 9/14; object-fit: cover; width: 100%; height: 100%; border-radius: 12px; }
.prose .gallery { margin-block: 2em; }
@media (min-width: 1000px) { .prose .gallery--wide { margin-inline: -80px; } }

.prose { max-width: 680px; margin: clamp(36px, 5vw, 56px) auto 0; font-size: 1.125rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: var(--step-3); margin-top: 2em; line-height: 1.15; }
.prose h3 { font-size: var(--step-2); margin-top: 1.6em; }
.prose a { text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--red); }
.prose blockquote { font-family: var(--display); font-size: var(--step-2); line-height: 1.4; font-variation-settings: "SOFT" 50; padding-left: 24px; border-left: 3px solid var(--red); }
.prose > p > img, .prose > p > picture img { border-radius: var(--radius-photo); width: 100%; max-height: 640px; object-fit: cover; }
.prose picture { display: block; }
.prose p:has(> img), .prose p:has(> picture) { margin-block: 2em; }
.prose hr { border: 0; height: 1px; background: var(--rule); margin-block: 2.5em; }
@media (min-width: 1000px) {
  .prose .wide { margin-inline: -120px; }
}

.watch { border: 1.5px solid var(--ink); border-radius: 14px; padding: 6px 20px; }
.watch__label { font-size: 14px; color: var(--ink-3); padding-top: 12px; }
.watch a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.watch a:last-child { border-bottom: 0; }
.watch a:hover { color: var(--red); }

.comments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.comments img { border-radius: 10px; outline: 1px solid var(--rule); }
.comments > :first-child { grid-column: 1 / -1; }
.prose .comments img { margin: 0; }

.author { max-width: 680px; margin: clamp(48px, 7vw, 80px) auto 0; padding-top: 32px; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: start; }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author h2 { font-size: var(--step-1); }
.author p { color: var(--ink-2); margin-top: 6px; }
.author p a { color: var(--ink); }

.related { margin-top: clamp(64px, 9vw, 112px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--rule); }
.related h2 { font-size: var(--step-3); margin-bottom: 28px; }
.related .teasers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .related .teasers { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.notfound h1 { font-size: var(--step-5); }
.notfound p { margin: 18px auto 32px; color: var(--ink-2); max-width: 40ch; font-size: var(--step-1); }

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

/* =========================================================
   Vídeos en vertical (como en el móvil)
   ========================================================= */
.reel {
  position: relative; display: block; aspect-ratio: 9/16; overflow: hidden;
  border-radius: 18px; background: var(--ink);
  box-shadow: 0 0 0 1px rgba(28,25,21,.08), 0 20px 40px -22px rgba(28,25,21,.45);
  isolation: isolate;
}
.reel__video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.reel:hover .reel__video { transform: scale(1.035); }
.reel__play {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: #1C1915;
  box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: transform .25s, background .25s, color .25s;
}
.reel:hover .reel__play { transform: scale(1.1); background: var(--red); color: #fff; }

.videos__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; }
.videos__head h3 { margin: 0; }
.reels {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.reels__item { scroll-snap-align: start; min-width: 0; }
.reels__title { font-family: var(--display); font-variation-settings: "SOFT" 50; font-size: 1.05rem; line-height: 1.3; margin-top: 14px; }
.reels__meta { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.reels__dato { font-size: 14px; font-weight: 600; color: var(--red-ink); margin-top: 6px; }
@media (max-width: 700px) { .reels { grid-auto-columns: 62%; } }

/* Casos destacados en colaboraciones */
.cases { display: grid; gap: clamp(28px, 4vw, 48px); margin-bottom: clamp(40px, 6vw, 72px); }
.case { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(20px, 3vw, 32px); background: var(--paper); border-radius: 24px; }
.case .reel { max-width: 260px; }
.case__body .colab__brand { font-size: var(--step-4); }
.case__body .colab__text { margin-top: 18px; font-size: var(--step-1); line-height: 1.55; }
.case__more { margin-top: 22px; }
@media (max-width: 700px) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .case .reel { max-width: 220px; }
}

.hero__brands { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: 15px; color: var(--ink-3); max-width: 600px; }
.hero__brands span { width: 100%; font-size: 13px; }
.hero__brands b { font-family: var(--display); font-weight: 500; font-variation-settings: "SOFT" 50; font-size: 18px; color: var(--ink-2); letter-spacing: -0.01em; }

/* =========================================================
   Transiciones entre páginas
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* =========================================================
   Modo oscuro (automático)
   ========================================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151311;
    --paper-2: #1E1B18;
    --ink: #F1ECE4;
    --ink-2: #BEB6AA;
    --ink-3: #8E877C;
    --rule: #34302A;
    --red: #E2503F;
    --red-ink: #F26B5A;
  }
  .stack__photo { outline-color: rgba(255,255,255,.08); box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); }
  .reel { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 40px -22px rgba(0,0,0,.8); }
  .comments img { outline-color: var(--rule); }
  .mascot img { border-color: var(--ink); }
  .nav__brand img { border-color: var(--ink); }
}
.article__hero--video { background: none; box-shadow: none; overflow: visible; aspect-ratio: auto; }
.article__hero--video .reel { border-radius: 22px; }

/* =========================================================
   Contacto con formulario
   ========================================================= */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact__kit { margin-top: 28px; color: var(--ink-2); }
.form { background: var(--paper); border-radius: 22px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.form__row { display: grid; gap: 6px; border: 0; }
.form label, .form legend { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.form input:not([type="radio"]), .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--radius-ui);
  padding: 12px 14px; transition: border-color .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form legend { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--rule); font-size: 15px; color: var(--ink-2); transition: all .2s; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form .btn { justify-self: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Media kit (pantalla e impresión)
   ========================================================= */
.kit { padding-block: clamp(40px, 7vw, 88px); }
.kit__head { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(28px, 5vw, 72px); align-items: center; }
.kit__eyebrow { font-size: 15px; color: var(--red); font-weight: 600; margin-bottom: 12px; }
.kit__head h1 { font-size: var(--step-5); }
.kit__lead { margin-top: 20px; font-size: var(--step-1); color: var(--ink-2); max-width: 48ch; }
.kit__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.kit__photo { border-radius: 22px; overflow: hidden; transform: rotate(2deg); }
.kit__block { margin-top: clamp(56px, 8vw, 96px); }
.kit__block > h2 { font-size: var(--step-3); margin-bottom: 24px; }
.kit__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; border-top: 1.5px solid var(--ink); padding-top: 28px; }
.kit__points h3 { font-size: var(--step-1); margin-bottom: 6px; }
.kit__points p { color: var(--ink-2); }
@media (max-width: 760px) { .kit__head, .kit__points { grid-template-columns: minmax(0, 1fr); } .kit__photo { max-width: 220px; } }

@media print {
  @page { size: A4; margin: 14mm; }
  :root { --paper: #fff; --paper-2: #F4F1EB; --ink: #1C1915; --ink-2: #4A453E; --ink-3: #6E685F; --rule: #E3DDD3; --red: #C8352A; }
  body { background: #fff; font-size: 12px; }
  .nav, .footer, .mascot, .skip, .kit__actions, .progress { display: none !important; }
  .kit { padding: 0; }
  .kit__head { grid-template-columns: 1fr 180px; }
  .kit__head h1 { font-size: 44px; }
  .kit__block { margin-top: 28px; break-inside: avoid; }
  .colab { padding: 14px 0; break-inside: avoid; }
  .colab__brand { font-size: 22px; }
  .ledger td .num { font-size: 22px; }
  .ledger th, .ledger td { padding-block: 10px; }
  a { text-decoration: none; }
}

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { padding: 28px 0 0; border-top: 1.5px solid var(--ink); }
.quote blockquote { font-family: var(--display); font-variation-settings: "SOFT" 50; font-size: var(--step-2); line-height: 1.35; }
.quote figcaption { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.quote figcaption b { color: var(--ink); font-weight: 600; }

/* Ajustes finales */
.section__head { row-gap: 20px; }
.section__intro { margin-top: 0; }
.contact__address { font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); overflow-wrap: normal; word-break: normal; }
.socials a { flex-direction: column; justify-content: flex-start; gap: 2px; }
@media (min-width: 1100px) {
  .reels { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
  .case .reel { max-width: 200px; }
  .case__body .colab__brand { font-size: var(--step-3); }
  .case__body .colab__text { font-size: 1rem; margin-top: 12px; }
}
.case--text { grid-template-columns: minmax(0, 1fr) !important; align-items: start; }
.case__more.link { display: inline-block; margin-top: 16px; }

/* =========================================================
   Contadores en directo
   ========================================================= */
.live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.live__item { display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 28px) clamp(24px, 3vw, 36px) 0; text-decoration: none; border-bottom: 1px solid var(--rule); transition: background .25s; }
.live__item + .live__item { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--rule); }
.live__item:hover { background: var(--paper-2); }
.live__net { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.live__num { font-size: clamp(2.6rem, 1.2rem + 5vw, 5.75rem); line-height: 1; letter-spacing: -0.035em; font-variation-settings: "SOFT" 30, "WONK" 0; }
.live__label { font-size: 15px; color: var(--ink-3); }
.live__note { margin-top: 18px; font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.is-live .live__dot { background: var(--red); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@media (max-width: 700px) {
  .live { grid-template-columns: minmax(0, 1fr); }
  .live__item, .live__item + .live__item { padding: 22px 0; border-left: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 14px; }
  .live__net { width: 100%; }
}

/* Cursor sobre vídeos */
.cursor-pill {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  margin: 14px 0 0 14px; padding: 8px 14px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; scale: .6; transition: opacity .2s, scale .25s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 10px 24px -8px rgba(200,53,42,.6);
}
.cursor-pill.is-on { opacity: 1; scale: 1; }
.reel.has-cursor { cursor: none; }
.reel.has-cursor .reel__play { opacity: 0; }

/* Línea de tiempo (Sobre mí) */
.timeline { list-style: none; margin-top: 36px; max-width: var(--measure); position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1.5px; background: var(--rule); }
.timeline__item { position: relative; padding: 0 0 26px 36px; display: grid; gap: 4px; }
.timeline__item::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.timeline__item:last-child::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 18%, transparent); }
.timeline__when { font-size: 14px; font-weight: 600; color: var(--red); }
.timeline__title { font-size: var(--step-1); line-height: 1.3; }
.timeline__text { color: var(--ink-2); margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .js .timeline__item { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
  .js .timeline__item.is-in { opacity: 1; transform: none; }
}
.mascot.is-peek img { animation: peek .7s cubic-bezier(.34,1.56,.64,1); }
@keyframes peek { 0% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-14px) rotate(-10deg) scale(1.08); } 70% { transform: translateY(2px) rotate(4deg); } 100% { transform: none; } }

/* Mi equipo */
.gear { margin-top: clamp(40px, 6vw, 72px); }
.gear__title { font-size: var(--step-3); padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.gear__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.gear__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.gear__item--img { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
.gear__img { aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.gear__img img, .gear__img picture { width: 100%; height: 100%; object-fit: cover; }
.gear__body h3 { font-size: var(--step-1); line-height: 1.3; }
.gear__body p { color: var(--ink-2); margin-top: 6px; }
.gear__code { font-size: 15px; }
.gear__code b { color: var(--ink); font-weight: 600; }
.gear__link { display: inline-block; margin-top: 10px; font-weight: 500; }
.gear__note { margin-block: 48px clamp(56px, 8vw, 96px); font-size: 14px; color: var(--ink-3); max-width: 60ch; }
.live__net { display: inline-flex; align-items: center; gap: 8px; }
.live__pip { width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.live__item.is-live .live__pip { background: var(--red); animation: pulse 1.8s ease-out infinite; }

/* =========================================================
   Carrusel de marcas
   ========================================================= */
.marquee { margin-bottom: clamp(36px, 5vw, 56px); background: var(--paper); border-radius: 18px; padding: 18px 0 20px; overflow: hidden; }
.marquee__label { font-size: 13px; color: var(--ink-3); padding-inline: 24px; margin-bottom: 8px; }
.marquee__viewport { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { list-style: none; display: flex; flex: none; gap: clamp(36px, 5vw, 64px); padding-right: clamp(36px, 5vw, 64px); animation: marquee 32s linear infinite; }
.marquee__track li { font-family: var(--display); font-variation-settings: "SOFT" 50, "WONK" 1; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); white-space: nowrap; color: var(--ink-2); letter-spacing: -0.01em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
/* El carrusel es lento y suave: se mantiene también con "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: marquee 60s linear infinite !important; animation-iteration-count: infinite !important; animation-duration: 60s !important; }
}

/* =========================================================
   Sobre mí en capítulos horizontales
   ========================================================= */
.chapters { margin-top: 36px; position: relative; }
.chapters__rail { position: relative; display: flex; justify-content: space-between; margin-bottom: 18px; padding-top: 22px; }
.chapters__rail::before { content: ""; position: absolute; left: 6px; right: 6px; top: 28px; height: 1.5px; background: var(--rule); }
.chapters__fill { position: absolute; left: 6px; top: 28px; height: 1.5px; width: 0; background: var(--red); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.chapters__dot { position: relative; z-index: 1; width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); cursor: pointer; transition: background .3s, border-color .3s, transform .3s; }
.chapters__dot span { position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; font-size: 11px; font-weight: 600; color: var(--ink-3); white-space: nowrap; opacity: 0; transition: opacity .25s; }
.chapters__dot.is-done { background: var(--red); border-color: var(--red); }
.chapters__dot.is-current { transform: scale(1.35); background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 18%, transparent); }
.chapters__dot.is-current span, .chapters__dot:hover span { opacity: 1; color: var(--red); }
.chapters__track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.chapters__track::-webkit-scrollbar { display: none; }
.chapter { scroll-snap-align: start; min-height: 240px; background: var(--paper-2); border-radius: 20px; padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 10px; transition: opacity .4s, transform .4s; }
.chapter:not(.is-current) { opacity: .45; transform: scale(.98); }
.chapter__n { font-size: 13px; color: var(--ink-3); }
.chapter__when { font-family: var(--display); font-variation-settings: "SOFT" 50, "WONK" 1; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1; color: var(--red); margin-top: 4px; }
.chapter__title { font-size: var(--step-2); margin-top: 8px; }
.chapter__text { color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; max-width: 48ch; }
.chapters__nav { display: flex; gap: 8px; margin-top: 16px; }
.chapters__btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; font-size: 18px; transition: background .2s, color .2s, opacity .2s; }
.chapters__btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.chapters__btn:disabled { opacity: .3; cursor: default; }

/* Redes en contacto */
.socials { list-style: none; margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; border: 0; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; transition: border-color .2s, color .2s; }
.social svg { width: 20px; height: 20px; flex: none; }
.social:hover { border-color: var(--ink); color: var(--red); }

/* Títulos que aparecen palabra a palabra, como subtítulos */
@media (prefers-reduced-motion: no-preference) {
  .js [data-sub] .w { display: inline-block; opacity: 0; transform: translateY(.35em) scale(.92); }
  .js [data-sub].is-in .w { animation: subPop .45s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: calc(var(--w) * 70ms); }
}
@keyframes subPop { 60% { opacity: 1; transform: translateY(-.04em) scale(1.04); } 100% { opacity: 1; transform: none; } }
.socials a.social { flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--paper); }
.socials a.social span { color: var(--ink); font-weight: 600; font-size: 15px; }
.socials a.social:hover { border-color: var(--ink); }
.socials a.social:hover span { color: var(--red); }
.chapters__dot:first-child span { left: 0; translate: 0 0; }
.chapters__dot:nth-last-child(2) span { left: auto; right: 0; translate: 0 0; }
.live__num.is-tick { animation: tick .5s ease; }
@keyframes tick { 30% { color: var(--red); } 100% { color: inherit; } }

/* Media kit v2 */
.kit__head { grid-template-columns: minmax(0, 1fr) 260px; }
.kit__reel .reel { max-width: 260px; transform: rotate(2deg); }
.kit__stats { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); max-width: 520px; }
.kit__stats div { padding: 14px 12px 0 0; }
.kit__stats div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.kit__stats .num { font-size: 28px; display: block; line-height: 1; }
.kit__stats span { font-size: 13px; color: var(--ink-2); }
.kit__note { font-size: 14px; color: var(--ink-3); margin: -12px 0 20px; }
.aud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.aud__col { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.aud__col h3 { font-size: var(--step-2); }
.aud__total { color: var(--ink-2); margin-top: 4px; }
.aud__group { margin-top: 20px; }
.aud__label { font-size: 13px; font-weight: 600; color: var(--red); margin-bottom: 6px; }
.bar { display: grid; grid-template-columns: 92px minmax(0, 1fr) 52px; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
.bar__name { color: var(--ink-2); }
.bar__track { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar__track i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.bar__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.formats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1.5px solid var(--ink); padding-top: 22px; }
.formats h3 { font-size: var(--step-1); margin-bottom: 6px; }
.formats p { color: var(--ink-2); font-size: 15px; }
.formats + .kit__note { margin-top: 20px; }
.kit__cases { margin-bottom: 0; }
@media (min-width: 1100px) { .kit__cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .aud, .formats { grid-template-columns: minmax(0, 1fr); } .kit__head { grid-template-columns: minmax(0, 1fr); } .kit__reel .reel { max-width: 200px; } }
@media print {
  .kit__head { grid-template-columns: 1fr 150px; }
  .kit__reel .reel { max-width: 150px; }
  .reel__play { display: none; }
  .aud { grid-template-columns: 1fr 1fr; }
  .formats { grid-template-columns: repeat(4, 1fr); }
  .kit__cases { grid-template-columns: 1fr 1fr; }
  .case { break-inside: avoid; grid-template-columns: 90px 1fr !important; padding: 12px; }
  .case .reel { max-width: 90px; }
  .case__body .colab__brand { font-size: 18px; }
  .case__body .colab__text { font-size: 11px; }
  .bar__track { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =========================================================
   Personaje de cuerpo entero
   ========================================================= */
.mascot { display: none !important; }
.buddy {
  position: fixed; right: clamp(4px, 2vw, 28px); bottom: 0; z-index: 90;
  width: 180px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateY(52%); transition: transform .45s cubic-bezier(.34,1.4,.64,1);
  -webkit-tap-highlight-color: transparent;
}
.buddy:hover, .buddy:focus-visible { transform: translateY(38%); }
.buddy.is-down { transform: translateY(105%); transition-duration: .25s; transition-timing-function: ease-in; }
.buddy__img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(28,25,21,.25)); transition: transform .3s; transform-origin: 50% 100%; }
.buddy.is-flip .buddy__img { transform: scaleX(-1); }
.buddy__bubble {
  position: absolute; right: 70%; top: -6px; translate: 0 -100%;
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; line-height: 1.35;
  padding: 9px 13px; border-radius: 12px 12px 4px 12px; white-space: nowrap; max-width: 240px;
  opacity: 0; transform: translateY(6px) scale(.96); transform-origin: 100% 100%;
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.buddy__bubble.is-on { opacity: 1; transform: none; }
@media (max-width: 700px) {
  .buddy { width: 92px; right: 2px; transform: translateY(58%); }
  .buddy:hover { transform: translateY(50%); }
  .buddy__bubble { font-size: 13px; right: 60%; white-space: normal; width: max-content; max-width: 200px; }
}
@media print { .buddy { display: none; } }
.kit__note--wide { max-width: 62ch; font-size: 15px; color: var(--ink-2); }
/* Escondido por defecto: solo asoma al entrar y en Contacto */
.buddy { transform: translateY(110%); pointer-events: none; }
.buddy.is-shown { transform: translateY(52%); pointer-events: auto; }
.buddy.is-shown:hover, .buddy.is-shown:focus-visible { transform: translateY(38%); }
.buddy.is-shown.is-down { transform: translateY(110%); }
@media (max-width: 700px) {
  .buddy { transform: translateY(110%); }
  .buddy.is-shown { transform: translateY(58%); }
  .buddy.is-shown:hover { transform: translateY(50%); }
}

/* Preguntas frecuentes en posts */
.faq { margin-top: 2.5em; border-top: 1.5px solid var(--ink); padding-top: 1.2em; }
.faq h2 { margin-top: 0; }
.faq__item { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq__item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--red); font-weight: 400; font-size: 1.3em; line-height: 1; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin-top: 10px; color: var(--ink-2); }

/* Móvil: la foto de Sobre mí ya no se desplaza encima del texto */
@media (max-width: 860px) {
  .split > .about__photo, .about__photo { position: static !important; top: auto; margin-bottom: 8px; }
}
@media (max-width: 700px) {
  .feature__img { max-height: 380px; }
  .buddy { width: 84px; }
  .chapters__rail { padding-top: 26px; }
}

/* Índice del post */
.toc { border: 1px solid var(--rule); border-radius: 16px; padding: 20px 24px; background: var(--paper-2); }
.toc__label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.prose .toc ol { margin-top: 10px; padding-left: 1.3em; font-size: 1rem; line-height: 1.5; }
.prose .toc li + li { margin-top: .35em; }
.prose .toc a { text-decoration: none; color: var(--ink-2); }
.prose .toc a:hover { color: var(--red); }
.prose h2[id] { scroll-margin-top: 90px; }

/* Compartir */
.share { margin-top: 2.5em; padding-top: 24px; border-top: 1px solid var(--rule); }
.share__label { font-family: var(--display); font-size: var(--step-1); font-variation-settings: "SOFT" 50; }
.share__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.prose .share__btn, .share__btn { font: inherit; font-size: 15px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.prose .share__btn:hover, .share__btn:hover { background: var(--ink); color: var(--paper); }

/* Sigue leyendo */
.next-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.next-post { display: flex; flex-direction: column; text-decoration: none; border-radius: 18px; overflow: hidden; background: var(--paper-2); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.next-post:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(28,25,21,.35); }
.next-post__img { aspect-ratio: 4/3; overflow: hidden; }
.next-post__img img, .next-post__img picture { width: 100%; height: 100%; object-fit: cover; }
.next-post__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.next-post__meta { font-size: 13px; color: var(--red-ink); font-weight: 600; }
.next-post__title { font-family: var(--display); font-size: var(--step-1); line-height: 1.25; font-variation-settings: "SOFT" 50; color: var(--ink); }
.next-post__desc { font-size: 15px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.next-post__cta { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.next-post:hover .next-post__cta, .next-post:hover .next-post__title { color: var(--red); }
.related__all { margin-top: 28px; }
@media (max-width: 860px) { .next-posts { grid-template-columns: 1fr; gap: 14px; } .next-post { display: grid; grid-template-columns: 112px minmax(0, 1fr); } .next-post__img { aspect-ratio: auto; height: 100%; min-height: 112px; } .next-post__body { padding: 14px 16px; gap: 6px; } .next-post__desc { display: none; } }

/* Página de caso */
.caso { padding-block: clamp(36px, 6vw, 72px) 0; }
.caso__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1040px; margin-inline: auto; }
.caso__kicker { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--red); }
.caso__title { font-size: var(--step-5, var(--step-4)); margin-top: 8px; }
.caso__lead { margin-top: 18px; font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.caso__ficha { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.caso__ficha dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.caso__ficha dd { margin: 4px 0 0; font-size: 16px; }
.caso__reel { max-width: 320px; width: 100%; justify-self: end; transform: rotate(2deg); }
.caso__reel .reel { border-radius: 22px; box-shadow: 0 24px 50px -20px rgba(28,25,21,.35); }
.caso__nums { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) auto 0; max-width: 1040px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.caso__nums li { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.caso__nums b { font-family: var(--display); font-size: var(--step-4); line-height: 1; font-weight: 400; font-variation-settings: "SOFT" 50; }
.caso__nums span { color: var(--ink-2); font-size: 15px; }
.caso__quote { margin-block: 2.2em; }
.caso__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }
.prose .caso__links a { text-decoration: none; }
.caso__close { color: var(--ink-2); }
.caso-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.caso-grid--big { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 8px; }
.caso-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.caso-card__img { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius-photo); background: var(--paper-2); margin-bottom: 6px; }
.caso-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.caso-card:hover .caso-card__img img { transform: scale(1.04); }
.caso-card__sector { font-size: 13px; color: var(--ink-3); }
.caso-card__brand { font-family: var(--display); font-size: var(--step-2); line-height: 1.1; font-variation-settings: "SOFT" 50; color: var(--ink); }
.caso-card:hover .caso-card__brand { color: var(--red); }
.caso-card__text { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.caso-testis { display: grid; gap: 32px; }
@media (max-width: 860px) {
  .caso__top { grid-template-columns: 1fr; }
  .caso__reel { justify-self: start; max-width: 240px; transform: rotate(1.5deg); }
  .caso-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cases__all { margin-top: 36px; }

/* Logos en el carrusel */
.marquee__track li { display: flex; align-items: center; min-height: 48px; }
.marquee__track img { width: auto; max-width: 220px; display: block; filter: brightness(0); opacity: .62; transition: opacity .2s; }
.marquee__track li:hover img { opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marquee__track img { filter: brightness(0) invert(1); opacity: .7; } }
:root[data-theme="dark"] .marquee__track img { filter: brightness(0) invert(1); opacity: .7; }

/* Logo sm en el menú */
.nav__brand .logo-sm { height: 21px; width: auto; display: block; color: var(--ink); flex: none; }
.nav__brand { gap: 10px; }
.marquee__track a { display: block; }

@media print { [data-sub] .w { opacity: 1 !important; transform: none !important; } }
.hero__live { margin-top: 18px; }
.colab-quotes { margin-top: clamp(40px, 6vw, 64px); }
.cases__all { margin-top: clamp(32px, 4vw, 48px); }

/* Tarjeta de testimonio */
.tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.tcard { position: relative; margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(26px, 3.5vw, 40px); box-shadow: 0 18px 40px -28px rgba(28,25,21,.35); max-width: 820px; }
.section--tint .tcard { background: var(--paper); }
.tcard__mark { position: absolute; top: 6px; right: 26px; font-family: var(--display); font-size: 110px; line-height: 1; color: var(--red); opacity: .9; }
.tcard__quote { font-family: var(--display); font-variation-settings: "SOFT" 50; font-size: var(--step-1); line-height: 1.5; color: var(--ink); padding-right: 36px; }
.tcard__who { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 14px; }
.tcard__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.tcard__avatar--ini { display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.tcard__name { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.tcard__name b { color: var(--ink); font-weight: 600; font-size: 16px; }
.tcard__brand { margin-left: auto; display: block; }
.tcard__brand img { height: 22px; width: auto; display: block; filter: brightness(0); opacity: .55; transition: opacity .2s; }
.tcard__brand:hover img { opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tcard__brand img { filter: brightness(0) invert(1); } }
:root[data-theme="dark"] .tcard__brand img { filter: brightness(0) invert(1); }
@media (max-width: 560px) { .tcard__brand { display: none; } }

/* Testimonios: más compactos y en carrusel */
.tcarousel__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 22px; margin: -4px -4px 0; }
.tcarousel__track::-webkit-scrollbar { display: none; }
.tcarousel .tcard { flex: 0 0 min(440px, 86%); scroll-snap-align: start; padding: 24px 26px; border-radius: 18px; }
.tcarousel .tcard__mark { font-size: 72px; top: 4px; right: 20px; }
.tcarousel .tcard__quote { font-size: 1.02rem; line-height: 1.55; padding-right: 26px; }
.tcarousel .tcard__who { margin-top: 18px; padding-top: 16px; gap: 12px; }
.tcarousel .tcard__avatar { width: 42px; height: 42px; }
.tcarousel .tcard__avatar--ini { font-size: 14px; }
.tcarousel .tcard__name { font-size: 13.5px; }
.tcarousel .tcard__name b { font-size: 15px; }
.tcarousel .tcard__brand img { height: 18px; }
.tcarousel__nav { display: flex; gap: 10px; margin-top: 4px; }
