:root {
  --ink: #173b45;
  --muted: #55717a;
  --cream: #fff8e9;
  --paper: #fffdf8;
  --coral: #f4684e;
  --yellow: #f6c84c;
  --leaf: #4d9b70;
  --blue: #84cdd0;
  --line: #d6e4df;
  --shadow: 0 18px 50px rgba(23, 59, 69, .12);
  --display: "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  --body: "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--body); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.topbar { background: var(--ink); color: #e7f7e7; font-size: .82rem; letter-spacing: .04em; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 233, .94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(23,59,69,.1); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; width: 148px; height: 68px; background: url("../../assets/img/logo-cultura-viva-2026.svg") center / contain no-repeat; filter: drop-shadow(0 4px 5px rgba(23, 59, 69, .24)); text-decoration: none; font-size: 0; }
.brand span { display: none; }
.brand small { display: none; }
.brand-mark { display: none; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 9px 14px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { background: var(--yellow); }
.menu-toggle { display: none; border: 0; background: none; color: var(--ink); font-size: 1.6rem; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; letter-spacing: -.045em; margin: 0 0 16px; }
h1 { font-size: clamp(3rem, 7vw, 6.6rem); max-width: 720px; }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 16px; }
.eyebrow { color: var(--coral); text-transform: uppercase; font-weight: 800; letter-spacing: .14em; font-size: .76rem; margin-bottom: 14px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 18px rgba(23,59,69,.18); }
.btn.light { background: var(--paper); color: var(--ink); }
.hero { min-height: 650px; display: grid; align-items: center; overflow: hidden; position: relative; background: linear-gradient(130deg, #d8f0e3 0%, #fff8e9 48%, #ffd4c7 100%); }
.hero:before { content: ""; position: absolute; inset: auto -10% -26% 25%; height: 340px; background: var(--yellow); border-radius: 50%; transform: rotate(-9deg); opacity: .55; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; position: relative; z-index: 1; }
.hero-copy { padding: 70px 0; }
.hero-copy p { max-width: 510px; font-size: 1.13rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { min-height: 570px; position: relative; }
.hero-art img { position: absolute; transition: transform .5s ease; }
.hero-art .girl { width: 40%; right: 25%; bottom: 3%; z-index: 3; }
.hero-art .bird { width: 42%; right: 0; top: 3%; z-index: 2; transform: rotate(5deg); }
.hero-art .otter { width: 40%; left: 0; bottom: 2%; z-index: 4; }
.hero-art:hover .girl { transform: translateY(-10px) rotate(-2deg); }
.hero-art:hover .bird { transform: translate(8px, -8px) rotate(8deg); }
.hero-art:hover .otter { transform: translate(-8px, 4px) rotate(-3deg); }
.section { padding: 92px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-heading p { max-width: 460px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 25px; box-shadow: 0 6px 20px rgba(23,59,69,.04); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.card-visual { height: 190px; overflow: hidden; border-radius: 17px; margin: -8px -8px 22px; display: grid; place-items: center; }
.card-visual.orange { background: #ffd2a9; }
.card-visual.green { background: transparent; }
.card-visual.green img { width: 100%; object-fit: cover; }
.card[href="danza.html"] .card-visual img { width: 100%; object-fit: cover; }
.card[href="cuento.html"] .card-visual img { content: url("../../assets/img/cuentos.png"); width: 100%; object-fit: cover; background: transparent; }
.card-visual.blue { background: #bce5e4; }
.card-visual img { height: 100%; width: 85%; object-fit: contain; }
.card p { color: var(--muted); font-size: .95rem; }
.card-label { color: var(--coral); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.arrow { font-size: 1.25rem; }
.band { background: var(--ink); color: white; padding: 75px 0; overflow: hidden; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.band p { color: #c9dedb; max-width: 510px; }
.band h2 { color: #fff8e9; }
.band-art { display: flex; justify-content: center; position: relative; min-height: 250px; }
.band-art img { position: absolute; height: 320px; width: 70%; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .24)) saturate(1.18) brightness(1.12); }
.band-art img:first-child { left: 0; transform: rotate(-5deg); animation: caiman-drift 5s ease-in-out infinite; }
.band-art img:last-child { right: -3%; transform: rotate(7deg); animation: plants-sway 6s ease-in-out infinite; -webkit-animation: plants-sway 6s ease-in-out infinite; }
.pill-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.pill { background: rgba(255,255,255,.09); border-left: 4px solid var(--yellow); padding: 13px 15px; border-radius: 0 12px 12px 0; }
main > .section:last-child { position: relative; padding-bottom: 180px; }
main > .section:last-child:after { content: ""; position: absolute; left: 50%; bottom: -4px; width: min(100%, 1240px); height: 180px; transform: translateX(-50%); background: url("../../assets/img/plano4@2x.png") center bottom / contain no-repeat; opacity: .72; pointer-events: none; }
main > .section:last-child > .container { position: relative; z-index: 1; }
.footer { background: #102f37; color: #c9dedb; padding: 36px 0; font-size: .9rem; }
.footer .container { display: flex; justify-content: space-between; gap: 20px; }
.page-hero { padding: 90px 0 78px; position: relative; overflow: hidden; background: linear-gradient(120deg, #d8f0e3, #fff8e9 55%, #ffe3a8); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero:after { content: ""; position: absolute; right: 8%; bottom: -28px; width: 270px; height: 330px; background: url("../../assets/img/nina@2x.png") center / contain no-repeat; opacity: .92; pointer-events: none; animation: discipline-float 4.5s ease-in-out infinite; }
.page-concursos .page-hero:after { background-image: url("../../assets/img/chavarri@2x.png"); }
.page-cuento .page-hero:after { background-image: url("../../assets/img/caiman-leyendo.png"); }
.page-pintura .page-hero:after { background-image: url("../../assets/img/tortuga-pintando.png"); }
.page-hero p { max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.breadcrumbs { color: var(--coral); font-weight: 800; font-size: .82rem; margin-bottom: 22px; }
.contest-card { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 25px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 15px; text-decoration: none; }
.contest-card:hover { box-shadow: var(--shadow); }
.contest-card img { height: 130px; width: 155px; object-fit: contain; border-radius: 15px; background: #cbe8de; }
.contest-card { position: relative; }
.contest-card .contest-logo-badge { position: absolute; top: 14px; right: 54px; width: 96px; height: 58px; object-fit: contain; border-radius: 0; background: transparent; filter: drop-shadow(0 3px 3px rgba(23, 59, 69, .16)); pointer-events: none; }
.contest-logo-hero { position: absolute; z-index: 2; right: 11%; top: 22px; width: 230px; height: 135px; object-fit: contain; filter: drop-shadow(0 7px 6px rgba(23, 59, 69, .2)); animation: logo-settle .7s ease-out both; }
.contest-card[href="pintura.html"] img,
.contest-card[href="danza.html"] img,
.contest-card[href="cuento.html"] img { object-fit: contain; background: transparent; }
.contest-card p { color: var(--muted); margin-bottom: 0; }
.contest-meta { color: var(--coral); font-size: .82rem; font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: 1.45fr .8fr; gap: 60px; align-items: start; }
.detail-intro { font-size: 1.1rem; color: var(--muted); }
.info-box { background: var(--ink); color: white; padding: 26px; border-radius: 22px; position: sticky; top: 105px; }
.info-box .btn { display: none; }
.info-box h3 { color: var(--yellow); }
.info-box p { color: #d7ebe7; }
.info-box strong { color: white; }
.info-box hr { border: 0; border-top: 1px solid rgba(255,255,255,.2); margin: 25px 0; }
.rule-list { list-style: none; padding: 0; margin: 26px 0; }
.rule-list li { padding: 12px 0 12px 27px; border-bottom: 1px solid var(--line); position: relative; }
.rule-list li:before { content: "✦"; color: var(--coral); position: absolute; left: 0; font-weight: 900; }
.split-callout { background: #ffe2a2; border-radius: 20px; padding: 28px; margin: 38px 0; }
.criteria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; list-style: none; padding: 0; }
.criteria li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px; font-weight: 700; }
.timeline { display: flex; gap: 12px; margin: 24px 0 35px; }
.timeline div { flex: 1; padding: 15px; border-top: 4px solid var(--coral); background: var(--paper); border-radius: 0 0 12px 12px; }
.timeline span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; font-weight: 800; }
.full-bases { background: #f5efe1; }
.full-bases .section-heading { align-items: start; }
.full-bases .section-heading h2 { max-width: 620px; }
.full-bases .section-heading p { padding-top: 14px; }
.bases-block { max-width: 900px; padding: 28px 0; border-top: 1px solid var(--line); }
.bases-block h3 { color: var(--coral); }
.bases-block p:last-child { margin-bottom: 0; }
.bases-block .rule-list { margin: 12px 0 0; }
.info-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-columns > div { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.info-columns h3 { color: var(--ink); font-size: 1.2rem; }
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes discipline-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes detail-rise { from { opacity: .2; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes logo-settle { from { opacity: 0; transform: translateY(-12px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes caiman-drift { 0%, 100% { transform: translate(0, 0) rotate(-5deg); } 50% { transform: translate(8px, -10px) rotate(-2deg); } }
@keyframes plants-sway { 0%, 100% { transform: translate(0, 0) rotate(7deg); } 50% { transform: translate(-8px, -7px) rotate(4deg); } }
@media (min-width: 761px) {
  .page-hero .reveal { animation: detail-rise .75s ease-out both; }
  .detail-layout > article { animation: detail-rise .75s .12s ease-out both; }
  .detail-layout > .info-box { animation: detail-rise .75s .28s ease-out both; }
  .detail-layout .card { animation: detail-rise .7s .35s ease-out both; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 560px); }
  .topbar .container { display: block; text-align: center; }
  .topbar .container span:last-child { display: none; }
  .nav-wrap { min-height: 67px; }
  .brand { width: 118px; height: 58px; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 67px; left: 0; right: 0; padding: 14px; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .hero { min-height: auto; }
  .hero-grid, .band-grid, .detail-layout { grid-template-columns: 1fr; }
  .hero-copy { padding: 58px 0 10px; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-art { min-height: 400px; }
  .hero-art .girl { width: 45%; right: 25%; bottom: 1%; }
  .hero-art .bird { width: 43%; right: 0; top: 2%; }
  .hero-art .otter { width: 43%; left: 0; bottom: 1%; }
  .section { padding: 60px 0; }
  .section-heading { display: block; }
  .cards { grid-template-columns: 1fr; }
  .info-columns { grid-template-columns: 1fr; }
  .band-art { order: -1; min-height: 220px; }
  .band-art img { height: 230px; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .2)) saturate(1.12) brightness(1.08); animation: none !important; }
  .contest-card { grid-template-columns: 90px 1fr; gap: 15px; }
  .contest-card img { width: 90px; height: 95px; }
  .contest-card .arrow { grid-column: 2; }
    .contest-card .contest-logo-badge { width: 74px; height: 44px; top: 10px; right: 42px; }
    .contest-logo-hero { right: 3%; top: 14px; width: 130px; height: 82px; animation: none; }
  .criteria { grid-template-columns: 1fr; }
  .timeline { display: block; }
  .timeline div { margin-bottom: 10px; }
  .info-box { position: static; }
  .footer .container { display: block; }
  .footer p { margin-bottom: 8px; }
  main > .section:last-child { padding-bottom: 130px; }
  main > .section:last-child:after { height: 130px; opacity: .62; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .page-hero:after { width: 145px; height: 175px; right: 2%; bottom: -12px; animation: none; opacity: .5; }
  .hero-art img, .card, .btn { transition: none; }
  .hero-art:hover .girl, .hero-art:hover .bird, .hero-art:hover .otter, .card:hover, .btn:hover { transform: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
