:root {
  --purple: #72409a;
  --lilac: #b47fb2;
  --lilac-light: #bb83bb;
  --ink: #333;
  --muted: #666;
  --surface: #f8f5fa;
  --white: #fff;
  --shadow: 0 18px 45px rgba(69, 39, 90, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: "Open Sans", Arial, sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: 76px 0; }
.section-kicker { margin: 0 0 8px; color: var(--purple); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-title { margin: 0 0 18px; color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; }
.section-lead { max-width: 700px; margin: 0 auto 38px; color: var(--muted); text-align: center; }

.site-header { position: sticky; z-index: 20; top: 0; min-height: 70px; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(114,64,154,.12); backdrop-filter: blur(12px); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 58px; max-height: 58px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); }
.main-nav a { position: relative; text-decoration: none; color: #49424e; font-size: .91rem; font-weight: 600; }
.main-nav a::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; content: ""; background: var(--purple); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; color: var(--purple); background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.hero { min-height: min(760px, calc(100vh - 70px)); display: grid; place-items: center; color: var(--white); background: linear-gradient(105deg, rgba(45,20,61,.88), rgba(114,64,154,.68)), url("../images/site/corridadobatom-hero.webp") center 32% / cover no-repeat; }
.hero > .container { min-width: 0; justify-self: stretch; }
.hero-content { width: 100%; min-width: 0; max-width: 780px; padding: 86px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { width: 7px; height: 7px; content: ""; background: #e7bee5; border-radius: 50%; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.35rem, 6vw, 5rem); line-height: .98; letter-spacing: -.035em; text-transform: uppercase; }
.hero-subtitle { margin: 22px 0 32px; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.next-edition { max-width: 590px; margin-bottom: 28px; padding: 20px 24px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); border-radius: 16px; backdrop-filter: blur(6px); }
.next-edition strong { display: block; font-size: clamp(1.25rem, 3vw, 1.7rem); letter-spacing: .035em; }
.next-edition span { color: #f0d9ef; }
.hero-copy { max-width: 660px; margin-bottom: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; color: var(--purple); background: var(--white); border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; box-shadow: 0 10px 24px rgba(0,0,0,.18); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 7vw, 80px); }
.about-copy p { color: #535053; }
.about-image { overflow: hidden; min-height: 430px; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-image img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }

.advertising { width: min(100%, 1000px); margin: 0 auto; padding: 24px 16px; text-align: center; }
.advertising-label { display: block; margin-bottom: 7px; color: #8a858b; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.ad-slot { width: 100%; margin-inline: auto; overflow: hidden; background: #fafafa; border: 1px dashed #d7d3d8; border-radius: 8px; }
.ad-horizontal { max-width: 970px; min-height: 90px; }
.ad-rectangle { max-width: 336px; min-height: 100px; }

.edition { background: var(--surface); }
.edition-heading { text-align: center; }
.edition-gallery { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-bottom: 28px; }
.edition-gallery img { width: 100%; height: 330px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.edition-gallery img:last-child { object-position: center; }
.stats-grid, .purpose-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { padding: 25px 18px; text-align: center; background: var(--white); border-radius: 16px; box-shadow: 0 8px 28px rgba(69,39,90,.08); }
.stat-card strong { display: block; color: var(--purple); font-size: 1.7rem; line-height: 1.2; }
.stat-card span { color: var(--muted); font-size: .9rem; }

.purpose-heading { max-width: 700px; margin: 0 auto 38px; text-align: center; }
.purpose-card { min-height: 205px; padding: 28px 24px; background: var(--white); border: 1px solid #eee7f0; border-radius: 18px; box-shadow: 0 10px 26px rgba(69,39,90,.07); }
.purpose-number { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 24px; color: var(--white); background: var(--purple); border-radius: 50%; font-size: .8rem; font-weight: 700; }
.purpose-card h3 { margin: 0 0 10px; color: var(--purple); font-size: .98rem; text-transform: uppercase; }
.purpose-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.next-section { position: relative; isolation: isolate; padding: 104px 0; color: var(--white); background: url("../images/site/corridadobatom-registro.webp") center / cover no-repeat; text-align: center; }
.next-section::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(120deg, rgba(48,21,65,.94), rgba(114,64,154,.78)); }
.next-content { max-width: 820px; }
.next-section .section-kicker, .next-section .section-title { color: var(--white); }
.next-section p { max-width: 690px; margin: 0 auto 26px; }
.date-alert { display: inline-block; margin-top: 12px; padding: 14px 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.38); border-radius: 12px; font-size: .87rem; font-weight: 700; letter-spacing: .04em; }

.realization { padding: 70px 0; text-align: center; }
.realization-logo { width: min(390px, 90%); max-height: 130px; margin: 26px auto 0; object-fit: contain; }
.site-footer { padding: 42px 0; color: rgba(255,255,255,.76); background: #29242c; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.footer-title { margin: 0 0 5px; color: var(--white); font-size: 1.05rem; font-weight: 700; }
.footer-inner p { margin: 3px 0; }
.footer-credit { text-align: right; }
.footer-credit a { color: var(--white); }

@media (max-width: 900px) {
  .stats-grid, .purpose-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-image, .about-image img { min-height: 340px; }
  .edition-gallery img { height: 280px; }
}

@media (max-width: 760px) {
  .section { padding: 58px 0; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 70px; right: 0; left: 0; display: none; padding: 12px 16px 20px; background: var(--white); border-bottom: 1px solid #e9e2eb; box-shadow: 0 16px 30px rgba(48,21,65,.1); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 11px 4px; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; background-position: 58% center; }
  .hero-content { padding: 70px 0; }
  .edition-gallery { grid-template-columns: 1fr; }
  .edition-gallery img { height: 260px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-credit { text-align: left; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 24px), 1120px); }
  .hero > .container { width: calc(100vw - 24px); }
  .brand img { width: 54px; }
  .hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .hero-subtitle, .hero-copy { overflow-wrap: anywhere; }
  .hero-content { padding: 58px 0 64px; }
  .next-edition { padding: 16px; }
  .stats-grid, .purpose-grid { grid-template-columns: 1fr; }
  .about-image, .about-image img { min-height: 270px; }
  .edition-gallery img { height: 230px; }
  .ad-horizontal { min-height: 100px; }
  .next-section { padding: 78px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
