:root {
    --canvas: #090907;
    --canvas-deep: #050504;
    --surface: #11110f;
    --surface-raised: #171613;
    --surface-soft: rgba(255, 255, 255, 0.035);
    --paper: #f4efe5;
    --ink: #e8e1d4;
    --muted: #aaa397;
    --muted-dark: #7d776c;
    --gold: #bd913f;
    --gold-bright: #f3d67f;
    --gold-pale: #f8e9b6;
    --line: rgba(243, 214, 127, 0.2);
    --line-soft: rgba(255, 255, 255, 0.09);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --serif: "DM Serif Display", Georgia, serif;
    --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: var(--canvas-deep);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(ellipse 78% 38% at 50% -12%, rgba(184, 140, 55, 0.18), transparent 68%),
        radial-gradient(circle at 94% 25%, rgba(184, 140, 55, 0.1), transparent 18%),
        linear-gradient(117deg, transparent 0 49.85%, rgba(243, 214, 127, 0.045) 50%, transparent 50.15%),
        linear-gradient(180deg, #10100e 0%, var(--canvas-deep) 43%, #0b0a08 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.26;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 5px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body.page-inicio::before {
    background:
        linear-gradient(90deg, rgba(4, 4, 3, 0.7), rgba(4, 4, 3, 0.15) 46%, rgba(4, 4, 3, 0.55)),
        radial-gradient(ellipse 72% 42% at 50% -10%, rgba(203, 156, 60, 0.25), transparent 68%),
        linear-gradient(117deg, transparent 0 49.85%, rgba(243, 214, 127, 0.08) 50%, transparent 50.15%),
        #070706;
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 44%, rgba(189, 145, 63, 0.16), transparent 28%),
        linear-gradient(135deg, #15130f, #070706 58%);
    transform: translate3d(0, -102%, 0);
    transition: transform 480ms cubic-bezier(.72, 0, .22, 1);
}

.page-transition::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    box-shadow: 0 0 22px rgba(243, 214, 127, 0.62);
}

.page-transition span {
    width: 54px;
    aspect-ratio: 1;
    border: 1px solid rgba(243, 214, 127, 0.5);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.6);
    transition: opacity 220ms ease, transform 420ms ease;
}

body.is-leaving .page-transition { transform: translate3d(0, 0, 0); }
body.is-leaving .page-transition span { opacity: 1; transform: scale(1); }
body.is-leaving .page { opacity: .35; transform: scale(.985); }

.scroll-lines {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: .48;
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.scroll-lines i {
    position: absolute;
    top: -42vh;
    width: 1px;
    height: 185vh;
    background: repeating-linear-gradient(to bottom, transparent 0 46px, rgba(243, 214, 127, .12) 72px, rgba(243, 214, 127, .7) 92px, rgba(243, 214, 127, .12) 112px, transparent 148px);
    background-size: 100% 296px;
    box-shadow: 0 0 16px rgba(189, 145, 63, .1);
    transform: translate3d(0, var(--scroll-shift, 0px), 0) rotate(23deg);
    transform-origin: center;
    animation: line-travel 5.5s linear infinite;
    will-change: transform, background-position;
}

.scroll-lines i:nth-child(1) { left: 8%; }
.scroll-lines i:nth-child(2) { left: 38%; animation-delay: -1.7s; animation-direction: reverse; }
.scroll-lines i:nth-child(3) { left: 70%; animation-delay: -3.2s; }
.scroll-lines i:nth-child(4) { left: 94%; animation-delay: -4.4s; animation-direction: reverse; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img, video, svg { display: block; max-width: 100%; }

.page-video-bg {
    position: fixed;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    pointer-events: none;
    background: #090907;
}

.page-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.5;
}

.page-video-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 5, 4, 0.62), rgba(5, 5, 4, 0.34) 42%, rgba(5, 5, 4, 0.86)),
        linear-gradient(90deg, rgba(5, 5, 4, 0.76), transparent 45%, rgba(5, 5, 4, 0.62));
}

