:root {
    --red: #c8102e;
    --dark: #0b0b0b;
    --muted: #222;
    --text-on-dark: #fff;
    --accent: var(--red);
    --fade-in: cubic-bezier(.4,0,.2,1);
}

/* Fondo general y tipografía */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #181818 0%, #2d2d2d 100%);
    color: var(--text-on-dark);
}

/* Contenedor principal */
.container {
    min-height: 100vh;
    background: rgba(0,0,0,0.92);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 70px;
    border-radius: 18px;
    box-shadow: 0 8px 32px #000a;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2rem;
}

/* Barra superior */
.topbar {
    background: var(--dark);
    color: var(--text-on-dark);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 2px 12px #0006;
    position: fixed;
    top: 0; left: 0; width: 100vw;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 2rem;
    font-size: 1.1rem;
}
.topbar-title { color: var(--accent); font-weight: bold; font-size: 1.2rem; }
.topbar-social a { color: var(--text-on-dark); margin-left: 16px; font-size: 1.2em; transition: color 0.2s; }
.topbar-social a:hover { color: var(--accent); }

/* Navegación superior moderna */
.topbar-nav {
    display: inline-flex;
    gap: 1.2rem;
    list-style: none;
    margin: 0 1.5rem 0 1.5rem;
    padding: 0;
    vertical-align: middle;
}
.topbar-nav li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.2em 0.7em;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.topbar-nav li a:hover,
.topbar-nav li a:focus {
    background: #c8102e;
    color: #fff;
    outline: none;
}

/* Logo y slogan */
.logo-container {
    margin: 3.5rem auto 1.5rem auto;
    max-width: 200px;
    text-align: center;
}
.site-logo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px #0008;
    background: #fff;
}
.slogan {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--accent);
    font-style: italic;
    text-shadow: 1px 1px 4px #0008;
}

