/* ==========================================================================
   Tema Met El Idrissi
   Los estilos de la maqueta, sacados de los atributos style= a clases reutilizables.
   Va encima de Bootstrap: la rejilla y las utilidades las pone él, y aquí solo está
   la identidad — color, tipografía y el ritmo editorial de las secciones.
   Todo sale de los tokens de :root, así que cambiar la piel del sitio es tocar ese
   bloque y nada más.
   ========================================================================== */

:root {
  /* Paleta. Fondo tostado oscuro, tinta crema y un solo acento de terracota. */
  --bg: #17130F;
  --bg-raised: #1D1813;
  --ink: #F0E9DE;
  --ink-body: #DCD4C7;
  --ink-soft: #ABA294;
  --muted: #8A8074;
  --faint: #6B6357;
  --line: #2C2620;
  --accent: #C97B4A;
  --accent-ink: #17130F;
  --thumb: #241E18;

  /* Tipografía */
  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Ritmo */
  --section-y: clamp(56px, 8vw, 92px);
  --radius: 2px;
}

/* --- Base -------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(240, 233, 222, .3); }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }
a.plain, .navbar a, .footer-meta a, .postcard a { border-bottom: none; }

img { max-width: 100%; }

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

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border: none; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- Piezas tipográficas ------------------------------------------------ */
.display-serif { font-family: var(--font-display); font-weight: 500; }
.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}

h1.hero {
  font-family: var(--font-display); font-weight: 500;
  font-size: 58px; line-height: 1.06; letter-spacing: -.022em; text-wrap: pretty;
  margin: 0;
}

h2.sec {
  font-family: var(--font-display); font-weight: 500;
  font-size: 38px; line-height: 1.1; letter-spacing: -.015em; text-wrap: pretty;
  margin: 0;
}

h3.sub {
  font-family: var(--font-display); font-weight: 500;
  font-size: 26px; line-height: 1.18; letter-spacing: -.01em;
  margin: 0;
}

.lede {
  font-style: italic; font-size: 17px; font-weight: 400; line-height: 1.55;
  color: var(--ink-soft); text-wrap: pretty;
}

/* Un énfasis dentro de un titular. En el titular grande va en color —es el único
   sitio de la página donde el acento aparece dentro del texto, y por eso se lee
   como un subrayado— y en los de sección se queda en cursiva.

   La cursiva es la de la serifa del texto: la letra de los titulares no tiene, y el
   navegador se la inventaría inclinando las rectas. */
h1 em, h1 i, h2 em, h2 i, h3 em, h3 i { font-family: var(--font-body); font-style: italic; font-weight: 400; }
h1.hero em, h1.hero i { color: var(--accent); }

.story { font-size: 20px; font-weight: 400; line-height: 1.68; color: var(--ink-body); }
.story p { margin: 0 0 26px; text-wrap: pretty; }
.story p:last-child { margin-bottom: 0; }
.story h2, .story h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); margin: 40px 0 16px; }
.story h2 { font-size: 32px; line-height: 1.14; }
.story h3 { font-size: 25px; line-height: 1.2; }
.story ul, .story ol { margin: 0 0 26px; padding-left: 22px; }
.story li { margin-bottom: 8px; }
.story img { border-radius: var(--radius); margin: 8px 0; }
.story blockquote {
  margin: 0 0 26px; padding-left: 26px; border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-size: 26px; line-height: 1.3; color: var(--ink);
}
.story code { font-family: var(--font-mono); font-size: .85em; color: var(--accent); }
.story hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; opacity: 1; }

/* Capitular: abre un texto largo como abre un reportaje. Se aplica al primer
   parrafo y no a una clase suelta, porque el texto viene del editor y ahi no hay
   forma de marcar una linea concreta. */
.dropcap::first-letter,
.story--lead > p:first-child::first-letter {
  font-family: var(--font-display); font-size: 76px; line-height: .82;
  float: left; margin: 6px 12px 0 0; color: var(--accent);
}

.pullquote {
  padding-left: 26px; border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-size: 30px; line-height: 1.28; color: var(--ink);
  margin: 0;
}

/* --- Secciones ----------------------------------------------------------
   `band` pone el aire vertical. Los tonos del catálogo (claro / oscuro / marca) se
   resuelven redefiniendo los tokens dentro de la sección, no repintando cada
   elemento: así un bloque entero se invierte sin tocar sus reglas.               */