.page {
    width: min(1480px, calc(100% - 64px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 52px;
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: scale(1);
    transition: opacity 360ms ease, transform 480ms cubic-bezier(.2,.7,.2,1);
    animation: page-arrival 720ms cubic-bezier(.16,.8,.24,1) both;
}

.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.ambient span {
    position: absolute;
    width: 32rem;
    aspect-ratio: 1;
    border: 1px solid rgba(243, 214, 127, 0.07);
    border-radius: 50%;
    animation: ambient-orbit 18s ease-in-out infinite;
}

.ambient span::before,
.ambient span::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(243, 214, 127, 0.05);
}

.ambient span::before { inset: 12%; }
.ambient span::after { inset: 27%; }
.ambient span:nth-child(1) { top: 12%; left: -26rem; }
.ambient span:nth-child(2) { top: 42%; right: -27rem; animation-delay: -6s; animation-direction: reverse; }
.ambient span:nth-child(3) { bottom: -27rem; left: 38%; animation-delay: -12s; }

.topbar {
    position: sticky;
    top: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(243, 214, 127, 0.18);
    border-radius: 20px;
    background: linear-gradient(112deg, rgba(25, 24, 20, 0.94), rgba(13, 13, 11, 0.86));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    animation: rise-in 650ms both;
}

.topbar::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(243, 214, 127, 0.08) 30%, rgba(243, 214, 127, 0.82) 50%, rgba(243, 214, 127, 0.08) 70%, transparent 100%);
    background-size: 200% 100%;
    opacity: 0.6;
    animation: gold-sweep 6s linear infinite;
}

.topbar::before {
    content: "";
    position: absolute;
    right: 18px;
    bottom: -1px;
    left: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-pale));
    box-shadow: 0 0 14px rgba(243, 214, 127, .22);
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left;
    transition: transform 120ms linear;
}

.brand {
    display: flex;
    flex: 0 1 520px;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: clamp(210px, 18vw, 290px);
    height: 70px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(243, 214, 127, 0.19);
    border-radius: 14px;
    background: linear-gradient(115deg, rgba(243, 214, 127, 0.15), rgba(115, 84, 29, 0.12));
    transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms cubic-bezier(.2,.75,.2,1);
}

