* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #010000;
    color: #fff;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-x: hidden;
}

/* Encabezado */
.encabezado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.titulo {
    margin-top: 10px;
    font-size: 2em;
    color: #ffffff;
}

.logo {
    height: 100px;
    width: auto;
    background: #ffffff;
    border-radius: 16px;
}

.logo2 {
    height: 100px;
    width: auto;
    background: #ffffff;
    border-radius: 16px;
}

/* Contenedor de video */
.video-container {
    width: 60%;
    max-width: 900px;
    margin: 0 auto 30px auto;
    height: 60vh;
    border: 2px solid #e85757;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 20px rgb(255, 0, 0);
    position: relative;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Imagen fallback */
.fallback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

/* Botón de pantalla grande*/
.fullscreen-btn {
    background-color: #c4d325;
    color: rgb(0, 0, 0);
    padding: 10px 22px;
    font-size: 2em;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.fullscreen-btn:hover {
    background-color: #ced956;
}

#contador {
    text-align: center;
    margin: 20px auto;
}

.boton-completa {
    text-align: center;
    margin-bottom: 20px;
}

/* Botón de WhatsApp */
.boton-container {
    text-align: center;
}

.boton-wsp {
    background-color: #25D366;
    color: rgb(0, 0, 0);
    padding: 16px 28px;
    font-size: 2.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
    display: inline-block;
    margin-bottom: 9px;
}

.boton-wsp:hover {
    background-color: #1ebe5b;
}

/* Botón de Telegram */
.boton-container2 {
    text-align: center;
}

.boton-tlg {
    background-color: #20a4c5;
    color: rgb(0, 0, 0);
    padding: 16px 28px;
    font-size: 2.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.boton-tlg:hover {
    background-color: #0554a9;
}

.titulorevistas {
    text-align: center;
    margin-top: 10px;
    font-size: 2em;
    color: #ffffff;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.contenedor-iframe {
    width: 100%;
    height: 100vh;
    border: 2px solid #e85757;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 20px rgb(255, 0, 0);
    margin-bottom: 30px;
}

/* --- Estilos para el login --- */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 320px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.login-box h2 {
    margin: 0 0 20px;
    color: #333;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-box button {
    background: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
}

.login-logo {
    display: block;
    margin: 0 auto 15px auto;
    width: 120px;
    height: auto;
    border-radius: 12px;
}

#mainContent {
    display: none;
    filter: blur(8px);
    transition: filter 0.3s;
}

#mainContent.show-content {
    display: block;
    filter: blur(0);
}

.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.btn-whatsapp img {
    width: 35px;
    height: 35px;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .encabezado {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .titulo {
        text-align: center;
        display: none;
    }

    .titulorevistas {
        font-size: 1.2em;
        padding: 0 10px;
        word-wrap: break-word;
        text-align: center;
    }

    .logo {
        height: 100px;
    }

    .boton-wsp {
        font-size: 10px;
    }

    .boton-tlg {
        font-size: 10px;
    }

    .fullscreen-btn {
        font-size: 10px;
    }

    .video-container {
        width: 100%;
        height: 40vh;
        border: 2px solid #e85757;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 0 20px rgb(255, 0, 0);
        margin-bottom: 30px;
    }

    .logo2 {
        display: none;
    }
    
    @media (max-width: 600px) {
    .btn-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .btn-whatsapp img {
        width: 30px;
        height: 30px;
    }
}