/* Banner destacado */
.banner-highlight {
    width: 100vw;
    background: linear-gradient(90deg, #c8102e 0%, #0b0b0b 100%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    padding: 0.7rem 0 0.7rem 0;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 12px #0007;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}
.banner-live {
    background: #fff;
    color: #c8102e;
    border-radius: 999px;
    padding: 0.2em 1em;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 8px #0003;
}
.banner-msg {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Título principal */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 8px #000a;
    margin-top: 1rem;
    color: #fff;
    letter-spacing: 1px;
}

/* Mensaje oficial */
.official-message {
    background: rgba(40,0,0,0.18);
    border-left: 5px solid var(--accent);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px #0003;
}
.official-message h2 { color: var(--accent); margin-bottom: .25rem; }
.official-message p { color: #eee; }

/* Contadores */
.counters {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    background: rgba(30,0,0,0.12);
    border-radius: 8px;
    padding: 0.7rem 0;
}
.counters i { margin-right: 6px; color: var(--accent); }

/* Reproductor */
.player {
    margin: 2rem auto 2.5rem auto;
    max-width: 500px;
    background: linear-gradient(90deg, #181818 60%, #c8102e 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px #0007;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.play-button {
    background: linear-gradient(180deg, var(--accent), #9b081f);
    color: #fff;
    border: none;
    padding: 1rem 2.2rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 12px rgba(200,0,0,0.12);
    outline: none;
    margin-top: 1rem;
    transition: background 0.2s, color 0.2s;
}
.play-button:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.play-button:hover { background: #a00; color: #fff; }
.live-badge {
    display: none;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 12px rgba(200,0,0,0.2);
    letter-spacing: 1px;
    font-size: 1rem;
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: .9; }
    100% { transform: scale(1); opacity: 1; }
}
#audioPlayer { width: 100%; margin-bottom: 1rem; background: #222; border-radius: 8px; }

/* Secciones de video */
.live-video-section, .video-gallery-section {
    background: rgba(0,0,0,0.5);
    border-radius: 18px;
    padding: 1.5rem 0 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px #0004;
}
.live-video-section h2, .video-gallery-section h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-shadow: 1px 1px 4px #0008;
}
.live-video-container, .video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}
.live-video-iframe {
    width: 360px;
    height: 202px;
    max-width: 95vw;
    border-radius: 12px;
    box-shadow: 0 4px 24px #0008;
    background: #000;
    border: 2px solid var(--accent);
}
.gallery-video-iframe {
    width: 240px;
    height: 135px;
    border-radius: 10px;
    box-shadow: 0 2px 12px #0006;
    background: #000;
    border: 2px solid var(--accent);
}
.video-title {
    margin-top: 0.5rem;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Mejora disposición galería y reproductor */
.video-gallery {
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
}
.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
    background: rgba(0,0,0,0.18);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    box-shadow: 0 2px 12px #0004;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #111 60%, var(--accent) 100%);
    color: #fff;
    border-top: 2px solid var(--accent);
    border-radius: 0 0 18px 18px;
    margin-top: 2rem;
    box-shadow: 0 -2px 16px #0008;
    padding-bottom: 1.5rem;
}
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 1rem;
}
.footer-links h3 { margin-bottom: 0.5rem; color: var(--accent); }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--accent); text-decoration: underline; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy {
    text-align: center;
    font-size: 0.95rem;
    color: #ccc;
    border-top: 1px solid #333;
    padding-top: 0.7rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Botón de donaciones */
.donate-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    background: var(--dark);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 50px;
    padding: 1rem 2rem 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 8px #2224;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 170px;
    min-height: 60px;
    gap: 10px;
    transition: background 0.3s, color 0.3s;
}
.donate-btn .donate-subtext {
    font-size: 0.9rem;
    color: #444;
    font-weight: normal;
    margin-top: 0.2em;
    margin-left: 2.2em;
    opacity: 0.8;
}
.donate-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* Modal de donaciones */
.donation-modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.7);
    animation: fadeInBg 0.4s;
}
.donation-modal.show { display: block; }
.donation-modal-content {
    background: #fff;
    color: #222;
    margin: 10vh auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: scaleIn 0.4s;
}
@keyframes fadeInBg {
    from { background: rgba(0,0,0,0); }
    to   { background: rgba(0,0,0,0.7); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.7);}
    to   { opacity: 1; transform: scale(1);}
}
.donation-modal-content h2 { margin-bottom: 0.5rem; color: var(--accent);}
.donation-desc { font-size: 1rem; color: #444; margin-bottom: 1rem;}
.donation-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #555;
    background: #ffe;
    padding: 0.7em 1em;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.donation-close {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 2rem;
    color: var(--accent);
    cursor: pointer;
}
.donation-list { list-style: none; padding: 0; margin: 1.5rem 0 0 0;}
.donation-list li { margin-bottom: 1rem; font-size: 1.1rem; word-break: break-all;}
.donation-list li i, .donation-list li img { margin-right: 8px; color: var(--accent); vertical-align: middle;}
.donation-list a { color: var(--accent); text-decoration: underline;}
.donation-list a:hover { color: #cc3600; }

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 60%;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

/* Animación fade-in para secciones */
[data-animate] { opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--fade-in), transform 0.7s var(--fade-in);}
[data-animate].in-view { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
    .container { max-width: 98vw; }
    .footer-main { flex-direction: column; gap: 1rem; }
}
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .player { padding: 1.2rem 0.5rem 1rem 0.5rem; }
    .logo-container { margin-top: 3.5rem; max-width: 140px; }
    .live-video-iframe { width: 98vw; height: 180px; }
    .gallery-video-iframe { width: 98vw; height: 120px; }
    .donate-btn { left: 20px; bottom: 90px; padding: 0.7rem 1.2rem; font-size: 1rem; }
    .donation-modal-content { max-width: 90vw; padding: 1rem; }
    .counters { flex-direction: column; gap: 0.7rem; }
}