.brand:hover .brand-mark {
    border-color: rgba(243, 214, 127, .44);
    box-shadow: 0 0 30px rgba(189, 145, 63, .12);
    transform: translateY(-2px);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    padding: 11px 14px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.brand-copy strong {
    color: var(--gold-pale);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.brand-copy span {
    max-width: 30ch;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.42;
}

.nav {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.nav a {
    position: relative;
    padding: 10px 11px;
    color: #c4bdb1;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    white-space: nowrap;
    transition: color 220ms ease, background-color 220ms ease, transform 220ms cubic-bezier(.2,.75,.2,1), text-shadow 220ms ease;
}

.nav a::after {
    content: "";
    position: absolute;
    right: 11px;
    bottom: 4px;
    left: 11px;
    height: 1px;
    background: var(--gold-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav a:hover { color: var(--gold-pale); text-shadow: 0 0 18px rgba(243, 214, 127, .28); transform: translateY(-2px); }
.nav a:hover::after { transform: scaleX(1); }

.nav a.active {
    color: #16130b;
    border-radius: 999px;
    background: linear-gradient(110deg, var(--gold-pale), #c39541);
    background-size: 180% 100%;
    box-shadow: 0 8px 22px rgba(189, 145, 63, 0.16);
    animation: nav-glow 4s ease-in-out infinite;
}
.nav a.active::after { display: none; }

.menu-toggle { display: none; }

.hero {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 22px;
    margin-top: 42px;
    animation: rise-in 700ms 90ms both;
}

.onepage-section { scroll-margin-top: 132px; }

.page-inicio #reconocimiento,
.page-inicio #anios,
.page-inicio #preguntas {
    position: relative;
    margin-top: 110px;
    padding-top: 110px;
    border-top: 1px solid rgba(243, 214, 127, .16);
}

.page-inicio #reconocimiento::before,
.page-inicio #anios::before,
.page-inicio #preguntas::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: min(190px, 34vw);
    height: 1px;
    background: linear-gradient(90deg, var(--gold-bright), transparent);
    box-shadow: 0 0 18px rgba(243, 214, 127, .24);
}

.eyebrow,
.year-panel-badge,
.slide-banner-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(243, 214, 127, 0.27);
    border-radius: 999px;
    color: var(--gold-bright);
    background: rgba(189, 145, 63, 0.09);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.title {
    max-width: 19ch;
    margin: 0;
    color: var(--gold-pale);
    font-family: var(--serif);
    font-size: clamp(3rem, 5.5vw, 6.3rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.92;
    text-wrap: balance;
}

.lead {
    max-width: 72ch;
    color: var(--muted);
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.85;
}
.lead p { margin: 0 0 1rem; }
.lead p:last-child { margin-bottom: 0; }
.signature { margin-top: 1.5rem; color: var(--gold-bright); font-weight: 700; }

/* Home */
.home-stage {
    position: relative;
    padding: 12px;
    border: 1px solid rgba(243, 214, 127, 0.22);
    border-radius: 28px;
    background: rgba(8, 8, 7, 0.58);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.home-stage::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(243, 214, 127, 0.11);
    border-radius: 22px;
    pointer-events: none;
}

.slideshow {
    position: relative;
    min-height: min(720px, 68vh);
    overflow: hidden;
    border-radius: 19px;
    background: #12110e;
    isolation: isolate;
}

.slideshow-track { position: absolute; inset: 0; }

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    transition: opacity 950ms ease, visibility 0s linear 1050ms, transform 1050ms cubic-bezier(.2,.7,.2,1), clip-path 1050ms cubic-bezier(.72,0,.22,1);
}

.slide.motion-left { clip-path: inset(0 100% 0 0); }
.slide.motion-right { clip-path: inset(0 0 0 100%); }
.slide.active { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); transform: scale(1); transition-delay: 0s; }

.slide-media {
    position: absolute;
    inset: 0;
    background-color: #15130f;
    background-position: center;
    background-size: cover;
    transform: scale(1.025);
    transition: transform 5s cubic-bezier(.2,.6,.2,1);
}
.slide.active .slide-media { transform: scale(1.1); }
.slide.motion-left.active .slide-media {
    transform-origin: 38% 50%;
    animation: slideshow-zoom-left 3.25s cubic-bezier(.2,.62,.24,1) both;
}
.slide.motion-right.active .slide-media {
    transform-origin: 62% 50%;
    animation: slideshow-zoom-right 3.25s cubic-bezier(.2,.62,.24,1) both;
}

.slide-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 5, 4, 0.45), transparent 54%), linear-gradient(0deg, rgba(5, 5, 4, 0.45), transparent 46%);
}

.slide::before {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    pointer-events: none;
}

.slide-banner {
    position: absolute;
    z-index: 4;
    bottom: 30px;
    left: 30px;
    width: min(600px, calc(100% - 60px));
    padding: 22px 24px 18px;
    border: 1px solid rgba(243, 214, 127, 0.24);
    border-radius: 17px;
    background: linear-gradient(128deg, rgba(14, 13, 11, 0.95), rgba(19, 17, 13, 0.82));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.slide-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    width: 85px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-bright), #fff0ba, var(--gold));
    box-shadow: 0 0 14px rgba(243, 214, 127, .34);
    animation: banner-pulse 3s ease-in-out infinite;
}

