/* Álbum del Nutri-Mundo — el mismo mundo de los videos y recetarios del Capitán Nutrición:
   dibujos en crayón, Lilita One + Nunito, naranja, verdes, amarillo sol y crema. */

@font-face { font-family: "Lilita One"; src: url("fuentes/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fuentes/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --naranja: #ee8428;
  --naranja-hondo: #b85a0f;
  --naranja-texto: #c25c0a;   /* el naranja de la marca, oscurecido para títulos grandes sobre crema (AA) */
  --naranja-sello: #a94e08;   /* fondo de sellos y números chicos con texto blanco (AA) */
  --verde: #5aa13a;
  --verde-hondo: #2f6b3a;
  --verde-noche: #234f2c;
  --sol: #fbe3a1;
  --sol-fuerte: #f6cf62;
  --crema: #fffdf7;
  --tinta: #2f4a2a;
  --rojo: #d6342c;
  --sombra: 0 10px 24px -10px rgba(90, 60, 20, .38), 0 2px 6px -2px rgba(90, 60, 20, .22);
  --radio: 14px;
  --ancho: 1180px;
  --display: "Lilita One", "Nunito", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--naranja) var(--sol); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--crema); color: var(--tinta); font: 500 1.0625rem/1.55 "Nunito", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--sol-fuerte); color: var(--verde-noche); }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; margin: 0; letter-spacing: .005em; text-wrap: balance; }
p { text-wrap: pretty; }

