/* Camilooh — el álbum de cromos. Colores y fuentes de la guía de marca. */

@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url('fonts/figtree-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url('fonts/figtree-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url('fonts/figtree-latin-700-normal.woff2') format('woff2'); }

:root {
  --verde: #0E9384;
  --tapa: #0A6F64;          /* tapas del álbum: fondos con texto encima */
  --tinta: #16181D;
  --rosa: #FF4F8B;
  --amarillo: #FFE066;
  --papel: #F1FAF8;          /* hojas del álbum */
  --blanco: #FFFFFF;          /* borde troquelado de los cromos */
  --gris: #4F5A61;
  --hueco: #9DB3AF;          /* línea punteada de los huecos */
  --linea: #CFDEDB;

  --f-titulo: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-texto: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ancho: 1080px;
  --radio-cromo: 14px;
  color-scheme: light;
  accent-color: var(--verde);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--verde) var(--papel); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 17px/1.6 var(--f-texto); caret-color: var(--verde); -webkit-font-smoothing: antialiased; }
::selection { background: var(--verde); color: var(--papel); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
h1, h2, h3 { margin: 0; font-family: var(--f-titulo); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 4px; }

.contenedor { width: 100%; max-width: calc(var(--ancho) + 40px); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: var(--papel); padding: 10px 14px; border-radius: 8px; z-index: 20; }
.saltar:focus { left: 8px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 15px/1 var(--f-texto); text-decoration: none; white-space: nowrap;
  padding: 14px 20px; border-radius: 999px; border: 2px solid var(--tinta);
  background: var(--tinta); color: var(--papel);
  transition: background-color .18s, color .18s, border-color .18s, transform .12s;
}
.boton:hover { background: var(--tapa); border-color: var(--tapa); }
.boton:active { transform: scale(.97); }
.boton svg { width: 16px; height: 16px; flex: none; }
.boton-linea { background: transparent; color: var(--tinta); }
.boton-linea:hover { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
@media (prefers-reduced-motion: reduce) { .boton { transition: none; } }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--papel); border-bottom: 1px solid transparent; transition: border-color .2s; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--papel); z-index: 11; }
.cabecera.con-borde { border-bottom-color: var(--linea); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.cabecera .marca { width: 116px; }
.menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 12px; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 999px; transition: background-color .15s; }
.menu a:hover { background: var(--blanco); }
@media (max-width: 520px) { .menu li.opcional { display: none; } .cabecera .marca { width: 104px; } .menu a { padding: 8px 10px; } }

/* ---------- Tapa del álbum ---------- */
.tapa { padding-block: clamp(20px, 3vw, 32px) 0; }
.tapa-frente {
  background: var(--tapa); color: var(--papel); border-radius: 22px;
  padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr; gap: 24px;
  position: relative; overflow: hidden;
}
.tapa-frente::after { /* lomo del álbum */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: rgba(0, 0, 0, .14);
}
.tapa-frente .logo-tapa { margin: 0; width: min(100%, 420px); grid-column: 1 / -1; }
.tapa-frente .bajada { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; max-width: 52ch; }