.band { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.band--tight { padding-top: calc(var(--section-y) * .6); padding-bottom: calc(var(--section-y) * .6); }

.band--paper {
  --bg: #F0E9DE;
  --bg-raised: #E6DECF;
  --ink: #17130F;
  --ink-body: #2E2820;
  --ink-soft: #5C5348;
  --muted: #6B6357;
  --faint: #857B6E;
  --line: rgba(23, 19, 15, .16);
  --thumb: rgba(23, 19, 15, .07);
  background: var(--bg);
  color: var(--ink);
}

.band--accent {
  --bg: #C97B4A;
  --bg-raised: #BE7043;
  --ink: #17130F;
  --ink-body: #241C15;
  --ink-soft: #3E3226;
  --muted: #4C3E30;
  --faint: #5C4C3B;
  --line: rgba(23, 19, 15, .22);
  --thumb: rgba(23, 19, 15, .10);
  --accent: #17130F;
  background: var(--bg);
  color: var(--ink);
}

/* Los enlaces de una banda invertida se repintan, pero los botones NO: ellos ya
   traen su color del token y volver a fijarlo aqui los dejaria con el texto del
   mismo color que su fondo. Mismo motivo para el enlace con flecha. */
.band--paper a:not([class*="btn-"]):not(.link-arrow),
.band--accent a:not([class*="btn-"]):not(.link-arrow) { color: var(--ink); border-bottom-color: rgba(23, 19, 15, .3); }
.band--paper a:not([class*="btn-"]):not(.link-arrow):hover { color: var(--accent); border-bottom-color: var(--accent); }
.band--accent a:not([class*="btn-"]):not(.link-arrow):hover { color: var(--ink); border-bottom-color: var(--ink); }

/* El pintor de bloques del núcleo agrupa los bloques estrechos en una fila con
   estas dos clases. Son suyas, no del tema: hay que definirlas o los bloques que
   van uno al lado del otro salen con el doble de aire y con su propio fondo. */
.fx-section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.fx-col-block > .band,
.fx-col-block > section { padding: 0; background: none; }

.measure { max-width: 760px; }
.measure-narrow { max-width: 640px; }

/* --- Filete divisorio ----------------------------------------------------
   En la maqueta hay un asterisco centrado sobre una línea entre sección y sección.
   Aquí no se puede meter a mano: las secciones son bloques que el editor coloca en
   el orden que quiera. Así que lo pone el CSS a partir de la segunda, y se calla
   cuando la siguiente trae fondo propio — un cambio de color ya separa de sobra.  */
.rule { display: flex; align-items: center; gap: 14px; color: var(--faint); }
.rule span.l { flex: 1; height: 1px; background: var(--line); }

main > section + section:not(.band--paper, .band--accent) {
  position: relative;
  border-top: 1px solid var(--line);
}
main > section + section:not(.band--paper, .band--accent)::before {
  content: "✳";
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--bg); padding: 0 12px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--faint);
}

/* Detrás de una banda de color no hace falta filete. El `.band` de más al final no
   sobra: la regla de arriba lleva un :not() con lista, que puntúa como una sola
   clase, y sin ese remate estas dos perderían por especificidad y no taparían nada. */
main > .band--paper + section.band,
main > .band--accent + section.band { border-top: none; }
main > .band--paper + section.band::before,
main > .band--accent + section.band::before { content: none; }

/* --- Cabecera ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(23, 19, 15, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.brand img { height: 30px; width: auto; }

.nav-link-q { color: var(--ink-soft); font-size: 15px; }
.nav-link-q:hover, .nav-link-q.is-active { color: var(--accent); }
.nav-link-q.is-active { border-bottom: 1px solid var(--accent); }

.btn-subscribe {
  display: inline-block; background: var(--ink); color: var(--bg);
  border-radius: var(--radius); padding: 9px 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.btn-subscribe:hover { background: var(--accent); color: var(--bg); }

.navbar-toggler { color: var(--ink-soft); box-shadow: none !important; min-height: 44px; padding: 0 0 0 10px; }

/* Submenús: en escritorio se despliegan al pasar el ratón; en móvil, plegados
   dentro del propio menú, que es donde el visitante ya está mirando. */
.nav-sub { list-style: none; margin: 0; padding: 0; }

