:root {
    --blue-900: #0a1628;
    --blue-800: #0f2040;
    --blue-700: #152d4e;
    --blue-600: #1a3d66;
    --blue-400: #2a6fa8;
    --blue-200: #7ab0d8;
    --orange-500: #f59e0b;
    --orange-400: #fbbf24;
    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-800: #1e293b;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── HEADER ── */
.header {
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-600) 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo { display: flex; align-items: center; gap: .75rem; }
.header-logo i { font-size: 1.7rem; color: var(--orange-400); }
.header-logo h1 { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.header-logo span { font-size: .7rem; color: var(--blue-200); display: block; }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--blue-200);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    padding: .4rem .8rem;
    border-radius: 8px;
    border: 1px solid rgba(122,176,216,.25);
    transition: all .2s;
}
.back-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── HERO TRIBUTO ── */
.hero {
    background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 60%, #0d2b50 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 1.5rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(42,111,168,.35) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.35);
    color: var(--orange-400);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem .85rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.hero h2 {
    font-size: clamp(1.75rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -.02em;
}

.hero h2 em {
    font-style: normal;
    color: var(--orange-400);
}

.hero p {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    color: var(--blue-200);
    font-size: 1rem;
    line-height: 1.65;
}

.hero-stats {
    display: inline-flex;
    gap: 2.5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 1rem 2rem;
    backdrop-filter: blur(8px);
}

.stat { text-align: center; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--orange-400); line-height: 1; }
.stat-label { font-size: .7rem; color: var(--blue-200); margin-top: .25rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── GALERIA ── */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-tag {
    display: inline-block;
    background: rgba(245,158,11,.12);
    color: var(--orange-500);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 100px;
    margin-bottom: .75rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue-900);
    margin-bottom: .5rem;
}

.section-desc {
    color: var(--gray-500);
    font-size: .95rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gallery-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--blue-800);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s, filter .25s;
}

.gallery-card:hover .gallery-thumb img {
    transform: scale(1.06);
    filter: brightness(.8);
}

.gallery-expand {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    color: #fff;
    font-size: 1.4rem;
}

.gallery-card:hover .gallery-expand { opacity: 1; }

.gallery-info {
    padding: .85rem 1rem .9rem;
    border-top: 1px solid var(--gray-100);
}

.gallery-name {
    font-size: .92rem;
    font-weight: 700;
    color: var(--blue-900);
    display: block;
    margin-bottom: .2rem;
}

.gallery-location {
    font-size: .78rem;
    color: var(--blue-400);
    display: flex;
    align-items: center;
    gap: .3rem;
}

.gallery-location i { font-size: .7rem; }

/* ── LIGHTBOX ── */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

#lightbox.open { display: flex; }

.lb-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 90vw;
}

#lb-img {
    max-width: 80vw;
    max-height: 75vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lb-info { text-align: center; }
#lb-name { font-size: 1.1rem; font-weight: 700; color: #fff; display: block; }
#lb-location { font-size: .85rem; color: var(--blue-200); }

.lb-close {
    position: absolute;
    top: -2.8rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: .3rem;
    opacity: .8;
    transition: opacity .2s;
}
.lb-close:hover { opacity: 1; }

.lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    padding: .65rem .9rem;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: -4rem; }
.lb-next { right: -4rem; }

/* ── RESPONSIVO ── */
@media (max-width: 700px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .hero { padding: 2.5rem 1rem 2rem; }
    .hero-stats { gap: 1.5rem; padding: .75rem 1.25rem; }
    .stat-value { font-size: 1.3rem; }
    .lb-prev { left: -2.5rem; }
    .lb-next { right: -2.5rem; }
    #lb-img { max-width: 88vw; max-height: 65vh; }
}

@media (max-width: 420px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .gallery-info { padding: .6rem .7rem .65rem; }
    .gallery-name { font-size: .82rem; }
}
