:root {
  --blue: #174f9f;
  --blue-dark: #0a2856;
  --red: #ed1c24;
  --ink: #172033;
  --muted: #607086;
  --paper: #f5f7fb;
  --white: #fff;
  --line: #dfe5ee;
  --shadow: 0 18px 44px rgba(10, 40, 86, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 99; background: var(--white); padding: .8rem 1rem; border-radius: .7rem; box-shadow: var(--shadow); }
.skip:focus { top: 1rem; }

.topbar { position: sticky; top: 0; z-index: 20; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .6rem max(5vw, 1.2rem); background: rgba(255,255,255,.96); border-top: 5px solid var(--red); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 0; }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.18rem; color: var(--blue-dark); }
.brand small { margin-top: .32rem; color: var(--muted); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: .25rem; }
nav a { text-decoration: none; font-weight: 750; padding: .72rem .9rem; border-radius: .7rem; color: #334057; }
nav a:hover, nav a[aria-current="page"] { color: var(--blue); background: #eef4ff; }
.nav-cta { color: var(--white) !important; background: var(--blue) !important; }
.menu-button { display: none; border: 0; border-radius: .65rem; padding: .72rem .9rem; color: var(--white); background: var(--blue); font-weight: 800; }

main { overflow: hidden; }
.masthead { max-width: 1180px; margin: 0 auto; padding: 4rem 1.25rem 2rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.kicker { margin: 0 0 .65rem; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.masthead h1 { max-width: 800px; margin: 0; color: var(--blue-dark); font-size: clamp(2.2rem, 5vw, 4.7rem); letter-spacing: -.055em; line-height: .98; }
.masthead p:last-child { max-width: 380px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }

.headline-grid { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem 5rem; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.headline-card { position: relative; min-height: 270px; overflow: hidden; border-radius: 1.15rem; background: var(--white); box-shadow: 0 8px 28px rgba(10,40,86,.08); text-decoration: none; isolation: isolate; }
.headline-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.headline-card:hover img { transform: scale(1.035); }
.headline-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 25%, rgba(4,18,42,.9) 100%); }
.headline-card .headline-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.35rem; color: var(--white); }
.headline-card .tag { display: inline-block; margin-bottom: .55rem; color: #fff; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.headline-card h2, .headline-card h3 { margin: 0; line-height: 1.08; letter-spacing: -.025em; }
.headline-card h2 { font-size: clamp(1.8rem, 3.6vw, 3.3rem); }
.headline-card h3 { font-size: clamp(1.22rem, 2vw, 1.65rem); }
.headline-card p { margin: .62rem 0 0; color: rgba(255,255,255,.86); line-height: 1.45; font-size: .92rem; }
.headline-main { grid-column: span 7; min-height: 520px; }
.headline-side { grid-column: span 5; min-height: 252px; }
.headline-third { grid-column: span 4; }
.headline-half { grid-column: span 6; }
.fit-contain img { object-fit: contain; padding: 2.2rem; background: var(--white); }
.fit-contain::after { background: linear-gradient(180deg, transparent 25%, rgba(4,18,42,.94) 100%); }
.brand-tile { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.brand-tile::before { content: "ESI"; position: absolute; z-index: -1; top: -1.5rem; right: -1rem; font-size: 12rem; font-weight: 950; color: rgba(255,255,255,.08); letter-spacing: -.12em; }
.fair-tile { background: linear-gradient(145deg, #ef3e45 0 48%, #174f9f 48% 100%); }
.fair-tile::before { content: "13 NOV"; position: absolute; top: 1.2rem; right: 1.25rem; color: rgba(255,255,255,.16); font-size: clamp(3rem, 7vw, 6rem); line-height: .8; font-weight: 950; letter-spacing: -.08em; }
.fair-tile::after, .brand-tile::after { background: linear-gradient(180deg, transparent 20%, rgba(4,18,42,.72) 100%); }

.news-strip { border-top: 1px solid var(--line); background: var(--white); }
.news-strip-inner { max-width: 1180px; margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .88rem; }
.news-strip strong { color: var(--red); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }

/* Página inicial editorial */
.home { background: #fff; }
.home-intro { max-width: 1180px; margin: 0 auto; padding: 4.5rem 1.25rem 3.2rem; display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 4rem; align-items: end; }
.home-intro h1 { max-width: 820px; margin: 0; color: var(--blue-dark); font-size: clamp(2.6rem, 5.8vw, 5.3rem); line-height: .98; letter-spacing: -.062em; }
.home-intro > p { margin: 0 0 .4rem; padding-left: 1.4rem; border-left: 3px solid var(--red); color: var(--muted); font-size: 1rem; line-height: 1.7; }
.home-section { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: 2.8rem 0 5.2rem; }
.category-heading { margin-bottom: 1.5rem; padding-bottom: 1rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.category-heading > div { display: flex; align-items: center; gap: 1rem; }
.category-heading > div > span { color: #aeb8c6; font-size: 1.5rem; font-weight: 900; letter-spacing: -.04em; }
.category-heading .kicker { margin-bottom: .25rem; }
.category-heading h2 { margin: 0; color: var(--blue-dark); font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.category-heading > a { flex: 0 0 auto; color: var(--blue); font-size: .87rem; font-weight: 850; text-decoration: none; }
.category-heading > a:hover { color: var(--red); }
.category-heading > p { max-width: 340px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; text-align: right; }

.events-editorial { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .8fr); gap: 1.2rem; }
.event-feature { position: relative; min-height: 570px; overflow: hidden; border-radius: 1rem; color: #fff; text-decoration: none; background: var(--blue-dark); box-shadow: 0 16px 45px rgba(10,40,86,.15); }
.event-feature::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(3,17,39,.94), rgba(3,17,39,.1) 68%); }
.event-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.event-feature:hover img { transform: scale(1.025); }
.event-feature-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(1.6rem, 4vw, 3rem); }
.content-label { display: inline-block; margin-bottom: .7rem; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.event-feature h3 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.02; letter-spacing: -.045em; }
.event-feature p { max-width: 600px; margin: .8rem 0 1.2rem; color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.55; }
.event-feature strong, .event-secondary strong { font-size: .85rem; }

.event-secondary { min-height: 570px; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: 1rem; color: #fff; text-decoration: none; background: linear-gradient(155deg, var(--red) 0 43%, #b91624 43% 55%, var(--blue) 55% 100%); box-shadow: 0 16px 45px rgba(10,40,86,.15); }
.event-date-block { align-self: flex-start; width: 128px; height: 142px; padding: 1rem; display: grid; align-content: center; justify-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: .9rem; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.event-date-block span { font-size: 4.5rem; font-weight: 950; line-height: .75; letter-spacing: -.08em; }
.event-date-block strong { margin-top: .65rem; font-size: 1rem; letter-spacing: .2em; }
.event-date-block small { margin-top: .3rem; opacity: .75; }
.event-secondary-copy h3 { margin: .2rem 0 .8rem; font-size: clamp(1.65rem, 2vw, 1.9rem); line-height: 1.05; letter-spacing: -.04em; }
.event-secondary-copy p { margin: 0 0 1.4rem; color: rgba(255,255,255,.82); line-height: 1.6; }

.materials-section { background: #f2f5fa; border-top: 1px solid #e4e9f1; border-bottom: 1px solid #e4e9f1; }
.materials-section .home-section { padding-top: 4.8rem; }
.materials-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.material-card { grid-column: span 4; min-width: 0; overflow: hidden; border-radius: .9rem; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid #e2e7ef; box-shadow: 0 8px 22px rgba(10,40,86,.055); transition: transform .22s ease, box-shadow .22s ease; }
.material-card:nth-child(4), .material-card:nth-child(5) { grid-column: span 6; }
.material-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(10,40,86,.12); }
.material-media { height: 255px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid #e8ecf2; background: #fff; }
.material-media img { width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; padding: 1.8rem; transition: transform .25s ease; }
.material-card:hover .material-media img { transform: scale(1.025); }
.material-copy { position: relative; min-height: 205px; padding: 1.3rem 1.35rem 1.45rem; }
.material-copy span { color: var(--red); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.material-copy h3 { margin: .45rem 0 .55rem; color: var(--blue-dark); font-size: 1.5rem; line-height: 1.12; letter-spacing: -.025em; }
.material-copy p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.material-copy b { position: absolute; left: 1.35rem; bottom: 1.3rem; color: var(--blue); font-size: .78rem; }
.material-tictac { border-top: 4px solid #f9b61e; }
.material-brincando { border-top: 4px solid #e54a78; }
.material-geekie { border-top: 4px solid #fb1c50; }
.material-cora { border-top: 4px solid #0c4b4a; }
.material-richmond { border-top: 4px solid #7d11db; }

.about-home { width: min(1100px, calc(100% - 2.5rem)); margin: 5rem auto; padding: 3rem 3.5rem; display: grid; grid-template-columns: 170px 1fr; gap: 3rem; align-items: center; border-radius: 1.2rem; color: #fff; background: var(--blue-dark); overflow: hidden; }
.about-logo { width: 170px; height: 170px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.about-logo img { width: 150px; height: 150px; object-fit: contain; border-radius: 50%; }
.about-home .kicker { color: #ff7b80; }
.about-home h2 { max-width: 720px; margin: 0 0 1.2rem; font-size: clamp(1.7rem, 3vw, 2.75rem); line-height: 1.08; letter-spacing: -.035em; }
.about-home a { color: #fff; font-size: .85rem; font-weight: 850; text-decoration: none; }

.article-hero { position: relative; min-height: 480px; display: grid; place-items: end start; background: var(--blue-dark); overflow: hidden; }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .68; }
.article-hero.contain img { object-fit: contain; padding: 2rem; background: #fff; opacity: 1; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,25,57,.85), rgba(5,25,57,.1)), linear-gradient(0deg, rgba(5,25,57,.9), transparent 65%); }
.article-hero.contain::after { background: linear-gradient(0deg, rgba(5,25,57,.92), transparent 62%); }
.article-hero-copy { position: relative; z-index: 2; width: min(900px, calc(100% - 2rem)); margin: 0 auto; padding: 5rem 0 3.5rem; color: var(--white); }
.article-hero h1 { margin: .5rem 0 0; font-size: clamp(2.35rem, 6vw, 5rem); line-height: .98; letter-spacing: -.05em; }
.article-hero .deck { max-width: 690px; margin: 1rem 0 0; color: rgba(255,255,255,.88); font-size: 1.1rem; line-height: 1.55; }
.article-body { width: min(760px, calc(100% - 2.4rem)); margin: 0 auto; padding: 4rem 0 5rem; }
.article-body .meta { margin: 0 0 2.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.article-body h2 { margin: 2.4rem 0 .8rem; color: var(--blue-dark); font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.article-body p, .article-body li { color: #3f4c60; font-size: 1.07rem; line-height: 1.78; }
.article-body ul { padding-left: 1.2rem; }
.info-box { margin: 2rem 0; padding: 1.4rem; border-left: 5px solid var(--red); border-radius: 0 .9rem .9rem 0; background: #fff; box-shadow: 0 8px 26px rgba(10,40,86,.07); }
.info-box strong { display: block; color: var(--blue-dark); font-size: 1.15rem; }
.info-box p { margin: .45rem 0 0; }
.back-link { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 2rem; color: var(--blue); font-weight: 850; text-decoration: none; }

.solution-intro { width: min(900px, calc(100% - 2.4rem)); margin: 0 auto; padding: 4rem 0 1rem; }
.solution-intro h1 { margin: 0; color: var(--blue-dark); font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.05em; line-height: 1; }
.solution-intro > p { max-width: 720px; color: var(--muted); line-height: 1.7; }
.solution-stack { width: min(1000px, calc(100% - 2.4rem)); margin: 0 auto; padding: 2rem 0 5rem; display: grid; gap: 1.2rem; }
.solution-block { display: grid; grid-template-columns: minmax(240px, 40%) 1fr; overflow: hidden; border-radius: 1.2rem; background: #fff; box-shadow: 0 8px 30px rgba(10,40,86,.08); }
.solution-block:nth-child(even) { grid-template-columns: 1fr minmax(240px, 40%); }
.solution-block:nth-child(even) .solution-image { order: 2; }
.solution-image { min-height: 330px; display: grid; place-items: center; background: #f7f8fb; }
.solution-image img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; padding: 1.5rem; }
.solution-copy { padding: clamp(1.6rem, 4vw, 3rem); align-self: center; }
.solution-copy span { color: var(--red); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.solution-copy h2 { margin: .55rem 0 .8rem; color: var(--blue-dark); font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.solution-copy p { color: #46546a; line-height: 1.7; }

.event-list { width: min(1000px, calc(100% - 2.4rem)); margin: 0 auto; padding: 4rem 0 5rem; display: grid; gap: 1rem; }
.event-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 1.4rem; align-items: center; padding: 1.2rem; border-radius: 1rem; background: #fff; text-decoration: none; box-shadow: 0 7px 25px rgba(10,40,86,.07); }
.event-row img { width: 100px; height: 100px; border-radius: .8rem; object-fit: cover; }
.event-date { width: 100px; height: 100px; display: grid; place-items: center; border-radius: .8rem; background: linear-gradient(145deg, var(--red) 0 48%, var(--blue) 48%); color: #fff; font-size: 1.35rem; font-weight: 950; text-align: center; }
.event-row h2 { margin: 0 0 .35rem; color: var(--blue-dark); }
.event-row p { margin: 0; color: var(--muted); line-height: 1.45; }
.event-row b { color: var(--blue); font-size: 1.6rem; }

/* Galeria de eventos */
.event-gallery-section { width: min(1180px, calc(100% - 2.4rem)); margin: 0 auto; padding: 1rem 0 6rem; }
.event-gallery-heading { margin-bottom: 1.5rem; padding-bottom: 1.2rem; display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 2rem; align-items: end; border-bottom: 1px solid var(--line); }
.event-gallery-heading .kicker { margin-bottom: .35rem; }
.event-gallery-heading h2 { margin: 0; color: var(--blue-dark); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.045em; }
.event-gallery-heading > p { margin: 0; color: var(--muted); line-height: 1.6; }
.event-gallery { min-height: 180px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.gallery-status, .gallery-empty { grid-column: 1 / -1; margin: 0; padding: 2.4rem; border: 1px dashed #c8d2e1; border-radius: 1rem; color: var(--muted); text-align: center; background: #fff; }
.gallery-empty strong { display: block; margin-bottom: .35rem; color: var(--blue-dark); font-size: 1.15rem; }
.gallery-empty p { margin: 0; line-height: 1.55; }
.gallery-photo { position: relative; min-height: 265px; padding: 0; overflow: hidden; border: 0; border-radius: .9rem; background: #dfe5ee; cursor: zoom-in; box-shadow: 0 7px 24px rgba(10,40,86,.1); }
.gallery-photo img { width: 100%; height: 100%; min-height: 265px; max-height: 360px; object-fit: cover; transition: transform .3s ease; }
.gallery-photo:hover img, .gallery-photo:focus-visible img { transform: scale(1.025); }
.gallery-photo:focus-visible { outline: 4px solid rgba(23,79,159,.3); outline-offset: 3px; }
.gallery-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; color: #fff; font: 750 .82rem/1.35 Inter, ui-sans-serif, system-ui, sans-serif; text-align: left; background: linear-gradient(transparent, rgba(3,17,39,.9)); }
.gallery-lightbox { width: min(1100px, calc(100% - 2rem)); max-width: none; max-height: calc(100vh - 2rem); padding: 0; overflow: hidden; border: 0; border-radius: 1rem; color: #fff; background: #071a36; box-shadow: 0 26px 80px rgba(0,0,0,.45); }
.gallery-lightbox::backdrop { background: rgba(2,12,28,.86); backdrop-filter: blur(5px); }
.gallery-lightbox img { width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; background: #050e1d; }
.gallery-lightbox p { margin: 0; padding: 1rem 4.5rem 1rem 1.2rem; color: rgba(255,255,255,.86); }
.gallery-lightbox-close { position: absolute; z-index: 2; top: .8rem; right: .8rem; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; background: rgba(5,18,40,.72); font-size: 2rem; line-height: 1; cursor: pointer; }

footer { border-top: 5px solid var(--blue); background: var(--blue-dark); color: rgba(255,255,255,.78); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 2.2rem 1.25rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; background: #fff; }
.footer-brand strong { display: block; color: #fff; }
.footer-brand small { display: block; margin-top: .3rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .9rem; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 700; }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; }

@media (max-width: 850px) {
  .topbar { min-height: 72px; }
  .brand img { width: 48px; height: 48px; }
  .brand small { display: none; }
  .menu-button { display: block; }
  nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; align-items: stretch; padding: .7rem 1rem 1rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  nav.open { display: grid; }
  .home-intro { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 3rem; }
  .home-intro > p { max-width: 620px; }
  .events-editorial { grid-template-columns: 1fr; }
  .event-feature, .event-secondary { min-height: 480px; }
  .event-secondary { min-height: 430px; }
  .material-card, .material-card:nth-child(4), .material-card:nth-child(5) { grid-column: span 6; }
  .material-card:last-child { grid-column: 4 / span 6; }
  .about-home { grid-template-columns: 130px 1fr; padding: 2.2rem; gap: 2rem; }
  .about-logo { width: 130px; height: 130px; }
  .about-logo img { width: 116px; height: 116px; }
  .masthead { grid-template-columns: 1fr; padding-top: 2.8rem; }
  .headline-main, .headline-side, .headline-third, .headline-half { grid-column: 1 / -1; min-height: 340px; }
  .headline-main { min-height: 460px; }
  .solution-block, .solution-block:nth-child(even) { grid-template-columns: 1fr; }
  .solution-block:nth-child(even) .solution-image { order: 0; }
  .solution-image { min-height: 260px; }
  .event-gallery-heading { grid-template-columns: 1fr; gap: .8rem; }
  .event-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .brand strong { font-size: .98rem; }
  .masthead { padding-top: 2rem; }
  .home-intro { padding: 2.4rem 1.25rem 2rem; }
  .home-intro h1 br { display: none; }
  .home-section { width: min(100% - 2rem, 1180px); padding: 2rem 0 3.5rem; }
  .category-heading { align-items: flex-start; }
  .category-heading > div { align-items: flex-start; }
  .category-heading > div > span { font-size: 1rem; }
  .category-heading > a { display: none; }
  .category-heading > p { display: none; }
  .event-feature { min-height: 440px; }
  .event-feature p { display: none; }
  .event-secondary { min-height: 390px; padding: 1.45rem; }
  .event-date-block { width: 105px; height: 118px; }
  .event-date-block span { font-size: 3.7rem; }
  .materials-section .home-section { padding-top: 3.5rem; }
  .materials-grid { display: grid; grid-template-columns: 1fr; }
  .material-card, .material-card:nth-child(4), .material-card:nth-child(5), .material-card:last-child { grid-column: 1; }
  .material-media { height: 235px; }
  .material-copy { min-height: 185px; }
  .about-home { grid-template-columns: 1fr; padding: 2rem; margin: 3rem auto; }
  .about-logo { width: 110px; height: 110px; }
  .about-logo img { width: 98px; height: 98px; }
  .headline-grid { gap: .8rem; }
  .headline-card, .headline-side, .headline-third, .headline-half { min-height: 310px; }
  .headline-main { min-height: 410px; }
  .headline-card p { display: none; }
  .article-hero { min-height: 420px; }
  .article-hero-copy { padding-bottom: 2.2rem; }
  .event-row { grid-template-columns: 74px 1fr; }
  .event-row img { width: 74px; height: 74px; }
  .event-date { width: 74px; height: 74px; font-size: 1rem; }
  .event-row b { display: none; }
  .event-gallery-section { width: min(100% - 2rem, 1180px); padding-bottom: 4rem; }
  .event-gallery { grid-template-columns: 1fr; }
  .gallery-photo, .gallery-photo img { min-height: 300px; }
}

/* Destaque do Museu Digital na página inicial */
.museum-home { width: min(1180px, calc(100% - 2.5rem)); min-height: 560px; margin: 5rem auto; display: grid; grid-template-columns: minmax(0, .85fr) minmax(480px, 1.15fr); overflow: hidden; border-radius: 1.2rem; color: #fff; background: #10294d; box-shadow: 0 20px 60px rgba(10,40,86,.18); }
.museum-home-copy { padding: clamp(2.4rem, 5vw, 5rem); align-self: center; }
.museum-home-copy .kicker { color: #ffc9a4; }
.museum-home-copy h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5rem); line-height: .92; letter-spacing: -.065em; }
.museum-home-copy h2 em { display: block; color: #ff705d; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.museum-home-copy p:not(.kicker) { max-width: 500px; margin: 1.4rem 0 2rem; color: rgba(255,255,255,.76); line-height: 1.7; }
.museum-home-copy a { display: inline-flex; align-items: center; gap: .8rem; padding-bottom: .35rem; border-bottom: 1px solid rgba(255,255,255,.45); color: #fff; font-size: .86rem; font-weight: 850; text-decoration: none; }
.museum-home-copy a span { color: #ff705d; font-size: 1.2rem; }
.museum-home-preview { position: relative; min-height: 560px; overflow: hidden; background: linear-gradient(135deg, #f5c948 0 35%, #ea5c4f 35% 66%, #79b7aa 66%); }
.museum-home-preview::before { content: ""; position: absolute; width: 380px; height: 380px; left: 50%; top: 50%; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; transform: translate(-50%, -50%); }
.museum-home-frame { position: absolute; display: block; border: 10px solid #f9f2df; background: #fff; box-shadow: 0 18px 40px rgba(16,41,77,.24); transform: rotate(var(--tilt)); }
.museum-home-frame::after { content: ""; position: absolute; inset: 10px; background: var(--art); }
.museum-home-frame.frame-one { --tilt: -8deg; --art: linear-gradient(135deg, #174f9f 0 32%, #f7d150 32% 60%, #ed5e50 60%); width: 210px; height: 270px; left: 9%; top: 12%; }
.museum-home-frame.frame-two { --tilt: 6deg; --art: radial-gradient(circle at 28% 35%, #f6ca48 0 18%, transparent 19%), linear-gradient(145deg, #ed5e50 0 45%, #24436e 45%); width: 250px; height: 190px; right: 8%; top: 20%; }
.museum-home-frame.frame-three { --tilt: 3deg; --art: linear-gradient(155deg, #77b3a8 0 37%, #f5efe0 37% 64%, #174f9f 64%); width: 235px; height: 180px; left: 32%; bottom: 8%; }
.museum-home-preview strong { position: absolute; z-index: 3; right: 7%; bottom: 7%; color: #10294d; font: italic 400 clamp(1.5rem, 2.6vw, 2.5rem)/.95 Georgia, "Times New Roman", serif; text-align: right; }

/* Museu Digital ESI */
.museum-page { background: #f7f3ea; }
.museum-page main { background: #f7f3ea; }
.museum-hero { position: relative; min-height: calc(100vh - 82px); padding: clamp(3rem, 7vw, 7rem) max(5vw, 1.25rem); display: grid; grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); overflow: hidden; color: #fff; background: #10294d; }
.museum-hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, transparent, #000); }
.museum-hero-copy { position: relative; z-index: 2; max-width: 650px; }
.museum-eyebrow { margin: 0 0 1.5rem; color: rgba(255,255,255,.7); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.museum-eyebrow span { margin-right: .75rem; padding: .38rem .62rem; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; color: #ffd84d; }
.museum-hero h1 { margin: 0; font-size: clamp(4rem, 9vw, 8.5rem); line-height: .75; letter-spacing: -.082em; }
.museum-hero h1 em { color: #ff705d; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.museum-deck { max-width: 570px; margin: 2.2rem 0; color: rgba(255,255,255,.74); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.7; }
.museum-hero-link { display: inline-flex; align-items: center; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px solid rgba(255,255,255,.45); color: #fff; font-size: .82rem; font-weight: 850; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.museum-hero-link span { color: #ffd84d; font-size: 1.2rem; }
.museum-installation { position: relative; z-index: 1; min-height: 620px; }
.museum-frame { position: absolute; display: grid; place-items: center; border: 12px solid #f5ecda; box-shadow: 0 24px 55px rgba(0,0,0,.28); overflow: hidden; }
.museum-frame::before { content: ""; position: absolute; inset: 13px; background: var(--art); }
.museum-frame span { position: relative; z-index: 1; color: var(--word); font: italic 400 clamp(1.4rem, 3vw, 2.6rem)/1 Georgia, "Times New Roman", serif; transform: rotate(calc(var(--rotate) * -1)); }
.museum-frame-a { --art: linear-gradient(135deg, #f5c948 0 38%, #ec5c50 38% 67%, #26476f 67%); --word: #fff; --rotate: -7deg; width: 47%; height: 52%; left: 2%; top: 4%; transform: rotate(var(--rotate)); }
.museum-frame-b { --art: radial-gradient(circle at 34% 30%, #f9d34c 0 16%, transparent 17%), linear-gradient(150deg, #78b5a9 0 52%, #e75d52 52%); --word: #10294d; --rotate: 5deg; width: 48%; height: 38%; right: 0; top: 15%; transform: rotate(var(--rotate)); }
.museum-frame-c { --art: linear-gradient(155deg, #f2e9d5 0 30%, #174f9f 30% 57%, #f6c948 57% 76%, #e85e51 76%); --word: #fff; --rotate: 3deg; width: 54%; height: 36%; left: 23%; bottom: 4%; transform: rotate(var(--rotate)); }
.museum-mark { position: absolute; z-index: 3; right: 4%; bottom: 10%; color: #ffd84d; font-size: clamp(3.4rem, 7vw, 6.8rem); font-weight: 950; line-height: .57; letter-spacing: -.1em; transform: rotate(-5deg); text-shadow: 0 12px 30px rgba(0,0,0,.28); }
.museum-mark small { color: #fff; font: italic 400 .34em/1 Georgia, "Times New Roman", serif; letter-spacing: 0; }
.museum-scroll-note { position: absolute; left: max(5vw, 1.25rem); bottom: 2rem; margin: 0; color: rgba(255,255,255,.48); font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl; }

.museum-manifesto { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: 8rem 0; display: grid; grid-template-columns: 70px minmax(0, 1.2fr) minmax(280px, .8fr); gap: 2rem; align-items: start; }
.museum-section-number { margin: .25rem 0 0; color: #9c978c; font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.museum-manifesto h2, .museum-values h2 { max-width: 720px; margin: 0; color: #10294d; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .95; letter-spacing: -.06em; }
.museum-manifesto > p:last-child { margin: 1.3rem 0 0; color: #5e6570; font-size: 1.05rem; line-height: 1.8; }

.museum-collection { padding: 7rem max(5vw, 1.25rem); background: #fff; }
.museum-collection-heading { max-width: 1180px; margin: 0 auto 2.2rem; padding-bottom: 1.5rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; border-bottom: 1px solid #dfe3e8; }
.museum-collection-heading h2 { margin: 0; color: #10294d; font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.06em; }
.museum-count { margin: 0 0 .25rem; color: #6c7580; font-size: .82rem; font-weight: 750; }
.museum-toolbar { max-width: 1180px; margin: 0 auto 3.2rem; display: grid; gap: 1rem; }
.museum-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.museum-filter-group > span { min-width: 84px; color: #10294d; font-size: .69rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.museum-filter-group button { padding: .55rem .84rem; border: 1px solid #d8dde4; border-radius: 99px; color: #526071; background: #fff; font: 750 .76rem/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.museum-filter-group button:hover, .museum-filter-group button:focus-visible { border-color: #174f9f; color: #174f9f; }
.museum-filter-group button.is-active { border-color: #10294d; color: #fff; background: #10294d; }
.museum-grid { max-width: 1180px; margin: 0 auto; columns: 3 280px; column-gap: 1.2rem; }
.museum-card { margin: 0 0 1.2rem; break-inside: avoid; }
.museum-card-button { width: 100%; padding: 0; display: block; overflow: hidden; border: 0; color: #10294d; text-align: left; background: #f7f3ea; cursor: zoom-in; }
.museum-card-image { position: relative; display: block; overflow: hidden; background: #e6e1d7; }
.museum-card-image img { width: 100%; height: auto; transition: transform .35s ease; }
.museum-card-button:hover img, .museum-card-button:focus-visible img { transform: scale(1.025); }
.museum-card-button:focus-visible { outline: 4px solid rgba(23,79,159,.3); outline-offset: 4px; }
.museum-card-number { position: absolute; right: .8rem; top: .8rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #10294d; background: rgba(255,255,255,.9); font-size: .68rem; font-weight: 900; }
.museum-card-copy { padding: 1.1rem 1.2rem 1.3rem; display: grid; }
.museum-card-category { margin-bottom: .45rem; color: #d84d43; font-size: .64rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.museum-card-copy strong { font: 400 1.55rem/1.1 Georgia, "Times New Roman", serif; }
.museum-card-copy > span:last-child { margin-top: .5rem; color: #66707b; font-size: .76rem; }
.museum-empty { max-width: 1180px; margin: 0 auto; padding: 4rem 2rem; border: 1px solid #ded8ca; text-align: center; background: #f7f3ea; }
.museum-empty-art { position: relative; width: 220px; height: 150px; margin: 0 auto 2rem; }
.museum-empty-art span { position: absolute; display: block; border: 7px solid #fff; box-shadow: 0 10px 25px rgba(16,41,77,.12); }
.museum-empty-art span:nth-child(1) { width: 88px; height: 112px; left: 8px; top: 15px; background: #f5c948; transform: rotate(-7deg); }
.museum-empty-art span:nth-child(2) { width: 108px; height: 78px; right: 4px; top: 2px; background: #e95d50; transform: rotate(5deg); }
.museum-empty-art span:nth-child(3) { width: 100px; height: 70px; left: 74px; bottom: 0; background: #74afa6; transform: rotate(2deg); }
.museum-empty h3 { margin: 0; color: #10294d; font: 400 clamp(2rem, 4vw, 3.2rem)/1 Georgia, "Times New Roman", serif; }
.museum-empty > p:last-child { max-width: 520px; margin: 1rem auto 0; color: #65707c; line-height: 1.7; }

.museum-values { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: 8rem 0; display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 8vw, 8rem); }
.museum-values-intro .museum-section-number { margin-bottom: 2rem; }
.museum-value-list { border-top: 1px solid #cfc8bb; }
.museum-value-list article { padding: 1.7rem 0; display: grid; grid-template-columns: 50px 180px 1fr; gap: 1rem; border-bottom: 1px solid #cfc8bb; }
.museum-value-list article > span { color: #d64e44; font-size: .7rem; font-weight: 900; }
.museum-value-list h3 { margin: 0; color: #10294d; font-size: 1rem; }
.museum-value-list p { margin: 0; color: #626b76; font-size: .9rem; line-height: 1.6; }

.museum-dialog { width: min(1180px, calc(100% - 2rem)); max-width: none; max-height: calc(100vh - 2rem); padding: 0; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); overflow: hidden; border: 0; color: #fff; background: #10294d; box-shadow: 0 30px 100px rgba(0,0,0,.48); }
.museum-dialog[open] { display: grid; }
.museum-dialog::backdrop { background: rgba(5,16,33,.9); backdrop-filter: blur(6px); }
.museum-dialog-media { min-height: 70vh; display: grid; place-items: center; background: #081a33; }
.museum-dialog-media img { width: 100%; height: 100%; max-height: calc(100vh - 2rem); object-fit: contain; }
.museum-dialog-copy { padding: clamp(2rem, 4vw, 4rem); align-self: center; }
.museum-dialog-copy .kicker { color: #ff8b7d; }
.museum-dialog-copy h2 { margin: 0; font: 400 clamp(2.2rem, 4vw, 4.2rem)/.98 Georgia, "Times New Roman", serif; }
.museum-dialog-author { margin: .8rem 0 2rem; color: rgba(255,255,255,.68); }
.museum-dialog-copy dl { margin: 0 0 2rem; padding: 1.2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); }
.museum-dialog-copy dl div { display: grid; gap: .3rem; }
.museum-dialog-copy dt { color: rgba(255,255,255,.48); font-size: .65rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.museum-dialog-copy dd { margin: 0; font-size: .86rem; }
.museum-dialog-description { color: rgba(255,255,255,.75); line-height: 1.7; }
.museum-dialog-close { position: absolute; z-index: 3; top: 1rem; right: 1rem; width: 45px; height: 45px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: #fff; background: rgba(8,26,51,.72); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.museum-dialog-nav { margin-top: 2rem; display: flex; justify-content: space-between; gap: 1rem; }
.museum-dialog-nav button { padding: 0; border: 0; color: #fff; background: transparent; font: 750 .75rem/1.3 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.museum-dialog-nav button:disabled { opacity: .32; cursor: default; }

@media (max-width: 1050px) {
  .museum-hero { grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); }
  .museum-installation { min-height: 540px; }
  .museum-manifesto { grid-template-columns: 45px 1fr; }
  .museum-manifesto > p:last-child { grid-column: 2; max-width: 700px; }
  .museum-home { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 850px) {
  .museum-home { grid-template-columns: 1fr; }
  .museum-home-preview { min-height: 500px; }
  .museum-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 5rem; }
  .museum-installation { min-height: 570px; }
  .museum-scroll-note { display: none; }
  .museum-values { grid-template-columns: 1fr; }
  .museum-dialog[open] { display: block; overflow-y: auto; }
  .museum-dialog-media { min-height: 45vh; }
  .museum-dialog-media img { max-height: 60vh; }
}

@media (max-width: 560px) {
  .museum-home { width: calc(100% - 2rem); min-height: 0; margin: 3rem auto; }
  .museum-home-copy { padding: 2.2rem 1.6rem; }
  .museum-home-preview { min-height: 380px; }
  .museum-home-frame.frame-one { width: 150px; height: 195px; }
  .museum-home-frame.frame-two { width: 170px; height: 130px; }
  .museum-home-frame.frame-three { width: 160px; height: 125px; left: 28%; }
  .museum-hero { padding: 4rem 1.25rem 2rem; }
  .museum-hero h1 { font-size: clamp(4rem, 21vw, 6.5rem); }
  .museum-installation { min-height: 440px; margin-top: 1rem; }
  .museum-frame { border-width: 8px; }
  .museum-frame-a { width: 55%; height: 49%; }
  .museum-frame-b { width: 52%; height: 34%; }
  .museum-frame-c { width: 61%; height: 32%; left: 18%; }
  .museum-mark { right: 0; }
  .museum-manifesto { width: calc(100% - 2rem); padding: 5rem 0; grid-template-columns: 1fr; gap: 1.2rem; }
  .museum-manifesto > p:last-child { grid-column: 1; margin-top: 0; }
  .museum-collection { padding: 5rem 1rem; }
  .museum-collection-heading { display: grid; gap: 1rem; }
  .museum-filter-group > span { width: 100%; }
  .museum-filter-group button { font-size: .72rem; }
  .museum-grid { columns: 1; }
  .museum-values { width: calc(100% - 2rem); padding: 5rem 0; }
  .museum-value-list article { grid-template-columns: 34px 1fr; }
  .museum-value-list article p { grid-column: 2; }
  .museum-dialog { width: 100%; max-height: 100vh; min-height: 100vh; }
  .museum-dialog-copy { padding: 2rem 1.25rem; }
  .museum-dialog-nav { gap: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .museum-card-image img, .museum-home-frame { transition: none; }
}
