/* ==========================================================
   Portfolio TPM — estilo editorial blanco y negro
   ========================================================== */
:root {
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --muted: #8a8a8a;
  --line: #d6d6d6;
  --paper: #ffffff;
  --panel: #ececec;
  --panel-2: #f5f5f5;
  --dark: #151515;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pad: clamp(20px, 5vw, 72px);
  --title: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Barra superior fija ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr; align-items: center;
  padding: 18px var(--pad);
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), padding .4s var(--ease);
}
.topbar.scrolled { border-color: var(--line); padding-block: 12px; }
.topbar a { position: relative; width: max-content; }
.topbar a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.topbar a:hover::after { transform: scaleX(1); transform-origin: left; }
.topbar .tiny { font-size: 9px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.4; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--ink); width: 0; }

/* ---------- Estructura de “slide” ---------- */
.slide {
  position: relative;
  min-height: 100vh;
  padding: 110px var(--pad) 70px;
  display: grid; align-items: center;
  border-bottom: 1px solid var(--line);
}
.slide.dark { background: var(--dark); color: #f2f2f2; border-color: #000; }
.slide.dark .muted, .slide.dark p { color: #a9a9a9; }

h1, h2, h3 { font-family: var(--title); font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.h-project { font-size: clamp(38px, 5.4vw, 76px); }
.h-project span { font-weight: 400; }
h3 { font-size: 13px; font-weight: 700; letter-spacing: .02em; margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; line-height: 1.65; }
.label { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* Bullets estilo "Details :" */
.details li { position: relative; padding-left: 22px; margin-bottom: 12px; font-size: 13px; line-height: 1.5; }
.details li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.dots { display: flex; gap: 6px; margin-top: 28px; }
.dots i { width: 10px; height: 10px; background: var(--ink); }
.dots i:nth-child(2) { background: #777; }
.dots i:nth-child(3) { background: #c4c4c4; }
.dark .dots i { background: #fff; }
.dark .dots i:nth-child(2) { background: #888; }
.dark .dots i:nth-child(3) { background: #444; }

.vline { width: 1px; background: currentColor; opacity: .5; align-self: stretch; }
.vertical {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 10px; letter-spacing: .08em; color: var(--muted); max-height: 260px;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; padding: 4px 9px; opacity: .8; }

.frame { overflow: hidden; position: relative; background: var(--panel); }
.frame img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.frame:hover img { transform: scale(1.04) !important; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Cortina que se retira para descubrir la imagen */
.reveal-img::after, .reveal-side::after {
  content: ""; position: absolute; inset: -1px; z-index: 2; background: var(--paper);
  transition: transform 1.3s var(--ease); transition-delay: inherit;
}
.reveal-img::after { transform-origin: bottom; }
.reveal-side::after { transform-origin: right; }
.dark .reveal-img::after, .dark .reveal-side::after { background: var(--dark); }
.l5 .panel .reveal-img::after, .hero-right .reveal-side::after { background: var(--panel); }
.reveal-img.in::after { transform: scaleY(0); }
.reveal-side.in::after { transform: scaleX(0); }
.reveal-img.in img, .reveal-side.in img { transform: scale(1); }
.line-grow { transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease); }
.line-grow.in { transform: scaleY(1); }
[data-delay="1"] { transition-delay: .12s; }
[data-delay="2"] { transition-delay: .24s; }
[data-delay="3"] { transition-delay: .36s; }
[data-delay="4"] { transition-delay: .48s; }

/* Título del hero letra por letra */
.split .line { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; opacity: 0; transform: translateY(60%); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.split.in .ch { opacity: 1; transform: none; }

/* ==========================================================
   HERO
   ========================================================== */
.hero { grid-template-columns: 1fr 1.25fr; gap: 0; padding: 0; }
.hero-left { padding: 130px var(--pad) 60px; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 1.2; }
.brand .logo { width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--title); font-weight: 800; }
.hero h1 { font-size: clamp(44px, 6.2vw, 104px); white-space: nowrap; line-height: .92; margin: 40px 0 34px; }
.hero-meta { display: flex; gap: 18px; align-items: stretch; }
.hero-meta .circles { display: flex; gap: 4px; }
.hero-meta .circles span { width: 24px; height: 24px; border: 1px solid var(--ink); border-radius: 50%; font-size: 9px; display: grid; place-items: center; }
.hero-right { position: relative; height: 100%; min-height: 100vh; background: var(--panel); display: grid; align-items: center; padding: 110px 0 60px 0; }
.hero-right .frame { height: 62vh; margin-left: -4vw; box-shadow: 0 30px 60px -40px rgba(0,0,0,.4); }
.scroll-cue { position: absolute; right: var(--pad); bottom: 36px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 46px; background: var(--ink); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ==========================================================
   ÍNDICE
   ========================================================== */
.index { grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
.index .frame { height: 72vh; }
.index h2 { font-size: clamp(36px, 4.6vw, 64px); }
.index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; margin-top: 50px; }
.index-grid a { display: block; border-top: 1px solid var(--line); padding-top: 14px; transition: padding .5s var(--ease); }
.index-grid a:hover { padding-left: 10px; }
.index-grid .num { font-size: 12px; color: var(--muted); }
.index-grid h3 { margin: 4px 0 4px; font-size: 14px; }

/* ==========================================================
   ABOUT (métricas)
   ========================================================== */
.about { grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); }
.about p.lead { font-family: var(--title); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; font-weight: 500; color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stats div { padding: 28px 0; border-bottom: 1px solid var(--line); }
.stats div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; }
.stats div:nth-child(even) { padding-left: 28px; }
.stats b { font-family: var(--title); font-size: clamp(38px, 4vw, 58px); font-weight: 800; display: block; line-height: 1; }

/* ==========================================================
   LAYOUTS DE PROYECTO
   ========================================================== */
/* L1: texto + imagen alta a la derecha */
.l1 { grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 80px); }
.l1 .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.l1 .thumbs .frame { height: 150px; }
.l1 .big { height: 76vh; }

/* L2: detalles + escalera de imágenes */
.l2 { grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 5vw, 80px); }
.l2 .stack { display: grid; grid-template-columns: 1.1fr .9fr auto; gap: 16px; height: 74vh; }
.l2 .stack .col { display: grid; gap: 16px; grid-template-rows: 1fr 1fr auto; }
.l2 .note { border: 1px solid var(--ink); padding: 14px; font-size: 11.5px; }

/* L3: banda oscura */
.l3 { grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 80px); }
.l3 h2 { font-size: clamp(54px, 7vw, 104px); }
.l3 .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.l3 .frame { height: 52vh; }
.l3 .with-line { display: grid; grid-template-columns: auto auto 1fr; gap: 24px; margin-top: 50px; }

/* L4: imagen central con tarjeta flotante */
.l4 { grid-template-columns: .9fr 1.4fr auto; gap: clamp(30px, 4vw, 60px); }
.l4 .center { position: relative; }
.l4 .center .frame { height: 60vh; }
.l4 .card { position: absolute; right: 8%; bottom: -34px; background: #fff; border: 1px solid var(--ink); padding: 18px 22px; width: min(320px, 70%); font-size: 12px; box-shadow: 0 20px 40px -30px rgba(0,0,0,.5); }
.l4 .mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.l4 .mini .frame { height: 110px; }

/* L5: panel gris a la izquierda */
.l5 { grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; }
.l5 .panel { background: var(--panel); padding: 120px var(--pad) 70px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.l5 .panel .frame { height: 42vh; margin-top: 30px; }
.l5 .side { padding: 120px var(--pad) 70px; display: grid; gap: 30px; align-content: center; }
.l5 .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.l5 .pair .frame { height: 170px; }

/* L6: imagen panorámica + miniaturas laterales */
.l6 { grid-template-rows: auto 1fr; align-items: start; gap: 40px; }
.l6 .head { display: grid; grid-template-columns: 1fr 1px 1fr 1fr; gap: 34px; align-items: start; }
.l6 .body { display: grid; grid-template-columns: 1fr 3fr .8fr; gap: 24px; }
.l6 .wide { height: 58vh; }
.l6 .side-thumbs { display: grid; gap: 16px; }
.l6 .side-thumbs .frame { height: calc(29vh - 8px); }

/* L7: título vertical */
.l7 { grid-template-columns: auto 1.2fr 1fr; gap: clamp(24px, 4vw, 60px); }
.l7 .v-title { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(46px, 5.4vw, 80px); }
.l7 .frame.tall { height: 76vh; }
.l7 .right { display: grid; gap: 30px; }
.l7 .right .frame { height: 170px; }
.l7 table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.l7 th { text-align: left; border-bottom: 1px solid var(--ink); padding: 6px 0; font-weight: 700; }
.l7 td { border-bottom: 1px solid var(--line); padding: 8px 0; color: var(--ink-soft); }

/* Metodología (dark) */
.method { grid-template-rows: auto 1fr; gap: 60px; align-items: start; }
.method h2 { font-size: clamp(44px, 5.6vw, 84px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #333; }
.steps > div { padding: 30px 24px 10px 0; border-right: 1px solid #333; transition: background .5s var(--ease); }
.steps > div:not(:first-child) { padding-left: 24px; }
.steps > div:last-child { border: 0; }
.steps > div:hover { background: #1f1f1f; }
.steps .n { font-family: var(--title); font-size: 46px; font-weight: 800; color: #3a3a3a; line-height: 1; margin-bottom: 20px; transition: color .5s var(--ease); }
.steps > div:hover .n { color: #fff; }
.steps h3 { color: #fff; }

/* Cierre */
.thanks { text-align: center; align-content: center; gap: 40px; }
.thanks h2 { font-size: clamp(40px, 6vw, 92px); line-height: .98; }
.thanks .frame { height: 42vh; width: min(1100px, 100%); margin: 0 auto; }
.thanks .card { background: #fff; border: 1px solid var(--ink); padding: 18px 26px; width: max-content; max-width: 90%; margin: -50px auto 0; position: relative; font-size: 12px; }
.contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.btn { border: 1px solid var(--ink); padding: 14px 26px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; position: relative; overflow: hidden; z-index: 0; transition: color .5s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.btn:hover { color: #fff; }
.btn:hover::before { transform: none; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid::before { background: #fff; }
.btn.solid:hover { color: var(--ink); }

footer { padding: 26px var(--pad); display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto auto; gap: 16px; }
  .topbar .tiny, .topbar .hide-m { display: none; }
  .slide { min-height: auto; padding: 90px 20px 60px; }
  .hero, .index, .about, .l1, .l2, .l3, .l4, .l5, .l7 { grid-template-columns: 1fr; }
  .hero-left { padding: 110px 20px 40px; }
  .hero-right { min-height: auto; padding: 0 20px 60px; background: linear-gradient(var(--paper) 30%, var(--panel) 30%); }
  .hero-right .frame { margin: 0; height: 46vh; }
  .scroll-cue { display: none; }
  .index .frame, .l1 .big, .l7 .frame.tall { height: 44vh; }
  .l2 .stack { height: auto; grid-template-columns: 1fr 1fr; }
  .l2 .stack > .frame { height: 50vh; }
  .l2 .stack .vertical { display: none; }
  .l4 .card { position: static; width: auto; margin-top: -30px; margin-inline: 16px; }
  .l4 .vertical { display: none; }
  .l5 .panel, .l5 .side { padding: 80px 20px 40px; }
  .l5 .side { padding-top: 40px; }
  .l6 .head { grid-template-columns: 1fr; }
  .l6 .head .vline { display: none; }
  .l6 .body { grid-template-columns: 1fr; }
  .l6 .body .vertical { display: none; }
  .l6 .wide { height: 40vh; }
  .l6 .side-thumbs { grid-template-columns: 1fr 1fr; }
  .l6 .side-thumbs .frame { height: 140px; }
  .l7 .v-title { writing-mode: horizontal-tb; transform: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps > div { padding: 24px 16px !important; border-bottom: 1px solid #333; }
  .index-grid, .l3 .cols { grid-template-columns: 1fr; }
  .l3 .with-line { grid-template-columns: auto 1fr; }
  .l3 .with-line .vertical { display: none; }
  .thanks .card { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .split .line { display: inline-block; white-space: nowrap; }
.split .ch { opacity: 1; transform: none; }
  .reveal-img::after, .reveal-side::after { display: none; }
}

/* Las imágenes con parallax siguen el scroll sin retraso */
.frame[data-parallax].in img { transition: transform .15s linear; }

/* ---------- Portada: retrato + collage ---------- */
.hero-collage { position: relative; height: 72vh; margin-left: 0; margin-right: var(--pad); }
.hero-portrait {
  position: absolute; right: 10%; top: 0; width: min(30vw, 440px); height: 100%;
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.55); z-index: 2;
}
.hero-portrait img { object-position: 57% 30%; }
/* En blanco y negro; al pasar el mouse recupera su color */
.hero-portrait img { transition: transform 1.6s var(--ease), filter 1.2s var(--ease); }
.hero-portrait:hover img { filter: grayscale(0) contrast(1); }
.hero-back { position: absolute; left: 6%; bottom: 8%; width: 42%; height: 40%; z-index: 1; }
.hero-tag {
  position: absolute; left: 30%; bottom: -26px; z-index: 3;
  background: #fff; border: 1px solid var(--ink); padding: 14px 20px;
  display: grid; gap: 2px; font-size: 12px; box-shadow: 0 20px 40px -30px rgba(0,0,0,.5);
}
.hero-vert { position: absolute; right: 0; top: 0; }
.hero-right .hero-portrait.reveal-side::after { background: var(--panel); }

@media (max-width: 900px) {
  .hero-collage { margin: 0; height: 70vh; }
  .hero-portrait { width: 72%; right: 0; }
  .hero-back { left: 0; width: 50%; height: 30%; bottom: 10%; }
  .hero-tag { left: 6%; bottom: -20px; }
  .hero-vert { display: none; }
}

/* ---------- Capturas de producto (a color, sin recortar el contenido) ---------- */
figure { margin: 0; }
.shot { background: #f7f7f5; border: 1px solid var(--line); cursor: zoom-in; }
.shot img { filter: none; object-fit: cover; object-position: top left; }
.shot.big img { object-position: top center; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4vw;
  background: rgba(17,17,17,.88); opacity: 0; pointer-events: none; cursor: zoom-out;
  transition: opacity .45s var(--ease);
}
.lightbox img { width: auto; height: auto; max-width: 92vw; max-height: 88vh; object-fit: contain; filter: none; transform: scale(.96); transition: transform .6s var(--ease); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox.open img { transform: none; }

/* Las capturas se muestran completas en cualquier ancho de pantalla */
.l1 .shot.big, .l1 .thumbs .shot { height: auto; align-self: center; }
.shot img { height: auto; object-fit: contain; }
.shot:hover img, .shot img { transform: none !important; }
.l1 .shot.big img { max-height: 80vh; width: 100%; object-fit: contain; }
.l1 .thumbs { align-items: start; }
.l1 .thumbs .shot { align-self: start; }

/* ---------- Imágenes de marca: B/N, color al pasar el mouse ---------- */
.color-hover img { transition: transform 1.6s var(--ease), filter 1s var(--ease); }
.color-hover:hover img { filter: grayscale(0) contrast(1); }
[data-zoom] { cursor: zoom-in; }

/* ---------- Imágenes que se muestran completas (sin recorte) ---------- */
.fit { height: auto !important; }
.fit img { height: auto; object-fit: contain; }
.fit img, .fit:hover img { transform: none !important; }
.l2 .fit-stack { height: auto; grid-template-columns: 1fr 1fr auto; align-items: start; }
.l2 .fit-stack .col { grid-template-rows: none; align-content: start; }
@media (max-width: 900px) {
  .l2 .fit-stack { grid-template-columns: 1fr 1fr; }
}

/* Premio App Store en la sección Player */
.award { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; margin-top: 44px; padding-top: 28px; border-top: 1px solid #2c2c2c; }
.award .frame { background: transparent; }
@media (max-width: 900px) { .award { grid-template-columns: 110px 1fr; } }

/* Índice: la imagen vertical se ve completa y centrada */
.index .index-fit { justify-self: center; width: auto; max-width: 100%; }
.index .index-fit img { width: auto; max-width: 100%; max-height: 80vh; }
@media (max-width: 900px) { .index .index-fit img { max-height: 70vh; } }

/* Mundial: el récord de audiencia se ve completo */
.l1 .record-fit { justify-self: center; align-self: center; width: auto; max-width: 100%; }
.l1 .record-fit img { width: auto; max-width: 100%; max-height: 82vh; }

/* ---------- Perfiles: capturas de celular completas ---------- */
.phones-layout { grid-template-columns: 1fr 1.1fr auto; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 40px); align-items: start; justify-items: center; }
.phones .phone:nth-child(2) { margin-top: 60px; }
.phone { position: relative; width: 100%; max-width: 300px; }
.phone img {
  height: auto; max-height: 72vh; object-fit: contain;
  border-radius: 22px; border: 6px solid #111; background: #000;
  box-shadow: 0 40px 60px -35px rgba(0,0,0,.6);
}
.phone figcaption { margin-top: 14px; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-align: center; }
.phone.reveal-img::after { border-radius: 22px; }
@media (max-width: 900px) {
  .phones-layout { grid-template-columns: 1fr; }
  .phones .phone:nth-child(2) { margin-top: 30px; }
  .phones-layout > .vertical { display: none; }
}

/* ---------- Data-driven platform: logos del stack ---------- */
.l5 .panel .shot, .l5 .side .shot { width: 100%; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.logo-tile { height: 64px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; padding: 10px 14px; overflow: hidden; transition: border-color .4s var(--ease), transform .4s var(--ease); }
.logo-tile img { width: auto; height: auto; max-width: 100%; max-height: 34px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .6s var(--ease), opacity .6s var(--ease); }
.logo-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.logo-tile:hover img { filter: none; opacity: 1; }
.tile-statsig { background: rgb(50, 92, 168); }
.tile-statsig img { opacity: 1; filter: none; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.tile-bq img { max-height: 44px; }

/* ==========================================================
   RESEARCH — una sola slide
   ========================================================== */
.research { display: block; min-height: auto; }
.rs-head { display: grid; grid-template-columns: 1fr minmax(260px, 440px); gap: 40px; align-items: end; margin-bottom: 34px; }
.rs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rs-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); background: #fff; transition: border-color .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.rs-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(0,0,0,.4); }
.rs-card figure { height: 190px; background: #f3f3f3; border: 0; border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.rs-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: none !important; }
.rs-body { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; }
.rs-body h3 { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.25; margin: 0; }
.rs-body .small { font-size: 12.5px; }
.rs-link { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; width: max-content; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.rs-link:hover { opacity: .6; }

.rs-feature { grid-column: span 2; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
.rs-feature figure { height: 100%; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line); }
.r-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.r-stats div { border: 1px solid var(--line); padding: 10px; display: grid; gap: 4px; align-content: start; }
.r-stats b { font-family: var(--title); font-size: clamp(16px, 1.4vw, 22px); font-weight: 800; }
.r-stats span { font-size: 10.5px; line-height: 1.4; color: var(--muted); }

@media (max-width: 1100px) {
  .rs-grid { grid-template-columns: 1fr 1fr; }
  .rs-feature { grid-column: span 2; }
}
@media (max-width: 900px) {
  .rs-head { grid-template-columns: 1fr; gap: 14px; }
  .rs-grid { grid-template-columns: 1fr; }
  .rs-feature { grid-column: auto; grid-template-columns: 1fr; }
  .rs-feature figure { min-height: 0; height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
}
.rs-feature figure { height: 340px; min-height: 0; }
.rs-feature { align-items: stretch; }
.rs-grid > .rs-card:not(.rs-feature) figure { height: 170px; }
.rs-card .rs-logo { background: #fff; }
.rs-card .rs-logo img { object-fit: contain; object-position: center; padding: 14px; }
.rs-card figure { display: block; }
.rs-card figure img { height: 100% !important; }

/* She Ships: banner a lo ancho con los colores de la portada */
.rs-banner { grid-column: 1 / -1; grid-template-columns: minmax(260px, 420px) 1fr; grid-template-rows: none; background: #1a1a2b; border-color: #1a1a2b; color: #f2f2f2; }
.rs-banner:hover { border-color: #c7a95a; }
.rs-grid .rs-banner figure.rs-cover { height: 230px; border: 0; background: #1a1a2b; }
.rs-banner .rs-cover img { object-fit: contain; filter: none; }
.rs-banner .rs-body { align-content: center; padding: 26px 34px; }
.rs-banner .label { color: #c7a95a; }
.rs-banner h3 { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: .18em; text-transform: uppercase; color: #c7a95a; }
.rs-banner .rs-sub { font-size: 15px; color: #fff; }
.rs-banner .small { color: #b9b9c6; max-width: 560px; }
.rs-banner .rs-link { color: #c7a95a; }
@media (max-width: 900px) {
  .rs-banner { grid-template-columns: 1fr; }
  .rs-grid .rs-banner figure.rs-cover { height: 200px; }
}

/* ==========================================================
   ANTI-PIRACY
   ========================================================== */
.piracy { display: block; min-height: auto; }
.pz-head { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 40px; align-items: end; }
.pz-title { font-size: clamp(54px, 7vw, 104px); color: #fff; margin-top: 14px; }
.pz-stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 56px; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.pz-stats > div { padding: 30px 20px 26px 0; display: grid; gap: 10px; align-content: start; }
.pz-stats > div + div { padding-left: 22px; border-left: 1px solid #333; }
.pz-stats b { font-family: var(--title); font-size: clamp(32px, 3.2vw, 54px); font-weight: 800; color: #fff; line-height: 1; }
.pz-stats span { font-size: 12px; color: #9a9a9a; line-height: 1.5; }

.pz-flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; counter-reset: none; }
.pz-flow li { position: relative; padding: 22px 20px 24px; border: 1px solid #2c2c2c; background: #1b1b1b; transition: border-color .4s var(--ease), transform .5s var(--ease); }
.pz-flow li:hover { border-color: #777; transform: translateY(-4px); }
.pz-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); color: #666; font-size: 14px; }
.pz-flow span { font-family: var(--title); font-size: 13px; font-weight: 800; color: #5a5a5a; }
.pz-flow h4 { font-family: var(--title); font-size: 18px; color: #fff; margin: 10px 0 8px; }
.pz-flow p { font-size: 12.5px; line-height: 1.6; color: #a9a9a9; }

.pz-report { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: 40px; padding-top: 26px; border-top: 1px solid #2c2c2c; }
.pz-report .tags { margin: 0; color: #ddd; }

@media (max-width: 1100px) {
  .pz-stats { grid-template-columns: repeat(3, 1fr); }
  .pz-stats > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .pz-flow { grid-template-columns: 1fr 1fr; }
  .pz-flow li::after { display: none; }
  .pz-report { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 900px) {
  .pz-head { grid-template-columns: 1fr; gap: 16px; }
  .pz-stats { grid-template-columns: 1fr 1fr; }
  .pz-stats > div { padding: 22px 12px 20px 0 !important; border-left: 0 !important; }
  .pz-flow { grid-template-columns: 1fr; }
}

/* ---------- GenSig: resaltar founder ---------- */
.founder-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 9px 16px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.founder-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.founder .h-project { font-size: clamp(52px, 7vw, 110px); }
.founder-points { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; max-width: 520px; }
.founder-points li { border-top: 2px solid var(--ink); padding-top: 10px; display: grid; gap: 4px; }
.founder-points b { font-family: var(--title); font-size: 20px; font-weight: 800; }
.founder-points span { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.founder-row td { color: var(--ink); background: #f4f4f4; }
@media (max-width: 900px) { .founder-points { grid-template-columns: 1fr 1fr; } }

/* Foto de portada siempre a color */
.hero-portrait img, .hero-portrait:hover img { filter: none; }

/* Mundial: miniaturas completas (sin recorte) en cualquier pantalla */
.l1 .thumbs { align-items: start; }
.l1 .thumbs .wc-thumb { height: auto !important; }
.l1 .thumbs .wc-thumb img { height: auto; object-fit: contain; }

/* Player: clips con AI */
.ai-clip { background: transparent; overflow: visible; }
.ai-clip figcaption { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: #bdbdbd; }
.ai-pill { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #111; background: #fff; padding: 3px 8px; margin-top: 1px; }

/* Índice: imagen horizontal completa */
.index .index-wide { align-self: center; width: 100%; box-shadow: 0 40px 60px -40px rgba(0,0,0,.45); }
.index .index-wide img { width: 100%; height: auto; }
