/* --- Reset y fuentes --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #f8f8f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    background: rgba(30, 60, 114, 0.85);
    padding: 32px 0 18px 0;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

header h1 {
    font-size: 2.7rem;
    margin: 0;
    letter-spacing: 2px;
    color: #f1c40f;
    text-shadow: 0 2px 8px #1e3c72;
}

.container {
    background: rgba(0,0,0,0.82);
    margin: 32px 0 0 0;
    padding: 32px 24px 24px 24px;
    border-radius: 22px;
    max-width: 1100px;   /* Igual que el video */
    width: 98%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

h2 {
    color: #f1c40f;
    margin-bottom: 10px;
    font-size: 2rem;
    text-shadow: 0 2px 8px #1e3c72;
}

.description {
    margin-bottom: 18px;
    font-size: 1.13rem;
    line-height: 1.7;
    color: #eaeaea;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 12px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-container {
    position: relative;
    width: 90vw;
    max-width: 1100px;
    min-width: 280px;
    padding-top: 50.5%; /* Relación 16:9 pero más grande */
    margin-bottom: 18px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    background: #111;
    transition: max-width 0.3s, padding-top 0.3s;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    border-radius: 18px;
    background: #111;
}

/* Responsive para tablets y móviles */
@media (max-width: 900px) {
    .video-container {
        max-width: 98vw;
        padding-top: 56.25%; /* 16:9 clásico para pantallas más pequeñas */
        border-radius: 12px;
    }
    .video-container iframe {
        border-radius: 12px;
    }
}

@media (max-width: 600px) {
    .video-container {
        max-width: 100vw;
        padding-top: 60vw; /* Relación más cuadrada para móviles */
        border-radius: 8px;
    }
    .video-container iframe {
        border-radius: 8px;
    }
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.button-group button {
    padding: 12px 28px;
    background: linear-gradient(90deg, #00bcd4 60%, #3498db 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    letter-spacing: 1px;
}

.button-group button:hover, .button-group button.active {
    background: linear-gradient(90deg, #f1c40f 60%, #e67e22 100%);
    color: #222;
    transform: scale(1.07);
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.button-container a {
    padding: 11px 26px;
    background: linear-gradient(90deg, #e67e22 60%, #f1c40f 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 5px 0;
    display: inline-block;
    transition: background 0.25s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    letter-spacing: 1px;
}

.button-container a:hover {
    background: linear-gradient(90deg, #00bcd4 60%, #3498db 100%);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.notification {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #e74c3c 60%, #c0392b 100%);
    color: #fff;
    padding: 18px 30px 18px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    text-align: left;
    z-index: 1000;
    width: 95%;
    max-width: 540px;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 18px;
    animation: fadeInDown 0.7s;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px) translateX(-50%);}
    to { opacity: 1; transform: translateY(0) translateX(-50%);}
}

.notification button {
    padding: 8px 18px;
    background: #fff;
    color: #c0392b;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-left: auto;
    transition: background 0.2s, color 0.2s;
}

.notification button:hover {
    background: #c0392b;
    color: #fff;
}

footer {
    margin-top: 32px;
    font-size: 1rem;
    color: #ecf0f1;
    background: rgba(30, 60, 114, 0.85);
    width: 100%;
    text-align: center;
    padding: 18px 0 10px 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
}

/* --- Responsive --- */
@media (max-width: 700px) {
    header h1 {
        font-size: 1.5rem;
    }
    .container {
        padding: 18px 4vw 18px 4vw;
        max-width: 99vw;
    }
    .video-container {
        border-radius: 8px;
    }
    .button-group button, .button-container a {
        font-size: 0.98rem;
        padding: 10px 12px;
    }
    .notification {
        font-size: 0.97rem;
        padding: 12px 8px 12px 12px;
        max-width: 98vw;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 98vw;
        padding: 24px 4vw 18px 4vw;
        border-radius: 16px;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px 2vw 10px 2vw;
        max-width: 100vw;
        border-radius: 8px;
        gap: 10px;
    }
    .button-group, .button-container {
        flex-direction: column;
        gap: 8px;
    }
    .notification {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}