:root { color-scheme: light; --ink: #092b48; --blue: #1167a2; --green: #2c8057; --paper: #f5f8f7; --line: #d7e2e7; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--site-header-height, 86px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
a { color: inherit; }
.skip-link { position: absolute; top: -70px; left: 12px; z-index: 30; padding: 12px 16px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; padding: 12px clamp(24px, 5vw, 84px); background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0, 24, 42, .12); }
.brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.brand img { display: block; width: clamp(210px, 21vw, 295px); height: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 2vw, 28px); }
.site-nav a { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.event-page { min-height: calc(100svh - 86px); }
.event-hero { position: relative; isolation: isolate; padding: clamp(48px, 7vw, 86px) clamp(24px, 7vw, 112px); overflow: hidden; background: #092b48; color: white; }
.event-hero::before { content: ''; position: absolute; z-index: -2; inset: 0; background: url('Fondo%205-fotor-ppt.png') center / cover no-repeat; }
.event-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(120deg, rgba(5, 31, 54, .96), rgba(8, 67, 84, .84)); }
.event-hero-inner, .materials-inner { width: min(100%, 1200px); margin: 0 auto; }
.event-hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); gap: clamp(36px, 7vw, 86px); align-items: center; }
.event-type { margin: 0 0 16px; color: #b8e5cb; font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { max-width: 850px; margin: 0; font-family: Manrope, sans-serif; font-size: clamp(2rem, 5vw, 4.6rem); letter-spacing: -.055em; line-height: 1.02; }
.event-speaker { margin: 22px 0 0; color: #fff; font-size: clamp(1rem, 1.5vw, 1.22rem); font-weight: 700; line-height: 1.55; }
.event-meta { margin: 12px 0 0; color: #dcebec; line-height: 1.65; }
.back-link { display: inline-flex; margin-top: 28px; color: #b8e5cb; font-size: .82rem; font-weight: 800; text-decoration: none; }
.back-link:hover, .back-link:focus-visible { color: white; text-decoration: underline; text-underline-offset: 5px; }
.event-visual { display: grid; place-items: center; overflow: hidden; border: 8px solid white; border-radius: 22px; background: white; box-shadow: 0 28px 65px rgba(0, 18, 33, .35); }
.event-visual img { display: block; width: 100%; max-height: 480px; object-fit: contain; }
.event-visual--logo { min-height: 280px; padding: 28px; background: linear-gradient(145deg, #eef9ed, #d9eef3); }
.event-visual--logo img { max-height: 260px; }
.materials { padding: clamp(48px, 7vw, 86px) clamp(24px, 7vw, 112px); }
.materials h2 { margin: 0 0 30px; font-family: Manrope, sans-serif; font-size: clamp(1.8rem, 4vw, 3.1rem); letter-spacing: -.045em; }
.material-tabs { position: sticky; top: var(--site-header-height, 86px); z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(4px, 1.2vw, 12px); padding: 10px 8px 0; border-bottom: 3px solid var(--green); background: var(--paper); }
.material-tabs button { min-width: 0; min-height: 58px; padding: 14px 8px; border: 1px solid #a8bdc7; border-bottom: 0; border-radius: 14px 14px 0 0; background: #e1e9eb; color: var(--ink); font: 700 .83rem 'DM Sans', sans-serif; letter-spacing: .07em; text-align: center; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
.material-tabs button[aria-selected="true"] { position: relative; margin-bottom: -3px; padding-bottom: 17px; border-color: var(--green); background: var(--green); color: white; }
.material-tabs button:not([aria-selected="true"]):hover { background: #cbdcdf; }
.material-tabs button:focus-visible { outline: 3px solid var(--blue); outline-offset: -5px; }
.material-panel { min-height: 190px; padding: clamp(32px, 5vw, 58px); border: 1px solid var(--line); border-top: 0; background: white; }
.material-panel[hidden] { display: none; }
.empty-state { margin: 0; color: #536b77; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.7; text-align: center; }
.photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 30px); }
.photo-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #f7faf9; box-shadow: 0 12px 30px rgba(9, 43, 72, .08); }
.photo-card a { display: block; overflow: hidden; background: #dce7e9; }
.photo-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .25s ease; }
.photo-card a:hover img, .photo-card a:focus-visible img { transform: scale(1.025); }
.photo-card a:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.photo-card figcaption { padding: 15px 17px 17px; color: #405d6a; font-size: .86rem; line-height: 1.55; }
@media (max-width: 1040px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 16px; padding-block: 16px; }
  .site-nav { gap: 16px; }
}
@media (max-width: 760px) {
  .event-hero-inner { grid-template-columns: 1fr; }
  .event-visual { width: min(100%, 420px); justify-self: center; }
  .photo-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .material-tabs { gap: 4px; padding-inline: 4px; }
  .material-tabs button { min-height: 54px; padding-inline: 3px; font-size: .68rem; letter-spacing: .02em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