/* ---------- Hojas del álbum ---------- */
.hoja { padding-block: clamp(56px, 8vw, 96px); position: relative; }
.hoja + .hoja { border-top: 1px solid var(--linea); }
.hoja-cabeza { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.hoja-cabeza h2 { font-size: clamp(30px, 3.6vw, 42px); }
.hoja-cabeza p { color: var(--gris); max-width: 46ch; }

/* Página del dueño */
.dueno { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.dueno h2 { font-size: clamp(28px, 3.2vw, 38px); }
.dueno .acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dueno .pegatina-ojos { width: 120px; margin-top: 28px; background: var(--verde); border: 6px solid var(--blanco); border-radius: 18px; padding: 16px 14px; transform: rotate(-4deg); box-shadow: 0 1px 0 rgba(22, 24, 29, .06), 0 8px 18px rgba(22, 24, 29, .08); }
.campos { margin: 0; }
.campos div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0 6px; border-bottom: 1.5px dotted var(--hueco); }
.campos dt { font-size: 14px; color: var(--gris); }
.campos dd { margin: 0; font-weight: 600; font-size: 18px; color: var(--tapa); }
@media (max-width: 760px) { .dueno { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .campos div { grid-template-columns: 7em minmax(0, 1fr); } .campos dd { font-size: 16px; } }

/* ---------- Colección de juegos ---------- */
.coleccion { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 36px); align-items: start; }
.casilla { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.casilla-1 { grid-column: 1 / span 7; }
.casilla-2 { grid-column: 8 / span 5; }
.casilla-3 { grid-column: 8 / span 5; }
@media (max-width: 820px) { .casilla-1, .casilla-2, .casilla-3 { grid-column: 1 / -1; } }

.cromo {
  display: block; text-decoration: none; background: var(--blanco); border-radius: var(--radio-cromo); padding: 10px;
  box-shadow: 0 1px 0 rgba(22, 24, 29, .06), 0 10px 24px rgba(22, 24, 29, .10);
  transform: rotate(-1.4deg); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.cromo:hover, .cromo:focus-visible { transform: rotate(0deg) translateY(-4px); box-shadow: 0 1px 0 rgba(22, 24, 29, .06), 0 18px 36px rgba(22, 24, 29, .14); }
@media (prefers-reduced-motion: reduce) { .cromo { transition: none; } .cromo:hover, .cromo:focus-visible { transform: rotate(-1.4deg); } }
.cromo .imagen { border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; background: #EBDDC2; }
.cromo .imagen img { width: 100%; height: 100%; object-fit: cover; }
.cromo .pie-cromo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px 4px; }
.cromo .nombre { font: 800 22px/1 var(--f-titulo); letter-spacing: -.02em; }
.numero { font: 800 15px/1 var(--f-titulo); font-variant-numeric: tabular-nums; background: var(--amarillo); color: var(--tinta); border-radius: 999px; padding: 6px 10px; }

.leyenda { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding-inline: 4px; }
.leyenda p { color: var(--gris); max-width: 46ch; }
.leyenda .resumen { color: var(--tinta); font-size: 18px; }
.vida { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--gris); }
.vida li { display: inline-flex; align-items: center; gap: 6px; }
.vida li + li::before { content: ""; width: 18px; height: 1.5px; background: var(--hueco); }
.vida .hecho { color: var(--tapa); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--linea); background: var(--blanco); }

.hueco {
  border: 2px dashed var(--hueco); border-radius: var(--radio-cromo); aspect-ratio: 16 / 10;
  display: grid; place-items: center; position: relative; padding: 20px;
}
.hueco .numero-hueco { position: absolute; top: 12px; left: 14px; font: 800 28px/1 var(--f-titulo); color: var(--hueco); font-variant-numeric: tabular-nums; }
.hueco .ojos { width: min(46%, 160px); }
.hueco-chico { aspect-ratio: auto; min-height: 120px; }
.hueco-chico .numero-hueco { position: static; }

/* ---------- Sobre mí ---------- */
.sobre { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); }
.sobre h2 { font-size: clamp(30px, 3.6vw, 42px); }
.sobre .texto { display: flex; flex-direction: column; gap: 16px; max-width: 60ch; }
.sobre .texto .lead { font-size: 19px; }
.sobre .texto strong { font-weight: 700; color: var(--tapa); }
.sobre .portafolio { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 18px; border-top: 1.5px dotted var(--hueco); color: var(--gris); }
@media (max-width: 760px) { .sobre { grid-template-columns: 1fr; } }