@media (min-width: 992px) {
  .has-sub { position: relative; }
  .nav-sub {
    position: absolute; top: 100%; left: 0; min-width: 210px;
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
  }
  .has-sub:hover > .nav-sub, .has-sub:focus-within > .nav-sub {
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-sub a { display: block; padding: 7px 16px; font-size: 14.5px; color: var(--ink-soft); }
  .nav-sub a:hover { color: var(--accent); }
}

/* Menú desplegado en el móvil: todo se toca con el dedo, con al menos 48 px de alto, y si
   no cabe se desplaza dentro del menú. */
@media (max-width: 991.98px) {
  #nav { max-height: calc(100dvh - 76px); overflow-y: auto; }
  .navbar-nav { padding-bottom: 20px; }
  .navbar-nav > .nav-item:not(.nav-item--extra) { border-bottom: 1px solid var(--line); }
  .nav-link-q { display: flex; align-items: center; min-height: 54px; font-size: 19px; color: var(--ink); }
  .nav-link-q.is-active { border-bottom: none; }
  .nav-sub { padding: 0 0 8px 16px; }
  .nav-sub a { min-height: 48px; font-size: 17px; color: var(--ink-soft); }
  .social-row { gap: 4px; margin-left: -12px; font-size: 20px; }
  .social-row a { align-items: center; justify-content: center; width: 48px; height: 48px; }
  .btn-subscribe { display: block; padding: 17px 16px; font-size: 13px; text-align: center; }
}

.lang { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; }
.lang a { color: var(--muted); }
.lang .is-on { color: var(--ink); }
.lang .sep { color: var(--faint); }

/* El idioma en la barra del móvil, a la vista sin abrir el menú. */
@media (max-width: 991.98px) {
  .lang--bar { gap: 0; font-size: 13px; }
  .lang--bar a, .lang--bar .is-on { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; }
  .lang--bar .sep { margin: 0 -4px; }
}

.social-row { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.social-row a { color: var(--muted); display: inline-flex; }
.social-row a:hover { color: var(--accent); }

/* --- Botones -------------------------------------------------------------- */
.btn-q {
  display: inline-block; background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink); border-radius: var(--radius); padding: 13px 22px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.btn-q:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.btn-ghost {
  display: inline-block; background: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 22px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.link-arrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); border-bottom: none;
}
.link-arrow:hover { color: var(--ink); }

/* --- Imágenes ------------------------------------------------------------- */
.portrait {
  width: 100%; height: 400px; object-fit: cover; object-position: center 72%;
  border-radius: var(--radius); display: block;
}
.caption {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin: 8px 0 0;
}
.shot { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); display: block; }

/* --- Filas de enlaces (escritos, entradas, cualquier lista con fecha) ------ */
.row-item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 32px;
  padding: 20px 0; border-top: 1px solid var(--line);
  color: var(--ink);
}
.row-item:last-child { border-bottom: 1px solid var(--line); }
.row-item:hover { color: var(--accent); }
.row-item .t { font-size: 22px; font-weight: 400; text-wrap: pretty; }
.row-item .d { grid-column: 1; font-style: italic; font-size: 16px; font-weight: 400; color: var(--muted); text-wrap: pretty; }
.stamp { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--faint); align-self: center; }

/* --- Filas con miniatura (entrevistas, apariciones) ------------------------ */
.talk {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 0 24px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink);
}
.talk:last-child { border-bottom: 1px solid var(--line); }
.talk:hover { color: var(--accent); }
.talk__t { font-size: 21px; font-weight: 400; text-wrap: pretty; }
.talk__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

.thumb {
  width: 96px; height: 66px; background: var(--thumb); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--faint);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- Listas sueltas -------------------------------------------------------- */
.list-plain { list-style: none; padding: 0; margin: 0; }
.dot { color: var(--accent); }
.list-loose { font-size: 19px; font-weight: 400; line-height: 1.6; color: var(--ink-body); }
.list-loose li { display: flex; gap: 14px; }

