/* Propuesta 3 · "Fuelle": revista editorial con el tricolor colombiano y paneles que se abren como un acordeón */
:root {
  --paper: #FBF6EC;
  --ink: #131A3A;
  --yellow: #FFD100;
  --blue: #1041D6;
  --red: #E8102E;
  --rule: #131a3a26;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.7; overflow-x: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 900; line-height: 1; margin: 0; letter-spacing: -.02em; }
em { font-style: italic; font-weight: 400; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } .pane, .pane img { transition: none !important; } html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Franja tricolor */
.flag { display: flex; height: 10px; }
.flag i { flex: 1; } .flag i:first-child { flex: 2; background: var(--yellow); } .flag i:nth-child(2) { background: var(--blue); } .flag i:nth-child(3) { background: var(--red); }

/* Cabecera */
.mast { display: flex; align-items: baseline; justify-content: space-between; padding: 1.4rem 0; border-bottom: 2px solid var(--ink); position: relative; }
.brand { font-family: var(--serif); font-weight: 900; font-size: 1.5rem; text-decoration: none; letter-spacing: -.02em; }
.brand em { color: var(--red); }
.mast nav { display: flex; gap: 2rem; }
.mast nav a { text-decoration: none; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.mast nav a span { color: var(--red); font-family: var(--serif); font-style: italic; text-transform: none; margin-right: .2rem; }
.mast nav a:hover { color: var(--blue); }
.burger { display: none; font: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; background: var(--ink); color: var(--paper); border: 0; padding: .55rem 1rem; cursor: pointer; }

/* Portada */
.portada { padding: 4.5rem 0 3.5rem; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0 0 1.6rem; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.meta span + span::before { content: '●'; color: var(--red); margin-right: 1.4rem; font-size: .6rem; vertical-align: middle; }
.portada h1 { font-size: clamp(3rem, 11vw, 9.5rem); line-height: .9; text-wrap: balance; }
.portada h1 em { color: var(--blue); }
.deck { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.45; max-width: 36em; margin: 2rem 0 0; }

/* Fuelle */
.fuelle { display: flex; height: min(78vh, 640px); min-height: 460px; border-block: 2px solid var(--ink); }
.pane { position: relative; flex: 1; min-width: 0; overflow: hidden; text-decoration: none; background: var(--c); color: var(--t); border-right: 2px solid var(--ink); transition: flex .65s cubic-bezier(.3,.7,.2,1); display: flex; align-items: flex-end; }
.pane:last-child { border-right: 0; }
.pane.active { flex: 4.2; }
.pane img { position: absolute; inset: 0; object-position: center 22%; opacity: 0; transform: scale(1.06); transition: opacity .6s ease, transform 1s ease; mix-blend-mode: multiply; filter: grayscale(.15) contrast(1.05); }
.pane.active img { opacity: 1; transform: none; mix-blend-mode: normal; filter: none; }
.pane::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--c) 6%, transparent 55%); opacity: 0; transition: opacity .5s; }
.pane.active::after { opacity: .95; }
.num { position: absolute; z-index: 2; top: 1.2rem; left: 1.2rem; font-family: var(--serif); font-style: italic; font-size: 1.4rem; }
.pane-text { position: relative; z-index: 2; padding: 1.4rem; width: 100%; }
.pane h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); white-space: nowrap; transform-origin: left bottom; transform: rotate(-90deg) translateX(0); position: absolute; left: 2.4rem; bottom: 1.4rem; transition: opacity .3s; }
.pane.active h2 { position: static; transform: none; font-size: clamp(2.2rem, 5vw, 4.4rem); white-space: normal; }
.pane p { margin: .5rem 0 0; max-width: 24em; font-size: 1.05rem; line-height: 1.4; display: none; }
.pane.active p { display: block; }

/* Capítulos */
.capitulo { padding: 7rem 0; }
.cap-head { display: flex; align-items: baseline; gap: 1.2rem; border-bottom: 2px solid currentColor; padding-bottom: 1rem; margin-bottom: 3rem; }
.cap-head h2 { font-size: clamp(2.6rem, 8vw, 6rem); }
.cap-num { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 2rem); }
.cap-num.y { background: var(--yellow); color: var(--ink); padding: 0 .5rem; }
.cap-num.b { background: var(--blue); color: #fff; padding: 0 .5rem; }
.entrada { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.35; max-width: 30em; margin: 0 0 3rem; }

.columnas { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 6vw, 5rem); }
.texto p { margin: 0 0 1.2rem; }
.capitular::first-letter { font-family: var(--serif); font-weight: 900; font-size: 5.4rem; float: left; line-height: .8; padding: .4rem .6rem 0 0; color: var(--red); }
aside figure { margin: 0; }
aside img { aspect-ratio: 4 / 3; height: auto; }
figcaption { font-size: .8rem; padding-top: .6rem; border-top: 1px solid var(--rule); margin-top: .6rem; }
aside blockquote { margin: 2rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.25; border-left: 6px solid var(--yellow); padding-left: 1.2rem; }
.hitos { display: grid; grid-template-columns: repeat(5, 1fr); margin: 4rem 0 0; border-top: 2px solid var(--ink); }
.hitos div { padding: 1.2rem 1rem 0 0; border-right: 1px solid var(--rule); padding-left: 1rem; }
.hitos div:first-child { padding-left: 0; } .hitos div:last-child { border-right: 0; }
.hitos dt { font-family: var(--serif); font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.1; }
.hitos dd { margin: .3rem 0 0; font-size: .9rem; }

