﻿/* ===== Inicio ===== */
/* Héroe: lo nuevo primero */
.hero-new { --accent: #f7941d; --on-accent: #0a0a0a; position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; overflow: hidden; isolation: isolate; transition: background .8s; }
.hero-new[data-t="grafie"] { --accent: #f7941d; --contrast: #13a37f; background: radial-gradient(ellipse at 75% 40%, #3a2108 0%, #0a0a0a 62%); }
.hero-new[data-t="kronos"] { --accent: #e3874f; --contrast: #9fbf55; background: radial-gradient(ellipse at 75% 40%, #3b2616 0%, #15110c 62%); }
.hero-new::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 5vw, 80px); align-items: center; padding-block: clamp(36px, 6vw, 80px); }
.hero-tags { display: flex; gap: 10px; align-items: center; margin-bottom: 1.2rem; flex-wrap: wrap; }
.hero-tags .kicker { font: 600 .8rem var(--f-accent); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-new h1 { font-size: clamp(3.2rem, 10.5vw, 9.5rem); line-height: .92; margin-bottom: .25em; color: #fff; }
.hero-new[data-t="kronos"] h1 { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; }
.hero-new[data-t="grafie"] h1 { font-family: "Fredoka", sans-serif; }
.hero-new h1 em { font-style: normal; color: var(--accent); }
.hero-stage { position: relative; display: grid; place-items: center; min-height: clamp(320px, 52vw, 560px); }
.hero-stage::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 66%); filter: blur(30px); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .8; } }
.slide { animation: slide-in .8s cubic-bezier(.2,.8,.2,1) both; }
.slide.out { animation: slide-out .35s ease both; }
@keyframes slide-in { from { opacity: 0; transform: translateY(30px); } }
@keyframes slide-out { to { opacity: 0; transform: translateY(-20px); } }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 22px; }
.hero-ctrl .wrap { display: flex; align-items: center; gap: 14px; }
.dots { display: flex; gap: 8px; }
.dot { width: 44px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); border: 0; cursor: pointer; position: relative; overflow: hidden; padding: 0; }
.dot::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.dot[aria-current="true"]::after { animation: fill var(--dur, 8s) linear forwards; }
.paused .dot[aria-current="true"]::after { animation-play-state: paused; }
@keyframes fill { to { transform: none; } }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; font-size: 1.2rem; transition: .25s; }
.arrow:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.hero-count { margin-left: auto; font: 500 .8rem var(--f-accent); color: var(--muted); letter-spacing: .15em; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; text-align: left; } .hero-stage { order: -1; min-height: 300px; } .hero-new { padding-bottom: 70px; } }