/* --- Tarjetas -------------------------------------------------------------- */
.card-q {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: var(--bg-raised); height: 100%;
}
.card-q__icon { width: 34px; height: 34px; object-fit: contain; margin-bottom: 16px; }
.card-q__t { font-family: var(--font-display); font-size: 23px; line-height: 1.2; margin: 0 0 10px; }
.card-q__x { font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* --- Cifras ---------------------------------------------------------------- */
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat__n { font-family: var(--font-display); font-size: clamp(38px, 5vw, 56px); line-height: 1; letter-spacing: -.02em; }
.stat__l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* --- Logotipos -------------------------------------------------------------- */
.logo-cell {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-height: 96px;
}
.logo-cell img { max-height: 42px; width: auto; opacity: .75; }
.logo-cell:hover img { opacity: 1; }

/* --- Formularios ------------------------------------------------------------ */
.form-control-q {
  width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid #3A332C;
  border-radius: var(--radius); padding: 14px 15px; color: var(--ink);
  font-family: var(--font-body); font-size: 16px;
}
.form-control-q:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .06); color: var(--ink); }
.form-control-q::placeholder { color: var(--faint); }
.band--paper .form-control-q, .band--accent .form-control-q { background: rgba(23, 19, 15, .05); border-color: var(--line); }

.field-label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.field-error { display: block; font-size: 14px; color: var(--accent); margin-top: 6px; }
.field-help { display: block; font-size: 14px; color: var(--faint); margin-top: 6px; }

.btn-send {
  background: var(--ink); color: var(--bg); border: none; border-radius: var(--radius);
  padding: 14px 22px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
}
.btn-send:hover { background: var(--accent); color: var(--bg); }

.notice { padding: 13px 16px; border-radius: var(--radius); font-size: 16px; margin-bottom: 20px; }
.notice--ok { border: 1px solid var(--accent); color: var(--ink); }
.notice--bad { border: 1px solid #A8493A; color: var(--ink); }

/* --- Preguntas plegadas ------------------------------------------------------ */
.acc .accordion-item { background: none; border: none; border-top: 1px solid var(--line); }
.acc .accordion-item:last-child { border-bottom: 1px solid var(--line); }
.acc .accordion-button {
  background: none; color: var(--ink); box-shadow: none;
  font-family: var(--font-body); font-size: 21px; font-weight: 400; padding: 20px 0;
}
.acc .accordion-button:not(.collapsed) { color: var(--accent); }
.acc .accordion-button::after {
  width: 12px; height: 12px; background-size: 12px;
  /* La flecha de Bootstrap es azul y en SVG incrustado: se sustituye por una en
     el color del tema, que es lo único que no se puede repintar con CSS. */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238A8074'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.acc .accordion-body { padding: 0 0 22px; font-size: 18px; font-weight: 400; line-height: 1.65; color: var(--ink-soft); }

/* --- Testimonios --------------------------------------------------------------- */
.said { border-top: 1px solid var(--line); padding-top: 22px; height: 100%; }
.said__q { font-family: var(--font-display); font-size: 24px; line-height: 1.32; margin: 0 0 18px; text-wrap: pretty; }
.said__who { display: flex; align-items: center; gap: 12px; }
.said__pic { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.said__ini {
  width: 36px; height: 36px; border-radius: 50%; background: var(--thumb);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft);
}
.said__n { font-size: 16px; }
.said__r { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* --- Blog ----------------------------------------------------------------------- */
.chip {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.chip:hover, .chip.is-on { border-color: var(--accent); color: var(--accent); }
.chip__n { color: var(--faint); }

.postcard { height: 100%; display: flex; flex-direction: column; }
.postcard__img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.postcard__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.postcard__t { font-family: var(--font-display); font-size: 25px; line-height: 1.18; margin: 0 0 10px; }
.postcard:hover .postcard__t { color: var(--accent); }
.postcard__x { font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--ink-soft); margin: 0 0 14px; }
.postcard__more { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: auto; }

.postmeta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.postcover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); display: block; }
.postlede { font-style: italic; font-size: 21px; font-weight: 400; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; margin: 0; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager__link { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border-bottom: none; }
.pager__link.is-off { color: var(--faint); }
.pager__count { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--faint); }

/* --- La IP del visitante ---------------------------------------------------------- */
.ip {
  font-family: var(--font-mono); font-size: clamp(30px, 7vw, 62px);
  letter-spacing: -.01em; color: var(--accent); margin: 0 0 22px; word-break: break-all;
}

/* --- Pie ------------------------------------------------------------------------- */
footer.site-footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.footer-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.footer-links { font-size: 16px; font-weight: 400; }

/* --- Aparición al desplazar ---------------------------------------------------------
   Solo se esconde nada cuando el JS ha arrancado (body.js-ready). Sin JS, o si falla,
   la página se ve entera: una animación no puede dejar contenido invisible.        */
.js-ready [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js-ready [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --- Móvil ---------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  h1.hero { font-size: 38px; }
  h2.sec { font-size: 30px; }
  h3.sub { font-size: 22px; }
  .lede { text-align: left !important; }
  .story { font-size: 18px; }
  .pullquote { font-size: 24px; }
  .talk { grid-template-columns: 72px 1fr; }
  .talk .stamp { grid-column: 2; }
  .thumb { width: 72px; height: 52px; }
  .portrait { height: 280px; }
  .row-item { grid-template-columns: 1fr; }
  .row-item .stamp { grid-row: 1; justify-self: start; }
}

/* --- Proyectos ------------------------------------------------------------- */
.venture {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px);
  align-items: stretch; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line);
}
.venture:first-child { border-top: 0; padding-top: 0; }
.venture--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.venture--flip .venture__plate { order: 2; }