/* ---------- Sobres de cromos (redes) ---------- */
.sobres li { display: flex; }
.sobres li > .sobre-red { flex: 1; }
.sobres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sobre-red {
  --c: var(--tapa); --t: var(--papel);
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 200px;
  padding: 30px 18px 26px; border-radius: 10px; background: var(--c); color: var(--t); text-decoration: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.sobre-red::before, .sobre-red::after { /* bordes sellados del sobre */
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .16) 0 4px, transparent 4px 8px);
}
.sobre-red::before { top: 0; border-radius: 10px 10px 0 0; }
.sobre-red::after { bottom: 0; border-radius: 0 0 10px 10px; }
.sobre-red .red { font: 800 26px/1 var(--f-titulo); letter-spacing: -.02em; }
.sobre-red .usuario { font-weight: 700; font-size: 15px; }
.sobre-red .para { font-size: 14px; line-height: 1.45; }
.sobre-red .abrir { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.sobre-red .abrir svg { width: 16px; height: 16px; }
.sobre-red:hover { transform: translateY(-6px) rotate(-1deg); }
.sobres li:nth-child(2) .sobre-red { --c: var(--rosa); --t: var(--tinta); }
.sobres li:nth-child(3) .sobre-red { --c: var(--amarillo); --t: var(--tinta); }
.sobres li:nth-child(4) .sobre-red { --c: var(--tinta); --t: var(--papel); }
@media (max-width: 900px) { .sobres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .sobres { grid-template-columns: 1fr; } .sobre-red { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .sobre-red { transition: none; } .sobre-red:hover { transform: none; } }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: #B9C9C6; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.pie .contenedor { display: flex; flex-direction: column; gap: 28px; }
.pie-arriba, .pie-abajo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.pie-abajo { padding-top: 22px; border-top: 1px solid #343A42; font-size: 14px; }
.pie-contacto { color: var(--papel); }
.pie-contacto a { font-weight: 700; overflow-wrap: anywhere; }
.pie .marca { width: 116px; }
.pie nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.pie a { color: var(--papel); }

/* ---------- Ojos ---------- */
.pupil { transition: transform .14s ease-out; }
@media (prefers-reduced-motion: reduce) { .pupil { transition: none; } }

/* ---------- Páginas de texto (privacidad) ---------- */
.documento { padding-block: 56px 96px; }
.documento .contenedor { max-width: calc(760px + 40px); display: flex; flex-direction: column; gap: 20px; }
.documento h1 { font-size: clamp(34px, 5vw, 48px); }
.documento h2 { font-size: 24px; margin-top: 24px; }
.documento p, .documento li { color: #2C3238; }
.documento ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.documento mark { background: var(--amarillo); padding: 0 4px; border-radius: 4px; }
.nota { background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; padding: 16px 18px; font-size: 15px; }

/* ---------- Colección: segunda figurita y hueco siguiente ---------- */
.casilla-2 .cromo:not(:hover):not(:focus-visible) { transform: rotate(1.6deg); }
.casilla-3 { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px clamp(20px, 3vw, 36px); align-items: center; }
.casilla-3 .hueco { aspect-ratio: 16 / 8; }
@media (max-width: 820px) { .casilla-3 { grid-template-columns: 1fr; } .casilla-3 .hueco { aspect-ratio: 16 / 9; } }
.leyenda .acciones { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Ficha de juego ---------- */
.volver { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--gris); margin-bottom: clamp(18px, 3vw, 28px); }
.volver:hover { color: var(--tinta); }
.volver svg { width: 16px; height: 16px; }
.ficha { padding-block: clamp(24px, 4vw, 40px) clamp(48px, 7vw, 80px); }
.ficha-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ficha-texto { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ficha-titulo { display: flex; align-items: center; gap: 16px; }
.ficha-icono { width: 76px; flex: none; background: var(--blanco); padding: 5px; border-radius: 22px; transform: rotate(-4deg); box-shadow: 0 1px 0 rgba(22, 24, 29, .06), 0 8px 18px rgba(22, 24, 29, .10); }
.ficha-icono img { border-radius: 17px; }
.ficha h1 { font-size: clamp(32px, 4vw, 44px); }
.ficha .resumen { font-size: 19px; max-width: 44ch; }
.ficha .acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.boton-pronto, .boton-pronto:hover { background: transparent; color: var(--gris); border: 2px dashed var(--hueco); cursor: default; }
@media (max-width: 820px) { .ficha-grid { grid-template-columns: 1fr; } }

.dos-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 72px); align-items: start; }
.dos-col > h2, .dos-col > div > h2 { font-size: clamp(28px, 3.2vw, 38px); }
.dos-col .intro { color: var(--gris); margin-top: 10px; max-width: 34ch; }
@media (max-width: 760px) { .dos-col { grid-template-columns: 1fr; } }

/* Capturas pegadas en la hoja */
.capturas { list-style: none; margin: 0; padding: 8px 0 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); align-items: start; }
.capturas li { background: var(--blanco); padding: 7px; border-radius: 16px; box-shadow: 0 1px 0 rgba(22, 24, 29, .06), 0 10px 22px rgba(22, 24, 29, .09); transform: rotate(-1.2deg); }
.capturas li:nth-child(even) { transform: rotate(1.2deg); }
.capturas img { width: 100%; border-radius: 10px; }
.pie-capturas { color: var(--gris); font-size: 14px; margin-top: 18px; }
@media (max-width: 700px) {
  .capturas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 12px 20px 18px; }
  .capturas li { flex: 0 0 62%; scroll-snap-align: center; }
}

/* Notas de diseño */
.notas { list-style: none; margin: 0; padding: 0; counter-reset: nota; }
.notas li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 6px 14px; padding: 18px 0 20px; border-bottom: 1.5px dotted var(--hueco); counter-increment: nota; }
.notas li:first-child { padding-top: 4px; }
.notas li::before { content: counter(nota, decimal-leading-zero); font: 800 22px/1.15 var(--f-titulo); color: var(--hueco); grid-row: span 2; font-variant-numeric: tabular-nums; }
.notas h3 { font-size: 20px; letter-spacing: -.01em; }
.notas p { color: var(--gris); max-width: 60ch; }

