@import url('theme/pensiler-theme.css');

/* ============================= */
/* 📚 FUENTES */
/* ============================= */
@import url('https://fonts.cdnfonts.com/css/milky-nice');

/* ============================= */
/* 🎨 PALETA (valores usados) */
/* ============================= */
/* morado:         #6a1b9a */
/* morado-oscuro:  #4a148c */
/* morado-claro:   #7b1fa2 */
/* azul:           #283593 */
/* azul-oscuro:    #1a237e */
/* azul-claro:     #42a5f5 */
/* celeste:        #29b6f6 */
/* celeste-oscuro: #0288d1 */
/* dorado:         #ffd700 */
/* blanco:         #ffffff */
/* gris:           #f5f5f5 */
/* sombra:         rgba(74, 20, 140, 0.3) */

/* ============================= */
/* 🌐 ESTILOS GENERALES */
/* ============================= */
body {
    font-family: 'Milky Nice', Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6a1b9a, #283593);
    margin: 0;
    padding: 0;
    text-align: center;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ============================= */
/* ❄️ COPOS DE NIEVE */
/* ============================= */
#snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: #ffffff;
    font-size: 1.2em;
    opacity: 0.8;
    animation-name: snowFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    pointer-events: none;
    user-select: none;
    z-index: 9998;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============================= */
/* 🎅 HEADER */
/* ============================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #4a148c, #283593);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-bottom: 3px solid #ffd700;
}

#titulo-seccion {
    font-weight: 400;
    font-size: 1.6rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================= */
/* 🍔 MENÚ HAMBURGUESA */
/* ============================= */
.hamburger {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 1.4rem;
    display: block;
    margin-right: 10px;
}

.hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    margin: 4px 0;
    border-radius: 2px;
}

/* ============================= */
/* 📋 NAVBAR */
/* ============================= */
#nav-bar {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: rgba(74, 20, 140, 0.95);
    position: absolute;
    top: 60px;
    right: 10px;
    min-width: 180px;
    padding: 12px;
    border-radius: 8px;
    z-index: 999;
    border: 2px solid #ffd700;
}

.header.nav-open #nav-bar {
    display: flex;
}

#nav-bar a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    font-weight: 400;
    border-radius: 6px;
    transition: background 0.2s;
}

#nav-bar a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================= */
/* 🦌 FOOTER */
/* ============================= */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #1a237e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    border-top: 3px solid #ffd700;
    gap: 15px;
}

/* ============================= */
/* 🎄 BOTONES DEL FOOTER (PEQUEÑOS) */
/* ============================= */
#beta-btn,
#logs-btn {
    background: #d32f2f;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Milky Nice', sans-serif;
    transition: background 0.2s;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#beta-btn:hover,
#logs-btn:hover {
    background: #ff5252;
}

/* ============================= */
/* 📦 CONTENIDO PRINCIPAL */
/* ============================= */
.contenido {
    padding-top: 80px;
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ============================= */
/* 🎄 CONTENEDOR DE TARJETAS */
/* ============================= */
#opciones-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

#opciones {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    scroll-behavior: smooth;
    padding: 10px 5px;
}

/* Scrollbar */
#opciones-container::-webkit-scrollbar {
    height: 8px;
}

#opciones-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#opciones-container::-webkit-scrollbar-thumb {
    background: #42a5f5;
    border-radius: 4px;
}

#opciones-container {
    scrollbar-width: thin;
    scrollbar-color: #42a5f5 rgba(255, 255, 255, 0.1);
}

/* ============================= */
/* 🎁 TARJETAS */
/* ============================= */
.contenedor-bonito {
    flex: 0 0 auto;
    width: 220px;
    min-width: 180px;
    max-width: 250px;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(145deg, #7b1fa2, #512da8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 2px solid #42a5f5;
    transition: all 0.3s;
}

.contenedor-bonito:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.contenedor-bonito h2 {
    color: #42a5f5;
    margin: 0;
    font-size: 1.3rem;
}

.contenedor-bonito p {
    color: #ffffff;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ============================= */
/* 🔘 BOTONES DENTRO DE TARJETAS (PEQUEÑOS) */
/* ============================= */
.contenedor-bonito a.boton {
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    background: #29b6f6;
    color: #fff;
    font-weight: 400;
    font-family: 'Milky Nice', sans-serif;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    max-width: 100%;
    align-self: center;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

.contenedor-bonito a.boton:hover {
    background: #0288d1;
    color: #fff;
    border: 2px solid #42a5f5;
}

/* ============================= */
/* 🧪 TARJETAS BETA */
/* ============================= */
.beta-card {
    background: linear-gradient(145deg, #009688, #00695c);
    border: 2px solid #ffd700;
}

.beta-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.beta-card a.boton {
    background: #ffd700;
    color: #00695c;
}

.beta-card a.boton:hover {
    background: #ffffff;
    color: #009688;
}

/* ============================= */
/* ❄️ LOADER */
/* ============================= */
#pantallaCarga {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2e7d32, #d32f2f);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================= */
/* 📜 ESTILOS PARA LOGS */
/* ============================= */
.logs-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 2px solid #ffd700;
    width: 90%;
}

.logs-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.logs-control-btn {
    padding: 8px 12px;
    border: 1px solid #ffd700;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    font-family: 'Milky Nice', sans-serif;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.logs-control-btn:hover {
    background: #d32f2f;
}

.logs-control-btn.active {
    background: #ffd700;
    color: #d32f2f;
    font-weight: bold;
}

#logs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ============================= */
/* 📝 ENTRADAS DE LOG */
/* ============================= */
.log-entry {
    background: linear-gradient(145deg, rgba(46, 125, 50, 0.15), rgba(211, 47, 47, 0.15));
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid #ffd700;
    transition: all 0.3s;
}

.log-entry.important {
    border-left-color: #d32f2f;
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.15), rgba(211, 47, 47, 0.2));
}

.log-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.log-title {
    font-size: 1.2rem;
    margin: 0;
    color: #ffd700;
}

.log-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #ffffff;
}

