/* ------------------------------
   BASE GENERAL
------------------------------ */
body {
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    text-align: center;
    padding-top: 40px;
    transition: background 0.3s, color 0.3s;
}

.contenedor {
    background: white;
    
    width: 90%;
    max-width: 420px;
   margin: 60px auto;
    
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

/* ------------------------------
   ENCABEZADO CON LOGO
------------------------------ */
.header {
    width: 100%;
    background: #007bff;
    color: white;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: fixed;
    top: 0;
    left: 0;
}

.logo {
    height: 40px;
}

.titulo-sitio {
    font-size: 26px;
    font-weight: bold;
}

/* ------------------------------
   CAMPOS Y BOTONES
------------------------------ */
input {
    width: 90%;
    padding: 14px;
    margin: 10px 0;
    font-size: 20px;
    border-radius: 8px;
    border: 1px solid #999;
}

button {
    width: 95%;
    padding: 16px;
    font-size: 22px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
}

button:hover {
    background: #0056b3;
}

/* ------------------------------
   MENSAJES GRANDES
------------------------------ */
#msg {
    font-size: 22px;
    font-weight: bold;
    margin-top: 15px;
}

/* ------------------------------
   MODO OSCURO
------------------------------ */
body.oscuro {
    background: #1a1a1a;
    color: white;
}

body.oscuro .contenedor {
    background: #2b2b2b;
    color: white;
}

body.oscuro input {
    background: #444;
    color: white;
    border: 1px solid #777;
}

body.oscuro button {
    background: #0099ff;
}

.modo-btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-top: 25px;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 8px;
}


/* ------------------------------
   MENÚ LATERAL
------------------------------ */
.menu-btn {
    font-size: 22px;
    cursor: pointer;
    margin-top: 20px;
}

.menu-lateral {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #007bff;
    padding-top: 80px;
    transition: left 0.3s;
    display: flex;
    flex-direction: column;
}

.menu-lateral a {
    color: white;
    padding: 18px;
    text-align: left;
    font-size: 22px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.menu-lateral a:hover {
    background: #0056b3;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 480px) {
    h1, h2 {
        font-size: 24px;
    }

    input, button {
        font-size: 18px;
    }

    .titulo-sitio {
        font-size: 22px;
    }
}