/* La placa: el único sitio claro de la página, y por eso es lo que se ve primero. */
.venture__plate {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--ink); border-radius: var(--radius);
  min-height: clamp(200px, 26vw, 340px); padding: clamp(28px, 4vw, 56px);
}
.venture__plate img { display: block; width: auto; max-width: min(100%, 300px); max-height: 130px; }
.venture__word {
  font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 500;
  letter-spacing: -.02em; line-height: 1; color: var(--bg);
}
.venture__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.venture__kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; line-height: 1.5;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.venture__name {
  font-family: var(--font-display); font-size: clamp(38px, 5vw, 58px); font-weight: 500;
  line-height: 1.02; letter-spacing: -.03em; margin: 0 0 16px;
}
.venture__tagline { font-size: clamp(20px, 2.1vw, 24px); line-height: 1.32; color: var(--ink); margin: 0 0 16px; text-wrap: pretty; }
.venture__text { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 22px; text-wrap: pretty; }
.venture__facts { display: flex; flex-wrap: wrap; gap: 14px clamp(32px, 4vw, 56px); margin: 0 0 22px; }
.venture__facts div { display: flex; flex-direction: column-reverse; }
.venture__facts dt {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.venture__facts dd { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; line-height: 1; letter-spacing: -.02em; margin: 0; }
.venture__quote { font-style: italic; font-size: 19px; line-height: 1.4; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 16px; margin: 0 0 24px; }
.venture__links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; }
.venture__links .link-arrow { display: inline-flex; align-items: center; min-height: 32px; }

.venture-pair { padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.venture-card { display: flex; flex-direction: column; height: 100%; }
.venture-card .venture__plate { min-height: clamp(150px, 16vw, 200px); }
.venture-card .venture__plate img { max-width: 150px; max-height: 60px; }
.venture-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 24px; }
.venture-card__body .venture__links { margin-top: auto; }
.venture-card__name { font-family: var(--font-display); font-size: clamp(27px, 3vw, 34px); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 12px; }

.venture-notes { border-top: 1px solid var(--line); padding-top: clamp(30px, 4vw, 44px); }
.venture-notes__t { margin-bottom: 8px; }
.venture-note {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 8px 32px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.venture-note__name { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -.015em; margin: 0; }
.venture-note .venture__links { justify-content: flex-end; }
.venture-more { margin: clamp(26px, 3vw, 36px) 0 0; }

@media (max-width: 767.98px) {
  .venture, .venture--flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .venture--flip .venture__plate { order: 0; }
  .venture__plate { min-height: 170px; }
  .venture__plate img { max-width: 220px; max-height: 96px; }
  .venture-note { grid-template-columns: minmax(0, 1fr); }
  .venture-note .venture__links { justify-content: flex-start; }
}
/* --- Piezas de la cabecera de pagina --------------------------------------- */
.badge-q {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  border: 1px solid var(--accent); border-radius: 999px; padding: 4px 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}

.price { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -.02em; }
.price__u { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }

/* La caja de captacion de la portada: un campo y un boton, sin marco de tarjeta. */
.capture { border-top: 1px solid var(--line); padding-top: 26px; max-width: 640px; }

/* La columna del titular se queda quieta mientras pasan los apartados de al lado.
   Solo en pantallas altas: en un movil no hay sitio y quedaria pegada arriba. */
@media (min-width: 768px) {
  .sticky-col { position: sticky; top: 110px; }
}
