:root {
    --bg: #0b0b0f;
    --card: #14141c;
    --red: #ff2e63;
    --dark-red: #b3123f;
    --text: #eaeaea;
    --muted: #9aa0a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: radial-gradient(circle at top, #1a1a22, #050507);
    color: var(--text);
    overflow-x: hidden;
}

/* NAV */
header {
    backdrop-filter: blur(10px);
    background: rgba(10,10,15,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--red);
    text-shadow: 0 0 10px var(--red);
}

.nav-links a {
    color: var(--text);
    margin-left: 1.5rem;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--red);
    text-shadow: 0 0 8px var(--red);
}

/* =============================================== */
/* ===== HERO CON VÍDEO DE FONDO (NUEVO) ========= */
/* =============================================== */
.hero {
    position: relative;          /* Necesario para posicionar el vídeo */
    min-height: 100vh;           /* O 80vh si prefieres menos altura */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5rem 2rem;
    text-align: center;
}

/* Contenedor del vídeo (ocupa todo el hero) */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* Recorta para llenar sin deformar */
    filter: blur(0px) brightness(0.7);  /* Desenfoque + oscurecido */
    transform: scale(1.1);       /* Evita bordes blancos por el blur */
}

/* Capa oscura adicional (refuerza el contraste) */
.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Contenido (texto y botón) - va por encima de todo */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--red);
    text-shadow: 0 0 15px var(--red), 0 4px 20px rgba(0,0,0,0.8);
    /* Sombra oscura extra para que respire sobre el vídeo */
}

.hero-content p {
    margin-top: 1rem;
    color: var(--muted);
    max-width: 700px;
    margin-inline: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* =============================================== */
/* ===== FIN HERO ================================ */
/* =============================================== */

/* BUTTON */
.download-btn {
    display: inline-block;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--red), var(--dark-red));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255,46,99,0.6);
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255,46,99,1);
}

/* CONTENT */
.content {
    max-width: 1100px;
    margin: auto;
    padding: 3rem 2rem;
}

.content h2 {
    margin: 2rem 0 1rem;
    color: var(--red);
}

/* GALLERY */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 14px;
    transition: 0.3s;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: 0.4s;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2);
}

.gallery-item:hover {
    box-shadow: 0 0 20px rgba(255,46,99,0.4);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255,46,99,0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,46,99,0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.lightbox-close:hover {
    background: var(--red);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,46,99,0.7);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--red);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text);
    background: rgba(0,0,0,0.7);
    padding: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .lightbox-caption {
        bottom: -30px;
        font-size: 0.8rem;
    }
}

/* TEXT */
.description {
    color: var(--muted);
    line-height: 1.7;
}

/* LIST */
ul {
    margin-left: 1.5rem;
    color: var(--muted);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    color: #777;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.server-box {
    margin-top: 5.0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.server-box h2 {
    color: #ff2e63;
    font-size: 1.8rem; /* ajusta el tamaño si lo ves muy grande */
    text-align: center;
    margin-bottom: 1rem;
}

.server-input {
    background: rgba(20,20,28,0.9);
    border: 1px solid rgba(255,46,99,0.3);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 10px;
    font-family: monospace;
    text-align: center;
    width: 260px;
    outline: none;
    transition: 0.25s;
    cursor: pointer;
}

.server-input:hover {
    border-color: var(--red);
    box-shadow: 0 0 15px rgba(255,46,99,0.4);
}

.server-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 20px rgba(255,46,99,0.6);
}

.server-label {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* opcional: centrado si no lo tienes */
.server-box {
    text-align: center;
}
