
:root {
    --background: #101018;
    --surface: #1b1b28;
    --text: #f4f1fa;
    --muted: #b8b2c7;
    --accent: #a78bfa;
    --accent-dark: #7655d8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

/* =========================
   BARRA DE NAVEGACIÓN FIJA
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 6%;

    background: rgba(16, 16, 24, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-decoration: none;
}

.header .logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    display: block;
}

.navigation {
    display: flex;
    gap: 25px;
}

.navigation a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.navigation a:hover,
.navigation a.active {
    color: var(--accent);
}

/* =========================
   INICIO
========================= */

.hero {
    min-height: 68vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background:
        radial-gradient(
            ellipse at center,
            rgba(118,85,216,0.28),
            transparent 60%
        );
}

.main-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
}

.subtitle {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 4px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3.5rem, 12vw, 8rem);
    letter-spacing: 12px;
    line-height: 1.2;
}

.description {
    max-width: 600px;
    color: var(--muted);
    font-size: 1.2rem;
}

.button {
    margin-top: 20px;
    padding: 13px 25px;
    background: var(--accent-dark);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}

.button:hover {
    background: var(--accent);
}

/* =========================
   JUGADORES Y CONTACTO
========================= */

.players,
.contact {
    max-width: 1100px;
    margin: auto;
    padding: 90px 25px;
    text-align: center;
}

.players h2,
.contact h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0;
}

.section-description {
    color: var(--muted);
    margin-bottom: 40px;
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(200px, 1fr)
    );
    gap: 20px;
}

.player-card {
    display: block;
    padding: 30px 20px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.player-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.player-card img {
    width: 100px;
    height: 100px;
    image-rendering: pixelated;
    object-fit: contain;
}

.player-card h3 {
    margin-top: 15px;
}

.avatar {
    width: 75px;
    height: 75px;
    margin: auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(167,139,250,0.18);
    color: var(--accent);
    font-size: 2rem;
    font-weight: bold;
}

.player-card p,
.contact p {
    color: var(--muted);
}

.contact a {
    color: var(--accent);
}

/* =========================
   PIE DE PÁGINA
========================= */

footer {
    padding: 25px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--muted);
}

/* =========================
   GALERÍA WEEKLAND
========================= */

.gallery-page {
    max-width: 1400px;
    margin: auto;
    padding: 80px 25px 100px;
    text-align: center;
}

.gallery-page h1 {
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5rem);
}

.gallery-page .section-description {
    margin-bottom: 45px;
}

/* Carrusel */

.gallery-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 100%;
}

.gallery-image-button {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1050px;
    height: 620px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    background: var(--surface);
    cursor: zoom-in;
}

.gallery-image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-zoom {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 8px 14px;
    background: rgba(0,0,0,0.75);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-image-button:hover .gallery-zoom {
    opacity: 1;
}

.gallery-arrow {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.gallery-arrow:hover {
    background: var(--accent-dark);
    transform: scale(1.08);
}

.gallery-information {
    margin-top: 20px;
}

.gallery-information h2 {
    margin: 0;
    font-size: 1.5rem;
}

.gallery-information p {
    color: var(--muted);
    margin: 5px 0;
}

/* Miniaturas */

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 115px;
    height: 80px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--accent);
}

.gallery-help {
    margin-top: 25px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* =========================
   VISOR AMPLIADO
========================= */

.gallery-lightbox {
    width: 98vw;
    height: 96vh;
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 15px 25px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    background: #101018;
    color: var(--text);
    overflow: auto;
}

.gallery-lightbox::backdrop {
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(5px);
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.lightbox-header button {
    border: none;
    background: transparent;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    height: calc(100% - 115px);
    min-height: 0;
}

.lightbox-content img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: calc(100% - 110px);
    max-height: 100%;
    object-fit: contain;
}

.lightbox-arrow {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.lightbox-arrow:hover {
    background: var(--accent-dark);
}

.lightbox-footer {
    text-align: center;
    margin-top: 10px;
}

.lightbox-footer > span {
    color: var(--muted);
}

.lightbox-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.gallery-action {
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    background: var(--accent-dark);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
}

.gallery-action:hover {
    background: var(--accent);
}

#copy-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Ocultar nombres de las imágenes */

#lightbox-title,
#gallery-title {
    display: none !important;
}

/* =========================
   PÁGINA DE DESCARGAS
========================= */

.downloads-page {
    width: min(1000px, 90%);
    margin: 70px auto;
    text-align: center;
}

.downloads-page h1 {
    margin-bottom: 15px;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 45px auto;
    max-width: 800px;
}

.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-align: left;
    transition: transform 0.2s, border-color 0.2s;
}

.download-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.download-info h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.download-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.download-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
}

.download-button {
    flex-shrink: 0;
    padding: 13px 24px;
    border: none;
    border-radius: 9px;
    background: var(--accent);
    color: white;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
}

.download-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.downloads-help {
    margin-top: 45px;
    color: var(--muted);
}

.downloads-help a {
    color: var(--accent);
    text-decoration: none;
}

.downloads-help a:hover {
    text-decoration: underline;
}

/* =========================
   ADAPTACIÓN MÓVIL
========================= */

@media (max-width: 650px) {

    .header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }

    .header .logo img {
        width: 45px;
        height: 45px;
    }

    .navigation {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero h1 {
        letter-spacing: 5px;
    }

    .gallery-page {
        padding: 55px 15px 70px;
    }

    .gallery-carousel {
        gap: 8px;
    }

    .gallery-image-button {
        height: 350px;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .gallery-thumb {
        width: 75px;
        height: 60px;
    }

    .gallery-lightbox {
        width: 100vw;
        height: 100dvh;
        padding: 10px;
        border-radius: 0;
    }

    .lightbox-content {
        gap: 5px;
        height: calc(100% - 125px);
    }

    .lightbox-content img {
        max-width: calc(100% - 70px);
        max-height: 100%;
    }

    .lightbox-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .lightbox-actions {
        flex-wrap: wrap;
    }

    .download-card {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        text-align: center;
    }

    .download-button {
        width: 100%;
    }

    .download-logo {
        margin-left: auto;
        margin-right: auto;
    }
}