.slide-banner-copy { display: grid; gap: 13px; }
.slide-banner-title {
    max-width: 16ch;
    margin: 0;
    color: var(--paper);
    font-family: var(--serif);
    font-size: clamp(2rem, 3.25vw, 3.55rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.9;
    text-wrap: balance;
}
.slide-banner-text { max-width: 43ch; margin: 0; color: #c1b9ac; font-size: 0.91rem; line-height: 1.62; }

.slide-banner-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-counter {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 6px;
    color: var(--gold-bright);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}
.slide-counter strong { font-size: 0.9rem; }

.slide-dots { display: flex; flex: 1; align-items: center; gap: 7px; min-width: 0; }
.slide-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(243, 214, 127, 0.3);
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease;
}
.slide-dot.active { width: 22px; border-radius: 9px; background: var(--gold-bright); animation: dot-progress 3s linear both; }

.slide-controls { display: inline-flex; gap: 8px; }
.slide-control {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0 0 3px;
    border: 1px solid rgba(243, 214, 127, 0.28);
    border-radius: 50%;
    color: var(--gold-pale);
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.slide-control:hover { color: #201706; background: var(--gold-bright); transform: translateY(-2px); }

/* General surfaces */
.grid,
.about-shell,
.category-grid,
.faq-editorial,
.years-panels { position: relative; z-index: 1; animation: rise-in 750ms 130ms both; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }

.card {
    grid-column: span 6;
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 3.2vw, 46px);
    border: 1px solid var(--line-soft);
    border-top-color: var(--line);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(27, 26, 22, 0.94), rgba(14, 14, 12, 0.94));
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
    transition: transform 280ms cubic-bezier(.2,.7,.2,1), border-color 280ms ease, box-shadow 280ms ease;
}

.card:hover {
    border-color: rgba(243, 214, 127, 0.32);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 1px;
    background: var(--gold-bright);
}
.card > * { position: relative; z-index: 1; }
.card.full { grid-column: 1 / -1; }

.card h2,
.card h3 {
    margin: 0 0 18px;
    color: var(--gold-pale);
    font-family: var(--serif);
    font-size: clamp(1.85rem, 3vw, 3.15rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
}
.card h3 { font-size: clamp(1.55rem, 2.3vw, 2.25rem); }
.card p, .card li { color: #c9c2b6; font-size: 0.98rem; line-height: 1.86; }
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { padding-left: 1.25rem; }

/* About */
.about-shell { display: grid; gap: 24px; margin-top: 42px; }
.about-shell > .card:nth-child(1) { padding: clamp(34px, 5.5vw, 76px); }
.about-shell > .card:nth-child(1) .title { margin-bottom: 30px; }
.about-shell > .card:nth-child(2) { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); column-gap: 10%; }
.about-shell > .card:nth-child(2) h2 { grid-column: 1; }
.about-shell > .card:nth-child(2) p { grid-column: 2; margin: 0 0 1rem; }
.about-shell > .card:nth-child(3) { padding-block: 28px; }
.about-shell > .card:nth-child(3) h2 { max-width: 25ch; margin: 0; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.category-card.card {
    min-height: 318px;
    padding: 26px 24px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(25, 24, 20, 0.96), rgba(13, 13, 11, 0.96));
    transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}
.category-card.card:hover { border-color: rgba(243, 214, 127, 0.42); background: linear-gradient(145deg, rgba(37, 34, 25, 0.98), rgba(15, 14, 12, 0.98)); transform: translateY(-5px); }
.category-card.card::before { width: 100%; opacity: .7; background: linear-gradient(90deg, var(--accent), transparent); }
.category-card.full { grid-column: 1 / -1; min-height: auto; }
.category-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 27px;
    border: 1px solid rgba(243, 214, 127, 0.3);
    border-radius: 12px;
    color: var(--accent);
    background: rgba(243, 214, 127, 0.06);
}
.category-icon svg { width: 24px; height: 24px; }
.category-card h3 { max-width: 17ch; margin-bottom: 13px; font-size: clamp(1.5rem, 2.05vw, 2.1rem); }
.category-card p { margin: 0; font-size: .91rem; line-height: 1.76; }

/* Frequently asked questions */
.faq-page-header {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    max-width: 980px;
    margin: 62px auto 38px;
    padding: 44px 0 46px;
    border-bottom: 1px solid var(--line);
}
.faq-page-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: -11%;
    width: min(36vw, 390px);
    aspect-ratio: 1;
    border: 1px solid rgba(243, 214, 127, 0.16);
    border-radius: 50%;
    box-shadow: inset 0 0 0 42px rgba(243, 214, 127, 0.025), inset 0 0 0 92px rgba(243, 214, 127, 0.02);
    opacity: .9;
    pointer-events: none;
}
.faq-page-header .title { position: relative; z-index: 1; }
.faq-editorial { max-width: 980px; margin: 0 auto; }
.faq-editorial-block {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 0 32px;
    padding: 30px 0 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.faq-editorial-kicker {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 6px;
    color: var(--gold-bright);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.faq-editorial-question {
    grid-column: 2;
    margin: 0;
    color: var(--paper);
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.04;
}
.faq-editorial-body { grid-column: 2; display: grid; gap: 9px; margin-top: 17px; max-width: 64ch; }
.faq-editorial-body p { margin: 0; color: #c8c1b6; font-size: 1rem; line-height: 1.8; }
.faq-editorial-body p:first-child { color: #e2dcd0; }
.faq-editorial-body p + p { padding-left: 15px; border-left: 1px solid var(--line); }
.faq-signoff { position: relative; z-index: 1; max-width: 980px; margin: 40px auto 0; padding: 28px 0; }
.faq-signoff-line { width: 100px; height: 1px; background: var(--gold-bright); }
.faq-signoff p { margin: 15px 0 0; color: var(--gold-bright); font-family: var(--serif); font-size: 1.8rem; letter-spacing: -.025em; }

/* Archive */
.years-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    align-items: end;
    gap: 48px;
    margin-bottom: 30px;
}
.years-hero-copy { display: grid; gap: 18px; }
.years-hero-copy .title { max-width: 12ch; }
.year-hero-card {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 250px;
    padding: 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(145deg, rgba(31, 29, 22, .88), rgba(16, 15, 13, .88));
}
.year-hero-card strong { color: var(--gold-pale); font-family: var(--serif); font-size: clamp(4rem, 7vw, 7rem); font-weight: 400; letter-spacing: -.07em; line-height: .78; }
.year-hero-card > span:last-of-type { color: var(--paper); font-size: .87rem; font-weight: 700; }
.year-filter-note { margin: 9px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.year-filters { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.year-filter { padding: 8px 13px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--muted); font-size: .75rem; font-weight: 700; transition: color 180ms ease, border-color 180ms ease, background 180ms ease; }
.year-filter:hover { color: var(--gold-pale); border-color: var(--line); }
.year-filter.active { color: #171207; border-color: var(--gold-bright); background: var(--gold-bright); }
.years-panels { display: grid; grid-template-columns: repeat(auto-fill, 250px); justify-content: start; gap: 20px; }
.year-panel {
    grid-column: auto;
    display: grid;
    align-content: start;
    min-height: 425px;
    padding: 18px;
    border-radius: 16px;
    text-align: left;
    transition: transform 220ms ease, border-color 220ms ease;
}
.year-panel:hover { border-color: rgba(243, 214, 127, 0.38); transform: translateY(-4px); }
.year-panel::before { width: 50px; }
.year-panel--empty { grid-column: 1 / -1; min-height: auto; }
.year-panel-photo-wrap { width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #212019; cursor: zoom-in; aspect-ratio: 1 / .9; }
.year-panel-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.year-panel:hover .year-panel-photo { transform: scale(1.035); }
.year-panel-photo--placeholder { width: 100%; height: 100%; background: linear-gradient(145deg, #3a321f, #1d1b16); }
.year-panel-body { display: grid; gap: 11px; padding: 18px 2px 0; }
.year-panel-badge { font-size: .6rem; }
.year-panel h3 { margin: 1px 0 2px; color: var(--gold-pale); font-family: var(--serif); font-size: 1.9rem; font-weight: 400; line-height: .95; letter-spacing: -.035em; }
.year-panel-meta { margin: 0; color: #b9b1a4; font-size: .78rem; line-height: 1.6; }
.year-panel-meta strong { display: block; color: var(--gold-bright); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.year-alert { display: grid; gap: 12px; margin: 20px 0; }
.year-alert h2 { margin: 0; }
.year-alert p { margin: 0; }

.year-preview { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 28px; opacity: 0; transition: opacity 320ms ease; }
.year-preview[hidden] { display: none; }
.year-preview.is-open { opacity: 1; }
.year-preview-backdrop { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(35, 27, 13, .3), transparent 45%), rgba(0, 0, 0, .9); opacity: 0; transition: opacity 320ms ease; }
.year-preview.is-open .year-preview-backdrop { opacity: 1; }
.year-preview-dialog { position: relative; width: min(1120px, 100%); max-height: min(820px, calc(100vh - 56px)); overflow: auto; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr); border: 1px solid rgba(243, 214, 127, .34); border-radius: 18px; background: linear-gradient(135deg, #181610, #0c0c0a 72%); box-shadow: 0 42px 130px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.05); opacity: 0; transform: translate3d(0, 28px, 0) scale(.965); transition: opacity 320ms ease, transform 420ms cubic-bezier(.16,.8,.24,1); }
.year-preview.is-open .year-preview-dialog { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.year-preview-dialog::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); box-shadow: 0 0 20px rgba(243,214,127,.28); }
.year-preview-image { width: 100%; height: 100%; min-height: 590px; object-fit: cover; background: #111; }
.year-preview-copy { position: relative; display: grid; align-content: center; gap: 17px; padding: clamp(32px, 5vw, 64px); }
.year-preview-copy::before { content: ""; width: 72px; height: 1px; margin-bottom: 10px; background: var(--gold-bright); box-shadow: 0 0 14px rgba(243,214,127,.3); }
.year-preview-copy h3 { margin: 0; color: var(--gold-pale); font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 400; line-height: .93; letter-spacing: -.05em; }
.year-preview-copy p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.year-preview-copy p strong { display: block; color: var(--gold-bright); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }
.year-preview-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; border: 1px solid rgba(243,214,127,.32); border-radius: 50%; color: var(--gold-pale); background: rgba(0,0,0,.64); font-size: 1.55rem; line-height: 1; cursor: pointer; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.year-preview-close:hover { color: #181207; background: var(--gold-bright); transform: rotate(90deg); }
body.preview-open { overflow: hidden; }
body.preview-open .page { transform: none !important; animation: none !important; }

/* Forms and admin */
.form { display: grid; gap: 16px; max-width: 900px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--gold-pale); font-size: .76rem; font-weight: 800; letter-spacing: .06em; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    outline: none;
    color: var(--paper);
    background: rgba(255,255,255,.045);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.field input::placeholder, .field textarea::placeholder { color: #7f786d; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(189,145,63,.06); box-shadow: 0 0 0 3px rgba(189,145,63,.1); }
.field select option { color: #16130b; background: #eee6d5; }
.field input[type="file"] { padding: 10px; color: var(--muted); }
.field textarea { min-height: 160px; resize: vertical; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 46px; padding: 0 20px; border: 1px solid var(--gold-bright); border-radius: 999px; color: #1a1306; background: linear-gradient(110deg, var(--gold-pale), #c99842); font-size: .78rem; font-weight: 800; letter-spacing: .025em; cursor: pointer; box-shadow: 0 12px 24px rgba(189,145,63,.14); transition: transform 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(189,145,63,.24); }
.button-ghost { color: var(--gold-pale); background: transparent; box-shadow: none; }
.button-ghost:hover { background: rgba(189,145,63,.1); }
.admin-hero { margin-bottom: 28px; }
.admin-grid { margin-top: 0; }
.admin-panel { display: grid; align-content: start; gap: 18px; }
.admin-alert { padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--paper); background: rgba(189,145,63,.09); font-size: .9rem; }
.admin-alert.is-success { border-color: rgba(150, 205, 158, .35); background: rgba(86, 136, 91, .16); }
.admin-alert.is-error { border-color: rgba(229, 124, 113, .4); background: rgba(156, 54, 44, .15); }
.admin-list { display: grid; gap: 10px; }
.admin-entry { display: flex; align-items: center; gap: 16px; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.025); }
.admin-entry-photo-wrap { flex: 0 0 auto; width: 68px; height: 68px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.admin-entry-photo { width: 100%; height: 100%; object-fit: cover; }
.admin-entry-photo--placeholder { width: 100%; height: 100%; background: #302d24; }
.admin-entry-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.admin-entry-copy strong { color: var(--gold-pale); font-size: 1rem; }
.admin-entry-copy span { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.admin-entry-actions { flex: 0 0 auto; }
.admin-empty { padding: 22px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); }

.meta { position: relative; z-index: 1; margin-top: 56px !important; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--muted-dark); font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.has-motion [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 750ms ease var(--reveal-delay, 0ms), transform 750ms cubic-bezier(.16,.78,.28,1) var(--reveal-delay, 0ms);
}

.has-motion [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes page-arrival {
    from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.995); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes slideshow-zoom-left {
    from { transform: scale(1.025) translate3d(-1.3%, 0, 0); }
    to { transform: scale(1.105) translate3d(1.1%, -0.45%, 0); }
}

@keyframes slideshow-zoom-right {
    from { transform: scale(1.025) translate3d(1.3%, 0, 0); }
    to { transform: scale(1.105) translate3d(-1.1%, -0.45%, 0); }
}

@keyframes ambient-orbit {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: .6; }
    50% { transform: translate3d(44px, -26px, 0) rotate(12deg) scale(1.07); opacity: 1; }
}

@keyframes gold-sweep {
    from { background-position: 200% 0; }
    to { background-position: -20% 0; }
}

@keyframes line-travel {
    from { background-position: 0 -296px; }
    to { background-position: 0 296px; }
}

@keyframes banner-pulse {
    0%, 100% { transform: scaleX(.55); transform-origin: left; opacity: .7; }
    50% { transform: scaleX(1.12); transform-origin: left; opacity: 1; }
}

@keyframes nav-glow {
    0%, 100% { background-position: 0% 50%; box-shadow: 0 8px 22px rgba(189, 145, 63, .14); }
    50% { background-position: 100% 50%; box-shadow: 0 8px 30px rgba(243, 214, 127, .27); }
}

@keyframes dot-progress {
    from { box-shadow: inset 22px 0 0 rgba(255, 255, 255, .58), 0 0 0 rgba(243, 214, 127, 0); }
    to { box-shadow: inset 0 0 0 rgba(255, 255, 255, 0), 0 0 13px rgba(243, 214, 127, .38); }
}

@media (max-width: 1180px) {
    .topbar { gap: 18px; }
    .brand-mark { width: 230px; }
    .brand-copy { display: none; }
    .nav a { padding-inline: 9px; font-size: .72rem; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .page { width: min(100% - 32px, 680px); padding-top: 16px; }
    .topbar { top: 10px; min-height: 84px; padding: 11px 12px; border-radius: 16px; }
    .topbar::after { left: 12px; right: 12px; }
    .brand { flex: 1; gap: 0; }
    .brand-mark { width: min(68vw, 250px); height: 60px; border-radius: 12px; }
    .brand-mark img { padding: 9px 12px; }
    .brand-copy { display: none; }
    .menu-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 8px 9px; border: 0; color: var(--gold-pale); background: transparent; cursor: pointer; }
    .menu-toggle-label { font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
    .menu-toggle-icon { display: grid; width: 21px; gap: 5px; }
    .menu-toggle-icon i { display: block; width: 100%; height: 1px; background: currentColor; transition: transform 180ms ease; }
    .menu-toggle.is-open .menu-toggle-icon i:first-child { transform: translateY(3px) rotate(45deg); }
    .menu-toggle.is-open .menu-toggle-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
    .nav { position: absolute; top: calc(100% + 9px); right: 0; left: 0; display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #151410; box-shadow: 0 20px 45px rgba(0,0,0,.45); opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(0,-10px,0) scale(.985); transform-origin: top; transition: opacity 220ms ease, visibility 0s linear 240ms, transform 280ms cubic-bezier(.16,.8,.24,1); }
    .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate3d(0,0,0) scale(1); transition-delay: 0s; }
    .nav a { padding: 13px 14px; border-radius: 9px; color: var(--paper); font-size: .82rem; }
    .nav a::after { display: none; }
    .nav a.active { color: #181208; }
    .hero { margin-top: 32px; }
    .title { font-size: clamp(3rem, 16vw, 5.5rem); }
    .slideshow { min-height: min(620px, 74vh); }
    .years-hero { grid-template-columns: 1fr; gap: 22px; }
    .about-shell > .card:nth-child(2) { display: block; }
    .about-shell > .card:nth-child(2) h2 { margin-bottom: 24px; }
    .category-grid { grid-template-columns: 1fr; }
    .category-card.card { min-height: auto; }
    .faq-page-header, .faq-editorial, .faq-signoff { max-width: none; }
    .faq-editorial-block { grid-template-columns: 92px minmax(0, 1fr); gap: 0 18px; }
    .years-panels { grid-template-columns: repeat(auto-fill, 240px); }
    .year-preview-dialog { grid-template-columns: 1fr; max-width: 590px; }
    .year-preview-image { min-height: 320px; max-height: 55vh; }
    .page-inicio #reconocimiento, .page-inicio #anios, .page-inicio #preguntas { margin-top: 72px; padding-top: 72px; }
    .scroll-lines i:nth-child(2), .scroll-lines i:nth-child(4) { display: none; }
}

@media (max-width: 560px) {
    .page { width: min(100% - 22px, 480px); padding-bottom: 32px; }
    .topbar { min-height: 72px; }
    .brand-mark { width: min(66vw, 225px); height: 51px; }
    .menu-toggle-label { display: none; }
    .menu-toggle { padding-right: 2px; }
    .hero { margin-top: 26px; }
    .home-stage { padding: 7px; border-radius: 20px; }
    .home-stage::before { inset: 3px; border-radius: 17px; }
    .slideshow { min-height: 560px; border-radius: 14px; }
    .slide::before { inset: 8px; border-radius: 9px; }
    .slide-banner { right: 16px; bottom: 16px; left: 16px; width: auto; padding: 18px 17px 15px; border-radius: 13px; }
    .slide-banner::before { left: 17px; width: 58px; }
    .slide-banner-title { font-size: clamp(2rem, 10vw, 2.7rem); }
    .slide-banner-text { font-size: .82rem; line-height: 1.5; }
    .slide-banner-footer { gap: 8px; margin-top: 14px; padding-top: 11px; }
    .slide-dots { gap: 5px; }
    .slide-dot { width: 6px; height: 6px; }
    .slide-dot.active { width: 16px; }
    .slide-control { width: 30px; height: 30px; font-size: 1.1rem; }
    .slide-counter { font-size: .6rem; }
    .title { font-size: clamp(3.15rem, 17vw, 4.6rem); }
    .lead { font-size: .97rem; line-height: 1.75; }
    .card { padding: 26px 21px; border-radius: 14px; }
    .card h2 { font-size: 2.1rem; }
    .card p, .card li { font-size: .93rem; line-height: 1.75; }
    .about-shell { gap: 14px; margin-top: 28px; }
    .about-shell > .card:nth-child(1) { padding: 30px 21px; }
    .faq-page-header { margin: 30px 0 22px; padding: 24px 0 30px; }
    .faq-page-header::after { top: 15px; right: -25%; width: 220px; }
    .faq-editorial-block { display: block; padding: 23px 0 27px; }
    .faq-editorial-kicker { margin-bottom: 12px; padding: 0; }
    .faq-editorial-question { font-size: 1.95rem; }
    .faq-editorial-body { margin-top: 13px; }
    .faq-editorial-body p { font-size: .93rem; line-height: 1.72; }
    .years-panels { grid-template-columns: 1fr; }
    .year-panel { min-height: 0; }
    .year-panel-photo-wrap { aspect-ratio: 1.4 / 1; }
    .year-hero-card { min-height: 0; }
    .year-preview { padding: 12px; }
    .year-preview-copy { padding: 26px 22px; }
    .year-preview-image { min-height: 260px; }
    .admin-entry { align-items: flex-start; flex-wrap: wrap; }
    .admin-entry-actions { width: 100%; }
    .admin-entry-actions .button { width: 100%; }
    .meta { margin-top: 34px !important; font-size: .57rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ambient span { animation-duration: 36s; }
    .has-motion [data-reveal] { transition-duration: 420ms; }
}
