/* ESTILOS GENERALES Y ACCESIBLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #111;
    font-size: 20px;
}

/* PANTALLA DE LOGIN */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #0b2545;
}

.login-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
}

.login-container h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #0b2545;
}

.instruccion {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

#pinInput {
    width: 100%;
    font-size: 40px;
    text-align: center;
    letter-spacing: 15px;
    padding: 15px;
    margin-bottom: 25px;
    border: 3px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
}

.teclado-numerico {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.teclado-numerico button {
    font-size: 28px;
    padding: 20px;
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #111;
    transition: background 0.2s;
}

.teclado-numerico button:hover {
    background: #cbd5e1;
}

.btn-entrar {
    background: #10b981 !important;
    color: white !important;
}

.btn-borrar {
    background: #ef4444 !important;
    color: white !important;
}

.error-msg {
    color: #dc2626;
    font-size: 20px;
    margin-top: 15px;
    font-weight: bold;
}

/* DASHBOARD PRINCIPAL */
.dashboard-body {
    padding: 40px;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 38px;
    margin-bottom: 40px;
    color: #0b2545;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-menu {
    padding: 40px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.card-menu:hover {
    transform: scale(1.03);
}

.btn-dia { background-color: #2563eb; }
.btn-ojo { background-color: #0284c7; }
.btn-video-dia { background-color: #7c3aed; }
.btn-video-ojo { background-color: #db2777; }

.card-menu h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.card-menu p {
    font-size: 20px;
    opacity: 0.9;
}

/* CONTENEDORES DE VIDEOS Y GALERÍAS */
.container-contenido {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* BOTÓN VOLVER MEJORADO CON COLOR VERDE Y EFECTO 3D (RELIEVE) */
.btn-volver {
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    padding: 16px 32px;
    background: linear-gradient(to bottom, #10b981, #059669); /* Degradado verde */
    color: white;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 6px 0 #047857, 0 8px 15px rgba(0, 0, 0, 0.3); /* Sombra 3D sólida inferior */
    transition: all 0.1s ease;
    border: 1px solid #065f46;
}

.btn-volver:hover {
    background: linear-gradient(to bottom, #34d399, #10b981);
}

.btn-volver:active {
    transform: translateY(4px); /* Simula que el botón se hunde al presionarlo */
    box-shadow: 0 2px 0 #047857, 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-bloque {
    margin-bottom: 45px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 30px;
}

.video-bloque h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1e293b;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}