/* Cumbia Sur */
.rojo { background: var(--red); color: #fff; }
.mosaico { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.mosaico figure { margin: 0; overflow: hidden; border: 2px solid var(--ink); }
.mosaico img { transition: transform .8s ease; }
.mosaico figure:hover img { transform: scale(1.05); }
.m1 { grid-column: span 8; aspect-ratio: 16 / 10; }
.m2 { grid-column: span 4; grid-row: span 2; }
.m3 { grid-column: span 4; aspect-ratio: 4 / 3; }
.m4 { grid-column: span 4; background: var(--yellow); color: var(--ink); padding: 1.6rem; border: 2px solid var(--ink); display: flex; flex-direction: column; }
.m4 h3 { font-size: 1.6rem; margin-bottom: .8rem; }
.m4 p { margin: 0 0 1rem; font-size: .98rem; line-height: 1.55; }
.link { font-weight: 600; margin-top: auto; }

/* Academia */
.programa { width: 100%; border-collapse: collapse; margin-bottom: 4rem; }
.programa thead th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; padding: 0 0 .8rem; border-bottom: 2px solid var(--ink); }
.programa tbody th { font-family: var(--serif); font-weight: 900; font-size: clamp(1.3rem, 3vw, 2.2rem); text-align: left; vertical-align: top; padding: 1.4rem 2rem 1.4rem 0; white-space: nowrap; line-height: 1.1; }
.programa td { padding: 1.5rem 0; vertical-align: top; }
.programa tbody tr { border-bottom: 1px solid var(--rule); transition: background .3s; }
.programa tbody tr:hover { background: #ffd10033; }
.pasos h3 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.pasos ol { list-style: none; counter-reset: p; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 0; margin: 0 0 4rem; }
.pasos li { counter-increment: p; padding: 1.2rem 1rem 1.2rem 0; border-top: 6px solid var(--blue); font-size: .92rem; line-height: 1.45; }
.pasos li:nth-child(2) { border-color: var(--yellow); } .pasos li:nth-child(3) { border-color: var(--red); } .pasos li:nth-child(4) { border-color: var(--ink); } .pasos li:nth-child(5) { border-color: var(--yellow); }
.pasos li::before { content: counter(p, decimal-leading-zero); font-family: var(--serif); font-style: italic; display: block; margin-bottom: .4rem; }
.pasos b { display: block; font-family: var(--serif); font-weight: 900; font-size: 1.2rem; line-height: 1.2; margin-bottom: .2rem; }
.boletos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.boleto { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--yellow); border: 2px solid var(--ink); padding: 1.8rem 2rem; position: relative; }
.boleto::before, .boleto::after { content: ''; position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transform: translateY(-50%); }
.boleto::before { left: -15px; } .boleto::after { right: -15px; }
.boleto.azul { background: var(--blue); color: #fff; }
.boleto small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.boleto h3 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.boleto p { margin: .3rem 0 0; font-size: .92rem; }
.boleto strong { font-family: var(--serif); font-weight: 900; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; text-align: right; }
.boleto strong small { font-family: var(--sans); margin-top: .3rem; }
.nota { margin: 1.6rem 0 0; font-size: .92rem; }

/* Contacto */
.tinta { background: var(--ink); color: var(--paper); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
address { font-style: normal; display: grid; gap: 1.6rem; }
address p { margin: 0; display: grid; }
address small { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); }
address a { font-family: var(--serif); font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.2rem); text-decoration: none; line-height: 1.2; }
address a:hover { color: var(--yellow); }
form { display: grid; gap: 1.2rem; align-content: start; }
form label { display: grid; gap: .3rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
input, select, textarea { font: inherit; font-size: 1.05rem; font-weight: 400; text-transform: none; letter-spacing: 0; background: transparent; color: var(--paper); border: 0; border-bottom: 2px solid #fbf6ec66; padding: .6rem 0; width: 100%; border-radius: 0; }
select option { color: #111; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--yellow); }
form button { justify-self: start; font: inherit; font-weight: 600; background: var(--yellow); color: var(--ink); border: 0; padding: 1rem 1.8rem; cursor: pointer; transition: background .2s, color .2s; }
form button:hover { background: var(--red); color: #fff; }

.pie { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.6rem 0 2.4rem; font-size: .85rem; }

@media (max-width: 900px) {
  .burger { display: block; }
  .mast { align-items: center; }
  .mast nav { display: none; position: absolute; z-index: 20; top: 100%; left: 0; right: 0; flex-direction: column; gap: 1rem; background: var(--paper); border: 2px solid var(--ink); padding: 1.4rem; }
  .mast nav.open { display: flex; }
  .fuelle { flex-direction: column; height: auto; min-height: 0; }
  .pane { flex: none !important; height: 96px; border-right: 0; border-bottom: 2px solid var(--ink); transition: height .5s ease; }
  .pane:last-child { border-bottom: 0; }
  .pane.active { height: 420px; }
  .pane h2, .pane.active h2 { position: static; transform: none; white-space: normal; font-size: 1.7rem; }
  .pane.active h2 { font-size: 2.4rem; }
  .pane-text { padding-left: 4rem; }
  .pane.active .pane-text { padding-left: 1.4rem; }
  .columnas, .contacto-grid, .boletos { grid-template-columns: 1fr; }
  .hitos { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .hitos div { border-right: 0; padding-left: 0; }
  .m1, .m2, .m3, .m4 { grid-column: 1 / -1; grid-row: auto; }
  .m2 { aspect-ratio: 4 / 5; }
  .pasos ol { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .programa tbody th, .programa td { display: block; padding: 0; white-space: normal; }
  .programa tbody th { padding-top: 1.4rem; } .programa td { padding: .5rem 0 1.4rem; }
  .programa thead { display: none; }
  .capitulo { padding: 4.5rem 0; }
  .boleto { padding: 1.5rem 1.6rem; }
}
