/* ======== BASE ======== */
body {
    margin: 0;
    background: #141414;
    color: #eee;
    font-family: Arial, sans-serif;
    text-align: center;
}

/* ======== HEADER ======== */
#top-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    background: #111;
    padding: 10px 20px;
    border-bottom: 2px solid #222;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

#top-header button {
    background: #252525;
    border: 1px solid #333;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    color: #ffd200;
    font-weight: 600;
    font-size: 15px;
    transition: 0.15s;
    white-space: nowrap;
}

#top-header button:hover {
    background: #333;
}

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

/* ======== HEADER RESPONSIVE ======== */
@media (max-width: 768px) {
    #top-header {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 10px 10px !important;
    }

    #top-header button {
        padding: 8px 14px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }

    .logo-header img {
        height: 48px !important;
    }
}

@media (max-width: 420px) {
    #top-header button {
        font-size: 14px !important;
        padding: 7px 10px !important;
    }

    #top-header .logo-header img {
        height: 42px !important;
    }
}

/* ======== CONTENIDO PRINCIPAL ======== */
#contenido-principal {
    padding: 40px 20px;
    min-height: 65vh;
}

/* ======== FOOTER ======== */
footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.9rem;
}

/* ===================================== */
/*            PÁGINA INICIO              */
/* ===================================== */

.inicio-container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.titulo-inicio {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.subtitulo-inicio {
    margin-bottom: 40px;
    color: #bbb;
}

.cards-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card-opcion {
    width: 260px;
    height: 180px;
    background: #1d1d1d;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-opcion:hover {
    background: #262626;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255,255,255,0.08);
}

.icono {
    font-size: 40px;
    margin-bottom: 10px;
}

.texto {
    font-size: 1.1rem;
    font-weight: bold;
    color: #eee;
}

/* ===================================================== */
/* 📱 FIX MÓVILES – VERTICAL + SIN SCROLL */
/* ===================================================== */

@media (max-width: 768px) {

    body {
        font-size: 18px !important;
    }

    #contenido-principal {
        padding-top: 40px !important;
    }

    /* FORZAR TARJETAS EN COLUMNA */
    .cards-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        gap: 25px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .card-opcion {
        width: 90% !important;
        max-width: 380px !important;
        height: 170px !important;
    }

    .texto {
        font-size: 1.25rem !important;
    }

    .icono {
        font-size: 48px !important;
    }
}

@media (max-width: 420px) {
    .card-opcion {
        height: 165px !important;
    }
}
