* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- ESTILOS DEL LOGIN --- */
.login-container {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 90%;
    max-width: 360px;
}

.login-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.instruccion {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 1.2rem;
}

#pinInput {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: 0.6rem;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: #121212;
    color: #ffffff;
    margin-bottom: 1.5rem;
    outline: none;
}

.teclado-numerico {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.teclado-numerico button {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background-color: #2c2c2c;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.teclado-numerico button:hover {
    background-color: #3d3d3d;
}

.teclado-numerico button:active {
    transform: scale(0.96);
}

.teclado-numerico .btn-borrar {
    background-color: #8b2635;
    font-size: 0.95rem;
}

.teclado-numerico .btn-borrar:hover {
    background-color: #a62e40;
}

.teclado-numerico .btn-entrar {
    background-color: #1f7a4c;
    font-size: 0.95rem;
}

.teclado-numerico .btn-entrar:hover {
    background-color: #26945d;
}

.error-msg {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 1rem;
    min-height: 1.2rem;
}

/* --- ESTILOS DEL REPRODUCTOR DE VIDEO --- */
.video-body {
    justify-content: flex-start;
    padding: 1.5rem;
}

.video-header {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #2c2c2c;
}

.video-header h1 {
    font-size: 1.4rem;
}

.btn-salir {
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-salir:hover {
    background-color: #8b2635;
}

.video-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

video {
    width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    background-color: #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* --- ESTILOS DEL BOTÓN PLAY PERSONALIZADO --- */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-overlay-btn {
    position: absolute;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #1f7a4c;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    transition: background-color 0.2s, transform 0.1s;
    z-index: 10;
}

.play-overlay-btn:hover {
    background-color: #26945d;
    transform: scale(1.05);
}

.play-overlay-btn:active {
    transform: scale(0.98);
}