/* Páginas de los canales DescubreTu en kodyrastudio.com/<cuenta>/ (motor/web-kodyra.mjs), sobre /styles.css de la web común.
   Diseño unificado (2026-11-06): la misma base oscura que la portada en todos los canales; cada uno solo cambia --accent
   (con --accent-ink y --link, calculados para 4,5:1). */
:root {
  --bg: var(--brand-bg); --text: var(--brand-ink);
  --surface: #151922; --surface-2: #1B2030; --border: #2A3142; --border-strong: #3A4358;
  --primary: var(--link);
}
body { background: radial-gradient(900px 420px at 80% -120px, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--bg); background-repeat: no-repeat; }
main { overflow-x: clip; }
.wordmark b { color: var(--link); font-weight: 800; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; color: var(--text); overflow-wrap: anywhere; }

/* Portada del canal */
.canal-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 64px 0 80px; }
.canal-hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; text-wrap: balance; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 54ch; text-wrap: pretty; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, background .15s, border-color .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primario { background: var(--accent); color: var(--accent-ink); }
.btn.secundario { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn:hover { transform: translateY(-2px); }
.btn.secundario:hover { background: var(--surface-2); }
.cifra { margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.cifra strong { font-size: 30px; color: var(--text); margin-right: 4px; letter-spacing: -.03em; }

/* Abanico de las tres últimas portadas, con el avatar delante */
.abanico { position: relative; height: 460px; }
.abanico .carta { position: absolute; top: 50%; left: 50%; width: 240px; height: auto; border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px var(--border); transition: transform .3s ease; }
.abanico .c0 { transform: translate(-50%, -50%); z-index: 3; }
.abanico .c1 { transform: translate(-95%, -46%) rotate(-10deg); z-index: 2; }
.abanico .c2 { transform: translate(-5%, -46%) rotate(10deg); z-index: 1; }
.abanico:hover .c1 { transform: translate(-108%, -47%) rotate(-13deg); }
.abanico:hover .c2 { transform: translate(8%, -47%) rotate(13deg); }
.abanico .avatar { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 4; width: 104px; height: 104px; border-radius: 50%;
  border: 4px solid var(--bg); box-shadow: 0 12px 30px -8px rgba(0,0,0,.6); }
.abanico:not(:has(.carta)) { height: 260px; }
.abanico:not(:has(.carta)) .avatar { width: 220px; height: 220px; top: 50%; bottom: auto; transform: translate(-50%, -50%); }

/* Bloques */
.bloque { padding: 0 0 80px; }
.bloque h2, .cta h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 28px; font-size: 17px; }
.rejilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pieza { display: block; text-decoration: none; color: var(--text); }
.pieza img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); transition: transform .2s ease, border-color .2s; }
.pieza:hover img { transform: translateY(-4px); border-color: var(--accent); }
.pieza .nombre { display: block; margin-top: 10px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.ver-todos { margin: 32px 0 0; text-align: center; }
.criterios { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.criterio { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.criterio .emoji { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 24px; background: var(--surface-2); }
.criterio h3 { margin: 16px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.criterio p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 0; }
.steps li { border-radius: 20px; padding: 24px; font-size: 15px; }
.steps li::before { position: static; display: grid; width: 34px; height: 34px; margin-bottom: 14px; background: var(--surface-2); color: var(--link); }

/* Llamada final */
.cta { text-align: center; margin: 0 0 64px; padding: 56px 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); }
.cta p { color: var(--muted); max-width: 48ch; margin: 0 auto 24px; font-size: 18px; }

/* Los otros canales */
.otros { padding: 0 0 40px; }
.otros h2 { font-size: 18px; letter-spacing: -.01em; margin: 0 0 14px; }
.otros div { display: flex; flex-wrap: wrap; gap: 10px; }
.otros a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.otros a:hover { border-color: var(--border-strong); background: var(--surface-2); }
.otros img { border-radius: 50%; }
footer.bottom a { color: var(--muted); }

/* Páginas de producto (/<cuenta>/discoveries/) */
.ficha-volver { margin: 28px 0 0; font-size: 15px; }
.ficha-volver a { color: var(--muted); text-decoration: none; }
.ficha-volver a:hover { color: var(--text); text-decoration: underline; }
.ficha-cabeza { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: center; margin: 24px 0 56px; }
.ficha-img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
/* Carrusel de Instagram incrustado al pulsar (2026-12-01) */
.carrusel-play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 20px; }
.carrusel-play:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.carrusel-boton { display: flex; width: 100%; justify-content: center; margin-top: 14px; }
.carrusel-boton svg { width: 18px; height: 18px; }
.carrusel-ig { display: block; width: 100%; height: 600px; border: 0; border-radius: 20px; background: #fff; }
.ficha-compra { margin: 0; }
.ficha-compra .btn { display: flex; width: 100%; justify-content: center; }
.ficha-tipo { margin: 0 0 10px; color: var(--link); font-weight: 700; font-size: 15px; }
.ficha-cabeza h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: balance; }
.ficha-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; margin-bottom: 72px; }
.ficha-lado { display: grid; gap: 14px; position: sticky; top: 84px; }
.ficha-caja { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.ficha-caja h2 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.01em; }
.ficha-caja p { margin: 0; color: var(--muted); font-size: 15px; }
.ficha-caja ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.ficha-puntos li { position: relative; padding-left: 24px; }
.ficha-puntos li::before { content: "✓"; position: absolute; left: 0; color: var(--link); font-weight: 800; }
.ficha-nota { margin-top: 12px !important; font-size: 13px !important; }
.ficha-texto { margin: 0 0 32px; max-width: 68ch; }
.ficha-texto:last-child { margin-bottom: 0; }
.ficha-texto h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; }
.ficha-texto p { margin: 0 0 12px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.ficha-texto a { color: var(--link); }
.ficha-texto blockquote { margin: 0 0 12px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.ficha-texto blockquote p { margin: 0; color: var(--text); font-size: 16px; }
.ficha-texto blockquote footer { margin-top: 6px; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .ficha-cuerpo { grid-template-columns: 1fr; gap: 28px; }
  .ficha-lado { position: static; }
  .steps { grid-template-columns: 1fr; }
  .rejilla { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .canal-hero { grid-template-columns: 1fr; padding: 32px 0 56px; gap: 8px; }
  .abanico { height: 380px; order: -1; }
  .abanico .carta { width: 190px; }
  .bloque { padding-bottom: 56px; }
  .ficha-cabeza { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .ficha-img, .ficha-carrusel, .carrusel-ig { width: 100%; max-width: 340px; margin-left: auto; margin-right: auto; } /* portada, botón y carrusel, centrados y del mismo ancho */
  .ficha-carrusel .ficha-img { max-width: none; }
}
@media (max-width: 560px) { .rejilla { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px) { .abanico { height: 320px; } .abanico .carta { width: 160px; } .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .btn, .pieza img, .abanico .carta { transition: none; } .btn:hover, .pieza:hover img { transform: none; } }

/* Las cuatro redes (2026-11-29: ya no somos solo Instagram) */
.seguir-tit { margin: 0 0 12px; font-weight: 700; font-size: 15px; color: var(--text); }
.seguir-cuenta { margin-left: 6px; color: var(--link); white-space: nowrap; }
.redes-botones { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.red { min-height: 46px; padding: 10px 18px 10px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); font-size: 15px; }
.btn.red svg { color: var(--link); }
.btn.red:hover { background: var(--surface-2); border-color: var(--accent); }
.canal-texto .redes-botones .btn.red:first-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.canal-texto .redes-botones .btn.red:first-child svg { color: currentColor; }
.red-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); color: var(--link); flex: none; }
.red-ic svg { width: 24px; height: 24px; }
.cta .redes-botones { justify-content: center; margin: 0 0 18px; }

/* Ficha: «Míralo en vídeo», con el Short y el post en cada red */
.ficha-video { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: center; margin: 0 0 64px; padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); scroll-margin-top: 84px; }
.video-marco { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.video-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-play img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .2s, transform .3s ease; }
.video-fondo { object-fit: cover; filter: blur(22px) brightness(.55); transform: scale(1.2); }
.video-portada { object-fit: contain; opacity: .9; }
.video-play:hover .video-portada { opacity: 1; transform: scale(1.02); }
.video-boton { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 30px -8px rgba(0,0,0,.7); transition: transform .2s ease; }
.video-boton svg { width: 34px; height: 34px; margin-left: 4px; }
.video-play:hover .video-boton { transform: translate(-50%, -50%) scale(1.08); }
.video-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.video-redes h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 8px; }
.video-redes .sub { margin-bottom: 20px; }
.redes-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.redes-lista a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .2s; }
.redes-lista a:hover { border-color: var(--accent); }
.redes-lista .red-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); }
.red-tx { display: grid; flex: 1; min-width: 0; }
.red-tx strong { font-size: 16px; }
.redes-lista a > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.ficha-cabeza .btn.secundario svg { color: var(--link); }

@media (max-width: 820px) {
  .ficha-video { grid-template-columns: 1fr; gap: 28px; padding: 20px; margin-bottom: 40px; }
  .video-marco { width: 100%; max-width: 300px; margin: 0 auto; }
}
@media (max-width: 480px) { .redes-botones .btn.red { flex: 1 1 calc(50% - 5px); width: auto; } }
@media (prefers-reduced-motion: reduce) { .video-play img, .video-boton { transition: none; } }