/* Novedades */
.novedades { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.novedades li { background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; padding: 16px 18px; display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 4px 18px; }
.novedades .version { font: 800 17px/1.3 var(--f-titulo); }
.novedades .version span { display: block; font: 600 14px/1.4 var(--f-texto); color: var(--gris); }
.novedades p { color: #2C3238; }
@media (max-width: 520px) { .novedades li { grid-template-columns: 1fr; } }

/* Soporte */
.soporte { background: var(--tapa); color: var(--papel); border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.soporte h2 { font-size: clamp(24px, 2.6vw, 30px); }
.soporte p { max-width: 52ch; margin-top: 8px; }
.soporte a { font-weight: 700; overflow-wrap: anywhere; }
.soporte .enlaces { display: flex; flex-direction: column; gap: 8px; }

/* Fotos del proceso */
.proceso { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 30px); }
.proceso figure { margin: 0; background: var(--blanco); padding: 7px 7px 12px; border-radius: 12px; box-shadow: 0 1px 0 rgba(22, 24, 29, .06), 0 10px 22px rgba(22, 24, 29, .09); transform: rotate(-1deg); }
.proceso li:nth-child(even) figure { transform: rotate(1.2deg); }
.proceso img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.proceso figcaption { font-size: 14px; line-height: 1.45; color: var(--gris); padding: 10px 4px 0; }
.proceso figcaption b { display: block; color: var(--tinta); font-weight: 700; }
@media (max-width: 900px) { .proceso { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .proceso { grid-template-columns: 1fr; } }

/* Etiquetas de estado: publicado / WIP */
.etiquetas { display: flex; align-items: center; gap: 6px; flex: none; }
.estado { font: 800 13px/1 var(--f-titulo); letter-spacing: .05em; text-transform: uppercase; border-radius: 6px; padding: 7px 9px 6px; white-space: nowrap; }
.estado-publicado { background: var(--tapa); color: var(--papel); }
.estado-wip { background: var(--rosa); color: var(--tinta); }
.ficha-titulo { flex-wrap: wrap; row-gap: 10px; }
.ficha-titulo .estado { align-self: center; }

/* Políticas bilingües */
.documento section { display: flex; flex-direction: column; gap: 14px; }
.documento .meta { color: var(--gris); }
.documento .lang { border-top: 1.5px dotted var(--hueco); margin-top: 32px; padding-top: 40px; }
.documento section h1 { font-size: clamp(30px, 4.4vw, 42px); }
