* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #0d1b2a;
    color: white;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 240px;
    background: #132238;
    padding: 25px;
    transition: left 0.3s ease; /* Animación para móviles */
}

.close-btn {
    display: none; /* Oculto en escritorio */
    text-align: right;
    font-size: 24px;
    cursor: pointer;
    color: #ff4444;
    margin-bottom: 10px;
}

.sidebar h1 { font-size: 45px; text-align: center; }
.sidebar h2 { text-align: center; color: #00d8c3; margin: 15px 0 30px; }
.sidebar ul { list-style: none; }
.sidebar li {
    padding: 15px;
    margin-bottom: 12px;
    background: #1b304b;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
}
.sidebar li:hover { background: #00d8c3; color: black; }

/* --- MAIN & HEADER GLASSMORPHISM --- */
main {
    flex: 1;
    padding: 0 30px 30px 30px;
}

.glass-header {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05); /* Cristal transparente */
    backdrop-filter: blur(15px); /* Efecto difuminado */
    -webkit-backdrop-filter: blur(15px); /* Para Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    margin: 0 -30px 30px -30px; 
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glass-header h1 {
    margin-bottom: 0;
    font-size: 24px;
}

.hamburger {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    color: #00d8c3;
    font-size: 30px;
    cursor: pointer;
    margin-right: 15px;
}

/* --- TARJETAS --- */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: #1b304b;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.card h3 { margin-bottom: 15px; }
.card p, .card h2 { margin-bottom: 20px; }

button {
    background: #00d8c3;
    color: black;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%; /* Botones adaptables */
    transition: 0.2s;
}
button:hover { background: #00b9a8; transform: scale(1.02); }

/* --- MODAL DE PAGO (BROMA) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1b304b;
    border: 3px solid #ff4444;
    border-radius: 15px;
    padding: 30px;
    width: 400px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    animation: temblor 0.5s ease-in-out;
}

.modal-content h2 { color: #ff4444; font-size: 28px; margin-bottom: 10px; }
.price-tag { font-size: 20px; color: #00d8c3; margin: 20px 0; }
.fake-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.fake-form input {
    width: 100%; padding: 12px; border-radius: 8px;
    border: 1px solid #00d8c3; background: #132238; color: white;
}
.fake-form input.short-input { width: calc(50% - 5px); }
.pay-btn { background: #ff4444; color: white; margin-bottom: 10px; }
.pay-btn:hover { background: #cc0000; }
.cancel-btn { background: transparent; border: 1px solid white; color: white; }
.cancel-btn:hover { background: rgba(255, 255, 255, 0.1); }

@keyframes temblor {
    0%, 100% { transform: translateX(0); }
    25%, 75% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
}

/* =========================================
   DISEÑO RESPONSIVO (MÓVILES)
   ========================================= */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr; /* 1 sola columna en móviles */
    }
    
    .hamburger, .close-btn {
        display: block; /* Mostramos botones de menú */
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -240px; /* Oculta a la izquierda por defecto */
        height: 100vh;
        z-index: 999;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    /* Clase que JS agregará para mostrar el menú */
    .sidebar.active {
        left: 0; 
    }

    .modal-content {
        width: 90%; /* Ajuste del modal en pantallas pequeñas */
        padding: 20px;
    }
    
    main { padding: 0 15px 30px 15px; }
    .glass-header { margin: 0 -15px 20px -15px; padding: 15px; }
}