.log-version {
    background: rgba(255, 215, 0, 0.2);
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid #ffd700;
}

.log-date {
    color: #e0e0e0;
}

.log-body {
    margin: 10px 0;
    line-height: 1.5;
    color: #ffffff;
    text-align: left;
    font-size: 0.95rem;
}

.log-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.log-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ============================= */
/* 🎭 MODAL */
/* ============================= */
.log-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.log-modal-content {
    background: linear-gradient(145deg, #2e7d32, #d32f2f);
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid #ffd700;
}

.log-modal-content h3 {
    color: #ffd700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.log-modal-content input,
.log-modal-content textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ffd700;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Milky Nice', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.log-modal-content input:focus,
.log-modal-content textarea:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.log-modal-content textarea {
    min-height: 120px;
    resize: vertical;
}

.log-modal-content label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
}

.log-modal-content input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ffd700;
    margin: 0;
}

.log-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

.log-modal-buttons .logs-control-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ============================= */
/* 🌙 MODO BETA */
/* ============================= */
body.modo-beta {
    background: radial-gradient(circle at center, #1e1e2f 0%, #11111b 100%) !important;
    color: #ffffff !important;
}

body.modo-beta .header {
    background-color: rgba(40, 44, 52, 0.9) !important;
    border-bottom: 3px solid #ffd700;
}

body.modo-beta #titulo-seccion {
    color: #ffd700 !important;
}

body.modo-beta .footer {
    background-color: #12121b !important;
    border-top: 3px solid #ffd700;
}

body.modo-beta #beta-btn,
body.modo-beta #logs-btn {
    background: #2e7d32;
}

body.modo-beta #beta-btn:hover,
body.modo-beta #logs-btn:hover {
    background: #4caf50;
}

body.modo-beta .beta-card {
    background: linear-gradient(145deg, #282a36, #1e1e2f) !important;
    border: 2px solid #ffd700;
}

body.modo-beta .beta-card:hover {
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.2) !important;
}

body.modo-beta .beta-card h2 {
    color: #ffd700;
}

body.modo-beta .beta-card a.boton {
    background: #ffd700;
    color: #282a36;
}

body.modo-beta .beta-card a.boton:hover {
    background: #ffffff;
    color: #1e1e2f;
}

body.modo-beta .logs-container {
    background: rgba(40, 44, 52, 0.8) !important;
    border: 2px solid #ffd700;
}

body.modo-beta .log-entry {
    background: linear-gradient(145deg, rgba(40, 44, 52, 0.8), rgba(30, 30, 47, 0.8)) !important;
}

body.modo-beta .logs-control-btn.active {
    background: #ffd700 !important;
    color: #282a36 !important;
}

/* ============================= */
/* 📱 RESPONSIVE MEJORADO */
/* ============================= */
@media (max-width: 768px) {
    .header {
        height: 60px;
        padding: 0 15px;
    }

    #titulo-seccion {
        font-size: 1.2rem;
    }

    .hamburger {
        padding: 6px 10px;
    }

    .contenido {
        padding-top: 70px;
        padding-bottom: 60px;
    }

    .contenedor-bonito {
        width: 200px;
        min-width: 180px;
        max-width: 200px;
        padding: 20px;
    }

    .contenedor-bonito a.boton {
        padding: 7px 14px;
        font-size: 0.85rem;
    }

    .footer {
        height: auto;
        min-height: 50px;
        padding: 8px 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    #beta-btn,
    #logs-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        height: 32px;
        margin: 2px;
    }

    .logs-container {
        margin: 10px auto;
        padding: 12px;
        width: 95%;
    }

    .logs-controls {
        gap: 6px;
    }

    .logs-control-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .log-entry {
        padding: 12px;
    }

    .log-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .log-meta {
        justify-content: flex-start;
    }

    .log-modal-content {
        padding: 15px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    #titulo-seccion {
        font-size: 1rem;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .contenedor-bonito {
        width: 160px;
        min-width: 160px;
        max-width: 180px;
        padding: 15px;
    }

    .contenedor-bonito h2 {
        font-size: 1.1rem;
    }

    .contenedor-bonito p {
        font-size: 0.85rem;
    }

    .contenedor-bonito a.boton {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .footer {
        font-size: 0.85rem;
    }

    .logs-controls {
        flex-direction: column;
        align-items: center;
    }

    .logs-control-btn {
        width: 90%;
    }

    #logs-list {
        max-height: 400px;
        overflow-y: auto;
    }
}

/* Para móviles en horizontal */
@media (max-height: 500px) and (orientation: landscape) {
    .contenido {
        padding-bottom: 60px;
    }

    .footer {
        height: 45px;
    }

    #beta-btn,
    #logs-btn {
        padding: 5px 10px;
        height: 30px;
    }
}