.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--verde-noche); color: var(--crema); padding: .6rem 1rem; border-radius: 10px; }
.saltar:focus { top: 1rem; }

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .7rem 1.2rem;
  border-radius: 999px; background: var(--verde-hondo); color: var(--crema); font-weight: 900; font-size: 1rem;
  text-decoration: none; box-shadow: 0 6px 14px -6px rgba(35, 79, 44, .6);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background-color .2s;
}
.boton:hover { background: var(--verde-noche); transform: translateY(-2px); }
.boton:active { transform: translateY(1px); }
.boton svg, .enlace svg, .red svg, .pista svg { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.enlace { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 800; color: var(--tinta); }
.enlace svg { fill: currentColor; stroke: none; }

/* ---------- tapa del álbum ---------- */
.tapa {
  position: relative; overflow: hidden; color: var(--crema);
  background:
    linear-gradient(90deg, rgba(140, 55, 0, .55) 0, rgba(140, 55, 0, .4) 38%, rgba(140, 55, 0, 0) 62%),
    radial-gradient(circle at 72% 60%, rgba(255, 236, 170, .55) 0, rgba(255, 236, 170, 0) 42%),
    repeating-conic-gradient(from 0deg at 72% 60%, #ef8b30 0deg 9deg, #e67a1f 9deg 18deg);
  border-bottom: 10px solid var(--verde-hondo);
}
.menu { position: relative; z-index: 3; max-width: var(--ancho); margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marca { font-family: var(--display); font-size: 1.35rem; text-decoration: none; color: var(--crema); }
.menu ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.menu ul a { display: inline-block; padding: .55rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 800; color: var(--crema); background: rgba(35, 79, 44, .72); }
.menu ul a:hover { background: var(--verde-noche); }
.tapa-cuerpo { position: relative; z-index: 2; max-width: var(--ancho); margin: 0 auto; padding: 2.5rem 1.25rem 4.5rem; }
.tapa h1 {
  font-size: clamp(3rem, 9vw, 6rem); max-width: 9ch; color: var(--sol);
  -webkit-text-stroke: .1em var(--verde-hondo); paint-order: stroke fill;
  text-shadow: 0 .08em 0 var(--verde-noche);
}
.tapa h1 span { display: block; color: var(--crema); }
.promesa { max-width: 30ch; margin: 1.25rem 0 1.75rem; font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 800; color: #fff8ea; text-shadow: 0 1px 2px rgba(120, 50, 0, .35); }
.promesa strong { display: inline-block; background: var(--verde-hondo); color: var(--sol); padding: .05em .45em; border-radius: 8px; transform: rotate(-2deg); }
.boton-tapa { background: var(--crema); color: var(--verde-hondo); box-shadow: 0 8px 18px -8px rgba(80, 30, 0, .55); }
.boton-tapa:hover { background: var(--sol); }
.capitan-tapa { position: absolute; z-index: 1; right: max(-2rem, calc(50% - 640px)); bottom: -2.5rem; width: min(560px, 48vw); filter: drop-shadow(0 18px 18px rgba(90, 30, 0, .35)); }

/* ---------- secciones ---------- */
.seccion { max-width: var(--ancho); margin: 0 auto; padding: 4.5rem 1.25rem 2rem; }
.encabezado { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2rem; }
.encabezado h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--naranja-texto); }
.encabezado p { margin: 0; max-width: 46ch; font-weight: 700; color: #4d6a43; }

/* ---------- sobres ---------- */
.fila-sobres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 2.25rem 1.75rem; }
.sobre { --papel: #f2e6c9; --tinta: #2f6b3a; position: relative; }
.sobre-papel {
  position: relative; height: 100%; display: flex; flex-direction: column; padding: 1.4rem 1.3rem 1.3rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .0) 0, rgba(255, 255, 255, .35) 22%, rgba(255, 255, 255, 0) 40%),
    var(--papel);
  color: var(--tinta); box-shadow: var(--sombra);
}
/* el dentado de arriba y de abajo del sobre */
.sobre-papel::before, .sobre-papel::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; background: var(--papel);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12'%3E%3Cpath d='M0 12 8 0 16 12Z'/%3E%3C/svg%3E") repeat-x left bottom / 16px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12'%3E%3Cpath d='M0 12 8 0 16 12Z'/%3E%3C/svg%3E") repeat-x left bottom / 16px 12px;
}
.sobre-papel::before { top: -11px; }
.sobre-papel::after { bottom: -11px; transform: scaleY(-1); }
.sobre-ventana { position: relative; margin: 0 0 1.1rem; }
.sobre-tapa {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 6px solid #fff;
  box-shadow: 0 8px 16px -8px rgba(60, 40, 10, .45); transform-origin: 50% 100%;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.sobre-sello {
  position: absolute; right: -.4rem; top: -.6rem; padding: .35rem .7rem; border-radius: 8px; background: var(--naranja-sello);
  color: #fff; font-family: var(--display); font-size: .95rem; transform: rotate(4deg); box-shadow: 0 4px 10px -4px rgba(120, 50, 0, .5);
}
.sobre h3 { font-size: 1.75rem; }
.sobre-bajada { margin: .45rem 0 .35rem; font-weight: 700; }
.sobre-datos { margin: 0 0 1rem; font-size: .9rem; font-weight: 800; opacity: .78; }
.sobre-acciones { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.sobre .boton { background: var(--tinta); }
.sobre .enlace { color: var(--tinta); }
@media (hover: hover) {
  .sobre:hover .sobre-tapa, .sobre:focus-within .sobre-tapa { transform: translateY(-16px) rotate(-2.5deg); }
}
.sobre-cerrado .sobre-papel { --papel: #e9e3d6; background: repeating-linear-gradient(135deg, #ece6d9 0 14px, #e4ddcd 14px 28px); color: #5b5446; }
.sobre-cerrado .sobre-papel::before, .sobre-cerrado .sobre-papel::after { background: #e8e1d3; }
.sobre-ventana-cerrada { aspect-ratio: 1; border-radius: 10px; border: 4px dashed #b9ae97; display: grid; place-items: center; }
.sobre-ventana-cerrada span { font-family: var(--display); font-size: 2.6rem; color: var(--naranja-texto); transform: rotate(-8deg); }

/* ---------- lo nuevo del canal ---------- */
[hidden] { display: none !important; }
.fila-videos { list-style: none; margin: 0; padding: 0 0 .5rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.fila-videos li { scroll-snap-align: start; }
.video { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--tinta); }
.video-cuadro { position: relative; display: block; aspect-ratio: 9 / 14; border-radius: var(--radio); overflow: hidden; border: 6px solid #fff; box-shadow: var(--sombra); background: var(--sol); }
.video-cuadro img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.video:hover .video-cuadro img { transform: scale(1.42); }
.video-play { position: absolute; left: 50%; top: 50%; width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; display: grid; place-items: center; border-radius: 50%; background: rgba(196, 48, 43, .92); color: #fff; }
.video-play svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.video-titulo { font-weight: 800; font-size: .95rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-fecha { font-size: .82rem; font-weight: 700; color: #5c6b4d; }
@media (min-width: 900px) { .fila-videos { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; } }

/* ---------- figuritas ---------- */
.figuritas { position: relative; }
.grilla-figuritas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 1.4rem 1.1rem; }
.figurita { display: flex; flex-direction: column; align-items: center; gap: .3rem; perspective: 900px; }
.figurita-giro {
  position: relative; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; background: none; cursor: pointer;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.16, 1, .3, 1); font: inherit; color: inherit;
}
.figurita-giro[aria-pressed="true"] { transform: rotateY(180deg); }
.figurita-giro:focus-visible { outline: none; }
.figurita-giro:focus-visible .cara { outline: 3px solid var(--naranja); outline-offset: 3px; }
.cara {
  position: absolute; inset: 0; border-radius: var(--radio); border: 7px solid #fff; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--sombra);
}
.frente {
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, .7) 0, rgba(255, 255, 255, 0) 55%),
    repeating-conic-gradient(from 0deg at 50% 58%, var(--fondo) 0deg 10deg, color-mix(in srgb, var(--fondo) 80%, #fff) 10deg 20deg);
}
.frente img { position: absolute; left: 50%; bottom: 2.4rem; height: 74%; width: auto; max-width: 92%; object-fit: contain; transform: translateX(calc(var(--centro, .5) * -100%)); filter: drop-shadow(0 6px 6px rgba(70, 40, 10, .25)); }
.num {
  position: absolute; left: .45rem; top: .45rem; z-index: 2; min-width: 2.1rem; height: 2.1rem; padding: 0 .35rem;
  display: grid; place-items: center; border-radius: 999px; background: var(--naranja-sello); color: #fff;
  font-family: var(--display); font-size: 1.1rem; font-variant-numeric: tabular-nums;
}
.nombre { position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem .5rem .55rem; background: var(--verde-hondo); color: var(--crema); font-family: var(--display); font-size: 1.15rem; text-align: center; }
.pista { position: absolute; right: .5rem; top: .5rem; z-index: 2; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--verde-hondo); }
.dorso {
  transform: rotateY(180deg); background: var(--crema); padding: 2.9rem .85rem .85rem; text-align: left;
  display: flex; flex-direction: column; gap: .35rem; overflow-y: auto; scrollbar-width: thin;
}
.dorso-nombre { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--naranja-texto); line-height: 1; }
.frase { font-family: var(--display); color: var(--verde-hondo); font-size: 1.02rem; quotes: "«" "»"; }
.dorso dl { margin: .2rem 0 0; display: grid; gap: .45rem; }
.dorso dt { font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--verde-hondo); }
.dorso dd { margin: 0; font-size: .86rem; line-height: 1.3; font-weight: 700; color: #3c4a33; }
.figurita-video { font-size: .92rem; }
.hueco { align-self: start; position: relative; aspect-ratio: 3 / 4; border-radius: var(--radio); border: 3px dashed #c9bd9f; background: rgba(251, 227, 161, .25); justify-content: center; }
.hueco .num { background: #7a6a45; }
.hueco-texto { font-family: var(--display); font-size: 1.3rem; color: #76653f; transform: rotate(-6deg); }
@media (prefers-reduced-motion: reduce) {
  .figurita-giro, .sobre-tapa { transition: none; }
}

/* ---------- para grandes ---------- */
.grandes {
  max-width: none; margin-top: 3rem; padding: 4rem 1.25rem; color: #eef6e6;
  background: radial-gradient(circle at 80% 70%, #4f9a3d 0, rgba(79, 154, 61, 0) 55%), var(--verde-hondo);
}
.grandes > h2, .grandes-cuerpo { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.grandes h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--sol); margin-bottom: 1.5rem; }
.grandes-cuerpo { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: end; }
.grandes-intro { margin: 0 0 1.75rem; max-width: 62ch; font-size: 1.15rem; font-weight: 700; }
.reglas { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.4rem 2rem; }
.reglas dt { font-family: var(--display); font-size: 1.3rem; color: var(--sol); margin-bottom: .3rem; }
.reglas dd { margin: 0; font-weight: 600; color: #e3efda; max-width: 40ch; }
.grandes-limon { width: min(240px, 50vw); justify-self: center; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .25)); }
@media (min-width: 860px) {
  .grandes-cuerpo { grid-template-columns: 1fr 260px; }
}

/* ---------- pie ---------- */
.pie { background: var(--sol); color: var(--verde-noche); padding: 3rem 1.25rem 2rem; text-align: center; }
.pie h2 { font-size: 2.2rem; color: var(--naranja-hondo); }
.pie ul { list-style: none; margin: 1.25rem 0 .5rem; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.red { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: .6rem 1.3rem .6rem 1rem; border-radius: 999px; background: #c4302b; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 6px 14px -6px rgba(120, 20, 20, .5); }
.red svg { stroke-width: 2; }
.red .relleno { fill: currentColor; stroke: none; }
.red b { font-weight: 900; }
.pie-nota { margin: 0; font-weight: 800; color: #6b5a2b; }
.pie-firma { margin: 2.5rem 0 0; font-family: var(--display); font-size: 1.1rem; color: var(--verde-hondo); }

/* ---------- celular ---------- */
@media (max-width: 640px) {
  .menu ul { display: none; }
  .tapa-cuerpo { padding: 1rem 1.25rem 2.5rem; }
  .tapa h1 { max-width: 7ch; font-size: 2.7rem; }
  .capitan-tapa { width: 47vw; right: -9vw; bottom: -1.2rem; }
  .promesa { max-width: 14ch; font-size: 1.08rem; }
  .seccion { padding-top: 3.25rem; }
}
