﻿/* =========================
   RESET BÁSICO
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================
   BODY (Sticky Footer incluido)
========================= */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0F172A;
    color: #E5E7EB;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1; /* Empuja el footer abajo */
    padding: 25px;
    background: #020617;
}

/* =========================
   NAVBAR
========================= */
nav {
    background: #1E293B;
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

    nav a {
        color: #E5E7EB;
        text-decoration: none;
        font-weight: 500;
        font-size: 15px;
        padding: 6px 10px;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

        nav a:hover {
            color: #93C5FD;
            background: #334155;
        }

        nav a.logout {
            color: #F87171;
            font-weight: bold;
        }

            nav a.logout:hover {
                background: #7F1D1D;
                color: #FEE2E2;
            }

/* =========================
   TÍTULOS Y TEXTOS
========================= */
h1 {
    color: #A78BFA;
    margin-bottom: 20px;
}

p {
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: justify;
}

strong {
    color: #FACC15;
}

/* =========================
   CONTENIDO
========================= */
.contenido-servidor {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

    .contenido-servidor h2 {
        font-size: 28px;
        color: #A78BFA;
        margin-bottom: 15px;
        border-bottom: 2px solid #334155;
        padding-bottom: 5px;
    }

    .contenido-servidor h3 {
        margin-top: 30px;
        margin-bottom: 10px;
        color: #93C5FD;
    }

    .contenido-servidor p {
        margin-bottom: 15px;
        line-height: 1.7;
    }

/* =========================
   IMÁGENES
========================= */
.media-box {
    text-align: center;
    margin: 25px 0;
}

    .media-box img {
        max-width: 100%;
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 0 15px rgba(0,0,0,0.6);
    }

/* =========================
   VIDEO RESPONSIVE
========================= */
.video-box {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 30px 0;
}

    .video-box iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 12px;
        border: none;
    }

/* =========================
   TABLAS
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    background: #1E293B;
    padding: 10px;
    text-align: left;
}

td {
    background: #020617;
    padding: 10px;
    border-bottom: 1px solid #334155;
}

tr:hover td {
    background: #1E293B;
}

/* =========================
   LISTAS
========================= */
ul {
    margin-left: 20px;
}

    ul li {
        margin-top: 10px;
        font-weight: bold;
        color: #FACC15;
    }

/* =========================
   LINKS
========================= */
a {
    color: #60A5FA;
    text-decoration: none;
}

    a:hover {
        color: #93C5FD;
    }

/* =========================
   GRID DE SERVIDORES
========================= */
.servidores-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.categoria {
    background: #020617;
    border: 1px solid #1E293B;
    border-radius: 12px;
    padding: 15px;
}

.servidores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.item {
    background: #283048;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    transition: 0.3s;
}

    .item:hover {
        background: #3C6C7C;
        color: #020617;
        cursor: pointer;
    }

/* =========================
   LOGIN / REGISTRO
========================= */
.auth-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background: #020617;
    border: 1px solid #1E293B;
    border-radius: 14px;
    padding: 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

    .auth-card input {
        width: 100%;
        padding: 12px;
        margin-bottom: 14px;
        border-radius: 8px;
        border: none;
        background: #1E293B;
        color: white;
    }

    .auth-card button {
        width: 100%;
        padding: 12px;
        background: #6366F1;
        border: none;
        border-radius: 8px;
        color: white;
        font-weight: bold;
        cursor: pointer;
    }

/* =========================
   CARÁTULA
========================= */
.caratula {
    max-width: 800px;
    margin: auto;
    background: #020617;
    border: 1px solid #1E293B;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    text-align: center;
}

/* =========================
   FOOTER (Sticky)
========================= */
footer {
    background: #020617;
    text-align: center;
    padding: 12px;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet */
@media (max-width: 1024px) {
    .servidores-container {
        grid-template-columns: 1fr;
    }
}

/* Móvil */
@media (max-width: 768px) {

    nav {
        flex-direction: column;
        align-items: center;
    }

        nav a {
            width: 100%;
            text-align: center;
        }

    .servidores-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 22px;
        text-align: center;
    }

    p {
        text-align: left;
    }
}
