/* 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 Y SEPARACIÓN DE FOTOS/VIDEOS */
.dashboard-body {
    padding: 40px;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 38px;
    margin-bottom: 30px;
    color: #0b2545;
}

.dashboard-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.seccion-grupo {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.titulo-seccion {
    font-size: 32px;
    color: #0b2545;
    margin-bottom: 20px;
    letter-spacing: 2px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}


.menu-grid-seccion {
    display: grid;
    grid-template-columns: 1fr; /* Fuerza una sola columna vertical en cualquier pantalla */
    gap: 20px;
    max-width: 600px; /* Limita el ancho máximo para que los botones no se estiren demasiado en PC */
    margin: 0 auto;   /* Centra la columna en la pantalla */
}

/* BOTONES PRINCIPALES EN 3 DIMENSIONES (EFECTO RELIEVE) */
.card-menu {
    padding: 35px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Colores base con degradados y sombras 3D sólidas inferiores */
.btn-dia { 
    background: linear-gradient(to bottom, #3b82f6, #2563eb); 
    box-shadow: 0 8px 0 #1d4ed8, 0 12px 20px rgba(0,0,0,0.25);
    border: 1px solid #1e40af;
}

.btn-ojo { 
    background: linear-gradient(to bottom, #0ea5e9, #0284c7); 
    box-shadow: 0 8px 0 #0369a1, 0 12px 20px rgba(0,0,0,0.25);
    border: 1px solid #035388;
}

.btn-video-dia { 
    background: linear-gradient(to bottom, #8b5cf6, #7c3aed); 
    box-shadow: 0 8px 0 #6d28d9, 0 12px 20px rgba(0,0,0,0.25);
    border: 1px solid #5b21b6;
}

.btn-video-ojo { 
    background: linear-gradient(to bottom, #ec4899, #db2777); 
    box-shadow: 0 8px 0 #be185d, 0 12px 20px rgba(0,0,0,0.25);
    border: 1px solid #9d174d;
}

/* Efecto al pasar el cursor y al hacer clic (hundimiento 3D) */
.card-menu:hover {
    filter: brightness(1.05);
}

.card-menu:active {
    transform: translateY(6px); /* Simula que el botón se presiona hacia adentro */
    box-shadow: 0 2px 0 rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.2);
}

.card-menu h2 {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.card-menu p {
    font-size: 18px;
    opacity: 0.9;
}

/* CONTENEDORES DE VIDEOS Y GALERÍAS */
.container-contenido {
    max-width: 90%; /* Ocupa el 90% de la pantalla de tu papá */
    width: 850px;   /* Límite máximo para pantallas grandes como la tuya */
    margin: 20px auto;
    padding: 15px;
    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%;
}