/* Cinta */
.ribbon { background: var(--accent); color: var(--on-accent); padding: 18px 0; transform: rotate(-1.2deg) scale(1.03); margin: -14px 0; position: relative; z-index: 2; border-block: 3px solid #000; }
.ribbon .marquee-track { font: 700 clamp(1.4rem, 3.5vw, 2.6rem)/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.ribbon i { font-style: normal; font-size: .7em; }

/* Proyectos: acordeón horizontal */
.proj-row { display: flex; gap: 14px; min-height: 720px; }
.proj { position: relative; flex: 1; border-radius: 22px; overflow: hidden; padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; transition: flex .7s cubic-bezier(.2,.8,.2,1), transform .4s; isolation: isolate; border: 1px solid var(--line); min-width: 0; }
.proj:hover, .proj:focus-within { flex: 2.2; }
.proj .p-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.proj .p-logo { height: 54px; width: auto; max-width: 180px; object-fit: contain; object-position: left; }
.proj h3 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 .3em; }
.proj p { max-width: 38ch; opacity: .85; margin-bottom: 1.3em; }
/* Abanico con todas las portadas del proyecto */
.p-fan, .p-web { transform: rotate(3deg) translateY(16px); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.proj:hover .p-fan, .proj:focus-within .p-fan, .proj:hover .p-web, .proj:focus-within .p-web { transform: rotate(-3deg) translateY(-8px) scale(1.06); }
.p-fan { position: absolute; left: 0; right: 0; top: 16%; height: 31%; z-index: -1; --gap: 30px; --rot: 4deg; }
.p-fan img { position: absolute; left: 50%; top: 0; height: 100%; width: auto; max-width: 52%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0,0,0,.5)); transform: translateX(-50%) translateX(calc(var(--o) * var(--gap))) rotate(calc(var(--o) * var(--rot))); transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.proj:hover .p-fan, .proj:focus-within .p-fan { --gap: 58px; --rot: 6deg; }
.p-fan img:hover { transform: translateX(-50%) translateX(calc(var(--o) * var(--gap))) scale(1.08); z-index: 9; }
.p-web { position: absolute; left: 0; right: 0; top: 15%; z-index: -1; display: grid; place-items: center; }
.p-web .wv.small { --w: min(340px, 70%); }
.proj .go { display: inline-flex; align-items: center; gap: .6em; font: 700 .95rem var(--f-accent); border-bottom: 2px solid currentColor; padding-bottom: 2px; width: fit-content; }
.proj .go span { transition: transform .3s; } .proj:hover .go span { transform: translateX(8px); }
.proj.grafie { background: radial-gradient(circle at 80% 20%, #3a2108, #0a0a0a 70%); color: #fff; border-color: #f7941d55; }
.proj.grafie h3 { font-family: "Fredoka", sans-serif; color: #f7941d; }
.proj.kronos { background: #f4ecd8; color: #15110c; background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1.2px); background-size: 6px 6px; }
.proj.kronos h3 { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; font-weight: 400; color: #15110c; } .proj.kronos p { color: #3a3124; }
.proj.web { background: linear-gradient(160deg, #1a1a1a, #0c0c0c); color: #fff; }
.proj.web h3 { font-family: "Bodoni Moda", serif; }
/* Tablet y pantallas medianas: siguen lado a lado y se despliegan; solo en celular se apilan */
@media (max-width: 900px) { .proj-row { gap: 10px; } .proj { padding: 18px; } .proj h3 { font-size: 1.9rem; } .proj p { font-size: .9rem; } .proj .p-logo { height: 40px; max-width: 120px; } .proj:hover, .proj:focus-within { flex: 2.6; } .how li { font-size: .6rem; padding: .3em .7em; } }
@media (max-width: 620px) {
  .proj-row { flex-direction: column; min-height: 0; }
  .proj, .proj:hover, .proj:focus-within { flex: none; min-height: 0; justify-content: flex-start; }
  /* En celular la imagen va entre el logo y el texto, sin tapar nada */
  .proj .p-top { order: -2; }
  .p-fan, .p-web, .proj:hover .p-fan, .proj:hover .p-web, .proj:focus-within .p-fan, .proj:focus-within .p-web { position: relative; order: -1; inset: auto; top: auto; z-index: 0; transform: none; margin: 8px 0 26px; }
  .p-fan { height: 190px; }
  .p-web { padding: 6px 0; }
  .p-web .wv.small { --w: min(300px, 88%); }
}

/* Carrusel de ediciones (estantería) */
.shelf { display: flex; gap: clamp(30px, 5vw, 70px); overflow-x: auto; padding: 40px var(--gutter) 70px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.shelf > article { scroll-snap-align: center; flex: 0 0 auto; text-align: center; width: 240px; }
.shelf h3 { font-size: 1.2rem; margin: 46px 0 .1em; } .shelf small { color: var(--muted); display: block; margin-bottom: 14px; font-family: var(--f-accent); }
.shelf .btn { padding: .6em 1.2em; font-size: .85rem; }

/* Descubre: pestañas C / S / R */
.tabs-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: 280px 1fr; min-height: 460px; }
.tablist { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.tab { text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); padding: 28px; cursor: pointer; font: inherit; display: grid; gap: 4px; transition: .3s; flex: 1; }
.tab b { font: 700 3.4rem/1 var(--f-display); color: inherit; } .tab span { font: 600 .8rem var(--f-accent); letter-spacing: .15em; text-transform: uppercase; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); } .tab:hover:not([aria-selected="true"]) { background: var(--surface-2); color: var(--text); }
.tabpanel { padding: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 50px); align-items: center; animation: slide-in .6s both; }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.poster-ph { aspect-ratio: 3/4; border-radius: 16px; border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; font: 500 .85rem var(--f-accent); background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.03) 14px 28px); }
.photo-frame { border-radius: 16px; overflow: hidden; transform: rotate(2deg); box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: transform .6s; } .photo-frame:hover { transform: rotate(0) scale(1.02); }
.photo-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.redes-big { display: grid; gap: 12px; }
.redes-big a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; transition: .3s; font-family: var(--f-accent); font-weight: 600; }
.redes-big a svg { width: 26px; height: 26px; } .redes-big a:hover { background: var(--accent); color: var(--on-accent); transform: scale(1.02); }
@media (max-width: 860px) { .tabs-wrap { grid-template-columns: 1fr; } .tablist { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); } .tab { padding: 14px; border-bottom: 0; border-right: 1px solid var(--line); text-align: center; } .tab b { font-size: 2rem; } .tab span { display: none; } .tabpanel { grid-template-columns: 1fr; } }

/* Equipo: caras en cinta */
.faces { display: grid; gap: 18px; margin: 50px 0 20px; }
.face-chip { width: 112px; height: 112px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; transition: .35s; position: relative; }
.face-chip img { width: 80%; height: 80%; object-fit: contain; }
.face-chip:hover { background: var(--accent); transform: scale(1.18) rotate(-6deg); z-index: 3; }
.face-chip:hover img { filter: invert(1); }
.face-chip.ring { border-color: var(--accent); border-width: 2px; }
.stats { display: flex; gap: clamp(30px, 8vw, 100px); flex-wrap: wrap; margin-top: 50px; }
.stats b { display: block; font: 700 clamp(3rem, 7vw, 6rem)/1 var(--f-display); color: var(--accent); } .stats small { font: 600 .8rem var(--f-accent); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

/* Créditos (franja final) */
.credits-band { background: var(--paper); color: var(--ink); text-align: center; padding: clamp(70px, 12vw, 150px) 0; position: relative; overflow: hidden; }
.credits-band h2 { font-size: clamp(2.4rem, 8vw, 7rem); color: var(--ink); max-width: 14ch; margin-inline: auto; }
.credits-band p { color: #444; max-width: 52ch; margin-inline: auto; }
.credits-band .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.credits-band .float { position: absolute; width: clamp(70px, 10vw, 150px); opacity: .9; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-16px) rotate(4deg); } }

/* Héroe: tema SUNA (la web) */
.hero-new[data-t="suna"] { --accent: #d4ff4f; --contrast: #ffffff; --on-accent: #0e0e0e; background: radial-gradient(ellipse at 75% 40%, #26310a 0%, #0e0e0e 62%); }
.hero-new[data-t="suna"] h1 { font-family: "Bodoni Moda", serif; }

/* Maqueta del sitio: portátil + celular con la página desplazándose */
.wv { --w: 440px; position: relative; width: var(--w); max-width: 100%; margin: 0 auto 40px; font-family: var(--f-body); }
.wv.big { --w: min(560px, 92%); } .wv.small { --w: min(400px, 78%); }
.wv-laptop { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.wv-screen { border: 8px solid #1b1b1b; border-radius: 12px 12px 2px 2px; aspect-ratio: 16 / 10; overflow: hidden; background: #0e0e0e; position: relative; }
.wv-base { height: 11px; width: 112%; margin-left: -6%; background: linear-gradient(#d6d6d6, #8e8e8e); border-radius: 0 0 16px 16px; }
.wv-page { position: absolute; left: 0; right: 0; top: 0; animation: wv-scroll 16s ease-in-out infinite alternate; font-size: 7px; line-height: 1.2; color: #fff; }
@keyframes wv-scroll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(var(--end, -62%)); } }
.wv-head { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #f1f1ee; border-bottom: 2px solid #000; }
.wv-head img { height: 12px; margin-right: auto; } .wv-head i { width: 18px; height: 3px; background: #000; border-radius: 2px; }
.wv-hero { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px; background: radial-gradient(circle at 80% 40%, #3a2108, #0a0a0a 70%); min-height: 120px; }
.wv-hero small { color: #f7941d; letter-spacing: .15em; font-size: 5px; } .wv-hero b { display: block; font: 700 22px/1 "Fredoka", sans-serif; margin: 4px 0 6px; } .wv-hero b em { font-style: normal; color: #f7941d; }
.wv-hero span { display: block; height: 3px; background: #444; margin: 3px 0; width: 70%; border-radius: 2px; } .wv-hero img { height: 94px; width: auto; filter: drop-shadow(0 6px 6px #000a); }
.wv-ribbon { background: #d4ff4f; color: #000; font: 700 8px/1 "Bodoni Moda", serif; padding: 5px 0; white-space: nowrap; overflow: hidden; border-block: 1px solid #000; }
.wv-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; padding: 8px; background: #0e0e0e; }
.wv-cards div { border-radius: 6px; height: 88px; display: grid; place-items: center; } .wv-cards img { height: 76px; width: auto; max-width: 90%; object-fit: contain; }
.wv-faces { display: flex; gap: 4px; padding: 8px; flex-wrap: wrap; background: #151515; } .wv-faces img { width: 26px; height: 26px; border-radius: 50%; background: #232323; padding: 3px; }
.wv-books { display: flex; gap: 6px; justify-content: center; padding: 10px; background: #0e0e0e; } .wv-books img { height: 70px; width: auto; }
.wv-band { background: #f1f1ee; color: #000; text-align: center; padding: 18px 8px; font: 800 14px/1 "Bodoni Moda", serif; }
.wv-phone { position: absolute; right: -4%; bottom: -34px; width: 24%; min-width: 86px; border: 5px solid #1b1b1b; border-radius: 16px; aspect-ratio: 9 / 18.5; overflow: hidden; background: #0e0e0e; box-shadow: 0 20px 30px rgba(0,0,0,.6); }
.wv-phone .wv-screen { border: 0; border-radius: 0; aspect-ratio: auto; height: 100%; }
.wv-phone .wv-page { font-size: 5px; --end: -55%; animation-duration: 14s; animation-delay: -4s; }
.wv-phone .wv-hero { min-height: 60px; padding: 8px; } .wv-phone .wv-hero b { font-size: 12px; }
.wv-phone .wv-cards div { height: 60px; } .wv-phone .wv-cards img { height: 52px; }
.wv-phone .wv-head img { height: 8px; }
@media (max-width: 860px) { .wv.big { --w: min(420px, 82%); } }

/* Pasos de cada proyecto en las tarjetas */
.how { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1.4em; }
.how li { font: 600 .72rem var(--f-accent); letter-spacing: .08em; text-transform: uppercase; padding: .4em .9em; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }
.how li:not(:last-child)::after { content: none; }

/* Afiche de la carrera (pestaña C) */
.poster-img { display: block; max-width: 340px; justify-self: center; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.55); transform: rotate(2deg); transition: transform .5s; }
.poster-img:hover { transform: rotate(0) scale(1.03); }
.poster-img img { width: 100%; height: auto; }


/* Cada libro de la estantería ocupa el mismo alto, sea vertical (revista) u horizontal (manual) */
.book-slot { height: 290px; display: flex; align-items: center; justify-content: center; }


/* Las etiquetas de cada tarjeta usan el color de su proyecto (el verde es solo de SUNA) */
.proj.grafie .tag { color: #f7941d; border-color: #f7941d; }
.proj.kronos .tag { color: #b8591e; border-color: #b8591e; }


/* Únete: invitación a la próxima convocatoria (texto en SUNA.convocatoria, js/data.js) */
.join-sec[hidden] { display: none; }
.join { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; border: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); box-shadow: 10px 10px 0 var(--accent); padding: clamp(26px, 5vw, 60px); }
.join h2 { font-size: clamp(2rem, 5vw, 4rem); margin: 0 0 .3em; }
.join .lead { max-width: 46ch; }
.join .actions { margin-top: 1.4em; }
.join-side { display: grid; gap: 14px; align-content: center; padding-left: clamp(0px, 3vw, 40px); border-left: 2px dashed var(--line); }
.join-proy { font: 500 1.05rem/1.6 var(--f-body); color: var(--text); margin: 0; }
.join-fecha { font: 700 .9rem var(--f-accent); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0; }
.join-req { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: .4em; }
@media (max-width: 760px) { .join { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--accent); } .join-side { padding-left: 0; border-left: 0; border-top: 2px dashed var(--line); padding-top: 18px; } }
