/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Tema hijo de Astra personalizado para MERA Got Talent
Author: Jesús Castro
Author URI: https://meracorporation.com/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* Variables CSS para los verdes */
:root {
    --verde-principal: #00531C;
    /* Verde principal */
    --verde-acento: #003e14;
    /* Verde oscuro para hover y acciones */
    --verde-boton: #28a745;
    /* Verde para botones */
    --verde-boton-hover: #218838;
    /* Verde más oscuro para hover */
}

/* Contenedor global - Fondo y estructura */
.ast-theme-transparent-header #masthead,
#colophon {
    display: none;
}

body {
    background-image: url(https://meragottalent.meracorporation.com/wp-content/uploads/2025/10/Background__login.png);
    background-size: cover;
    background-position: center;
    font-family: Arial, sans-serif;
    margin: 0;
    color: white;
}

/* Estilo común para todas las páginas */
.site-content .ast-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    height: auto;
    padding: 20px;
    max-width: 100%;
}

/* Estilo del contenedor en la página de login */
.login-container {
    max-width: 500px;
}

.login-container,
.dashboard-container {
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Logo */
.logo-container img {
    max-width: 100%;
    margin-bottom: 20px;
}

/* Títulos */
h2,
h3 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    /* color: white; */
}

h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.title-votation {
    color: #93C01F;
}


/* Estilos para los campos de formulario */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 5px;
    text-align: left;
    font-size: 16px;
    color: white;
}

form input[type="text"],
form input[type="email"],
form input[type="file"],
form select {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid white;
    border-radius: 10px;
    background-color: transparent;
    color: white;
    font-size: 16px;
}

form button,
form input[type="submit"] {
    padding: 12px;
    /* background-color: #00531C; */
    background-color: var(--verde-principal);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

form button:hover,
form input[type="submit"]:hover {
    /* background-color: #003e14; */
    background-color: var(--verde-acento);
}

/* Mensaje de error */
.error {
    color: #ff4d4d;
    font-size: 14px;
    margin-bottom: 15px;
}

/* =============================== */
/* LOGIN con instrucciones (estilo dashboard) */
/* =============================== */
body.page-template-login .dashboard-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 40px;
    flex-wrap: wrap;
}

body.page-template-login .description,
body.page-template-login .login-container {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    color: white;
    box-sizing: border-box;
    background-color: rgba(2, 77, 37, 0.05);
    /* tono de fondo muy sutil */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

/* Instrucciones */
body.page-template-login .description {
    text-align: left;

}

/* Login */
body.page-template-login .login-container {
    max-width: 600px;
    /* background-color: rgba(0, 0, 0, 0.4); */
    text-align: center;
}

/* Logo */
body.page-template-login .logo-container img {
    max-width: 250px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 980px) {
    body.page-template-login .dashboard-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    body.page-template-login .description,
    body.page-template-login .login-container {
        width: 100%;
        max-width: 100%;
    }
}


/* LOGIN */

/* Específico para la página de Dashboard */
body.page-template-dashboard .dashboard-container {
    display: flex;
    justify-content: space-between;
    padding: 40px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

body.page-template-dashboard .dashboard-container .description,
body.page-template-dashboard .dashboard-container .upload_video {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    color: white;
}

/* Estilo de la descripción */
body.page-template-dashboard .dashboard-container .description p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Estilo específico para el botón de envío en dashboard */
body.page-template-dashboard button[type="submit"] {
    /* background-color: #28a745; */
    background-color: var(--verde-boton);
}

body.page-template-dashboard button[type="submit"]:hover {
    /* background-color: #218838; */
    background-color: var(--verde-boton-hover);
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 980px) {
    body.page-template-dashboard .dashboard-container {
        flex-direction: column;
        padding: 20px;
    }

    body.page-template-dashboard .dashboard-container .description,
    body.page-template-dashboard .dashboard-container .upload_video {
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* Títulos en pantallas pequeñas */
    h2,
    h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    /* Ajustar formulario */
    form input[type="text"],
    form input[type="email"],
    form input[type="file"],
    form select {
        font-size: 14px;
        padding: 8px;
        margin-bottom: 15px;
    }

    form button,
    form input[type="submit"] {
        font-size: 14px;
        padding: 10px;
    }
}

/* Estilo para los videos incrustados */
.video-container {
    margin-top: 20px;
    text-align: center;
}

.video-container iframe {
    width: 100%;
    max-width: 640px;
    height: 360px;
    border-radius: 10px;
}

/* Ajustes en pantallas pequeñas */
@media (max-width: 980px) {
    .video-container iframe {
        width: 100%;
        /* height: auto; */
        height: 500px;
    }
}

/* Ajustes de espacio en el contenedor de descripción y video */
@media (max-width: 480px) {
    body.page-template-dashboard .dashboard-container {
        gap: 20px;
        /* Menos espacio entre las secciones */
    }

    body.page-template-dashboard .dashboard-container .description,
    body.page-template-dashboard .dashboard-container .upload_video {
        padding: 15px;
    }

    .video-container iframe {
        max-width: 100%;
        /* Asegura que el video ocupe todo el espacio disponible */
    }
}


/* ACORDEONES */
/* Estilo para el acordeón */
.accordion {
    /* background-color: #f1f1f1; */
    border: 1px solid rgb(204 204 204 / 50%);
    border-radius: 10px;
    margin-bottom: 15px;
    /* padding: 10px; */
}

.accordion-button {
    background-color: #00531C;
    color: white;
    padding: 15px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s;

    position: relative;
    padding-right: 40px;
}

.accordion-button:hover,
.accordion-button:focus {
    background-color: #003e14;
}

.accordion-content {
    padding: 15px;
    display: none;
    /* background-color: #fff; */
    border-radius: 10px;
    /* border-top: 1px solid #ccc; */
}

.accordion-content p {
    margin-bottom: 0;
}

/* Flechita base (› tipo caret o ▶ según fuente) */
.accordion-button::after {
    content: "\25B6";
    /* Unicode para un triángulo apuntando a la derecha ▶ */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(30deg);
    font-size: 18px;
    color: white;
    transition: transform 0.3s ease;
}

/* Cuando el acordeón está activo (abierto) */
.accordion-button.active::after {
    transform: translateY(-50%) rotate(120deg);
    content: "\25BC";
    /* Triángulo hacia abajo ▼ (opcional, o usa rotación) */
}

/* .video-container {
    margin-top: 20px;
    text-align: center;
}

.video-container iframe {
    width: 100%;
    max-width: 640px;
    height: 360px;
    border-radius: 10px;
}

Estilo en pantallas pequeñas
@media (max-width: 980px) {
    .video-container iframe {
        width: 100%;
        height: 500px;
    }
} */


/* Contenedor principal de los videos */
#video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    /* Espacio entre cada video */
    margin-top: 20px;
}

/* Estilo de cada item del video */
.video-item {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    color: white;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Estilo del video */
.video-item video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Estilo de la descripción debajo del video */
.video-info {
    margin-top: 10px;
}

.video-item button {
    margin-top: 10px;
    background-color: #00531C;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.video-item button:hover {
    background-color: #003e14;
}

/* Para pantallas medianas (tablets) y grandes (escritorio)
@media (min-width: 980px) {
    #video-list {
        grid-template-columns: repeat(4, 1fr);
        4 columnas
    }
}

Para pantallas más grandes
@media (min-width: 1200px) {
    #video-list {
        grid-template-columns: repeat(4, 1fr);
        5 columnas
    }
} */


/* Estilo del botón de cerrar sesión */
.logout-button {
    display: inline-block;
    padding: 5px 20px;
    /* background: linear-gradient(45deg, #28a745, #218838); */
    background: linear-gradient(45deg, var(--verde-boton), var(--verde-boton-hover));
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

/* Efecto al pasar el ratón */
.logout-button:hover {
    /* background: linear-gradient(45deg, #218838, #28a745);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); */
    /* transform: translateY(-3px); */
    background: linear-gradient(45deg, var(--verde-boton-hover), var(--verde-boton));
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Efecto al hacer clic */
.logout-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Añadir animación de desvanecimiento */
.logout-button {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.logout-button:hover {
    opacity: 0.8;
}

a:hover,
a:focus {
    color: white;
}

/* VIDEOS */
/* Estilo para los elementos de los videos */
.video-item {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    margin-bottom: 15px;
    border-radius: 10px;
}

.video-item .video-info p {
    font-size: 14px;
    color: white;
}

/* Estilo para el botón de votar */
.btn-votar {
    background-color: var(--verde-boton);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-votar:hover {
    background-color: var(--verde-boton-hover);
}

.btn-votar:focus {
    outline: none;
}

#pagination {
    text-align: center;
    margin: 25px;
}

#pagination button {
    background-color: #00531C;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

#pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#pagination button:hover:not(:disabled) {
    background-color: #003e14;
}

/* ===== TOP 5 VIDEOS MÁS VOTADOS ===== */

/* Aplica un borde dorado y fondo ligeramente más claro */
.video-item.video-top {
    border: 2px solid #FFD700;
    background-color: rgba(255, 215, 0, 0.1);
    position: relative;
}

/* Insignia de posición (#1, #2, etc.) */
.ranking-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #FFD700;
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 12px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Información del video (ya tienes texto blanco, mantenemos contraste) */
.video-item.video-top .video-info p {
    color: #fff;
}

/* Mostrar votos con estrella dorada */
.votos {
    font-size: 15px;
    font-weight: 600;
    color: #FFD700;
    /* margin-top: 8px; */
    display: none;
}

.votos .star {
    color: #FFD700;
    margin-right: 4px;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Título superior del Top */
#top-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    margin: 30px 0 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}


/* VIDEOS    */

/* ALERTAS */
.video-item p {
    text-align: center;
    /* font-weight: bold; */
    color: #ccc;
    text-align: left;
    margin-bottom: 0;
}


/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #00531C;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loader-text {
    font-size: 1.2em;
    color: #00531C;
    font-weight: bold;
    text-align: center;
}


.btn-primary {
    color: white;
}

/* MODALES DE PAISES */
/* =============================== */
/* Selector de países en login */
/* =============================== */
.country-selector {
    margin: 20px 0;
    text-align: center;
}

.country-selector h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.country-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Botón base */
.country-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.3s ease;
    border-radius: 50%;
    padding: 0;
}

.country-btn:hover {
    background-color: transparent;
    border-color: transparent;
}

/* Imagen de bandera */
.country-btn img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
}

/* .country-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
    color: #ffffff;
    background-color: var(--ast-global-color-1);
    border-color: var(--ast-global-color-1);
} */

/* Hover / Focus (efecto verde MERA) */
.country-btn:hover img,
.country-btn:focus img {
    transform: scale(1.1);
    opacity: 1;
    border-color: #28a745;
    box-shadow: 0 0 12px #28a745;
}

/* Estado activo (cuando se da clic) */
.country-btn:active img {
    transform: scale(0.98);
    box-shadow: 0 0 18px #218838;
}

/* =============================== */
/* MODALES DE INFORMACIÓN DE PAÍSES*/
/* =============================== */
.country-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

/* Modal de país */
.country-modal .modal-content {
    position: relative;
    background-color: rgb(255 254 254);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 25px rgba(40, 167, 69, 0.3);
}

.country-modal img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 5px;
    right: 20px;
    color: lightgray;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    /* color: black; */
}

/* Botón de cierre */
.close-modal:hover {
    color: #28a745;
}

.usa-modal-text {
    color: #333;
    text-align: center;
    padding: 20px;
}

.usa-modal-text table {
    margin-top: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.usa-modal-text th,
.usa-modal-text td {
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .country-btn img {
        width: 70px;
        height: 70px;
    }

    .country-buttons {
        gap: 12px;
    }
}

/* PREMIOS */
.prizes-info-box {
    /* border-radius: 10px; */
    padding: 15px;
    /* margin-top: 10px; */
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-right: auto;
    /* background-color: rgba(2, 77, 37, 0.05);
    tono de fondo muy sutil
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08); */
}

/* Título principal */
.prizes-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.9em;
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.7),
        0 0 15px rgba(255, 255, 255, 0.5),
        0 0 25px rgba(147, 192, 31, 0.3);
    /* leve acento verde */
    animation: titleGlow 3s ease-in-out infinite alternate;
}

/* Contenedor de premios */
.prize-content {
    display: flex;
    gap: 20px;
    justify-content: center;
    /* flex-wrap: wrap; */
}

.prize-section {
    margin-bottom: 25px;
    flex: 1;
    /* min-width: 220px; */
}

/* Subtítulos (1st, 2nd...) */
.prize-section h4 {
    margin: 12px 0;
    color: #ffffff;
    font-weight: 600;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.7),
        0 0 10px rgba(147, 192, 31, 0.4),
        0 0 18px rgba(147, 192, 31, 0.3);
    animation: subtitleGlow 4s ease-in-out infinite alternate;
}

/* Imagen de premio */
.prize-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prize-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(147, 192, 31, 0.6);
    /* verde lima al hover */
}

@keyframes titleGlow {
    from {
        text-shadow:
            0 0 5px rgba(255, 255, 255, 0.7),
            0 0 15px rgba(255, 255, 255, 0.5),
            0 0 25px rgba(147, 192, 31, 0.3);
    }

    to {
        text-shadow:
            0 0 2px rgba(255, 255, 255, 0.9),
            0 0 25px rgba(255, 255, 255, 0.6),
            0 0 35px rgba(147, 192, 31, 0.4);
    }
}

@keyframes subtitleGlow {
    from {
        text-shadow:
            0 0 4px rgba(255, 255, 255, 0.7),
            0 0 10px rgba(147, 192, 31, 0.4);
    }

    to {
        text-shadow:
            0 0 2px rgba(255, 255, 255, 0.9),
            0 0 15px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(147, 192, 31, 0.3);
    }
}

/* PREMIOS */

/* ===============================
   FILTROS DE VOTACIONES (MEJORADO)
   =============================== */
/* Contenedor general */
#video-control {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Filas */
.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* para que en mobile se apilen */
}

/* Columnas: ocupan espacio equitativo */
.row .col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

/* Inputs y selects */
.row select,
.row input[type="text"] {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* Labels */
.row label {
    font-weight: 600;
    font-size: 14px;
    color: white;
    margin-bottom: 5px;
}

/* Botón limpiar filtros */
#reset-filters {
    padding: 10px 30px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    background-color: var(--verde-boton);
    color: white;
    cursor: pointer;
    transition: background-color .3s;
    align-self: flex-start;
    /* alinear al inicio de la fila */
}

#reset-filters:hover {
    background-color: var(--verde-boton-hover);
}

/* ============================= */
/* Responsive: móvil y tablet     */
/* ============================= */
@media (max-width: 980px) {
    .row {
        flex-direction: column;
    }

    #reset-filters {
        align-self: center;
        margin-top: 10px;
    }
}

/* ===============================
   FILTROS DE VOTACIONES (MEJORADO)
   =============================== */
/* Loader de videos */
#video-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Loader de videos */

/* ==========================================================
   FINALISTAS — FILA HORIZONTAL Y VIDEOS UNIFORMES
========================================================== */
.finalistas-list {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 40px 20px 20px;
    scroll-behavior: smooth;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;

    /* overflow-x: auto; */
    overflow-y: visible;
}

.finalistas-list::-webkit-scrollbar {
    height: 8px;
}

.finalistas-list::-webkit-scrollbar-thumb {
    background: #93C01F;
    border-radius: 4px;
}

/* Card general */
.finalista-card {
    flex: 0 0 auto;
    /* Mantiene tamaño fijo en fila horizontal */
    width: 320px;
    border-radius: 14px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
    /* background: #ffffff; */

    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;

    position: relative;

    /* overflow: hidden; */
    overflow: visible;
}

.finalista-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

/* Video uniforme */
.finalista-video {
    width: 100%;
    height: 300px;
    /* Tamaño uniforme para todas las miniaturas */
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.finalista-video video {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    /* Mantiene proporción sin deformar */
    background-color: #000;
}

.finalistas-header {
    text-align: center;
}

.finalistas-header h1 {
    font-size: 38px;
    font-weight: 700;
    color: white;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 22px rgba(147, 192, 31, 0.3);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.finalistas-header h3 {
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 22px rgba(147, 192, 31, 0.3);
    text-transform: uppercase;
}

/* Info del finalista */
.finalista-info {
    padding: 12px;
    text-align: left;
}

.finalista-info h4 {
    margin: 16px 0;
    font-size: 16px;
    font-weight: 700;
    /* color: #003e14; */
    /* color: var(--verde-boton); */
    color: white;
    text-align: center;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 22px rgba(147, 192, 31, 0.3);

}

.finalista-info p {
    margin: 2px 0;
    color: white;
    font-size: 14px;
    /* text-shadow: 0 0 10px rgb(147 192 31 / 80%), 0 0 22px rgb(255 255 255 / 30%); */
    text-shadow: 0 0 10px rgb(31 192 100 / 80%), 0 0 22px rgb(255 255 255 / 30%);
}

/* ==========================================================
   MODAL DE VIDEO
========================================================== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* max-height: 460px; */
}

.video-modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    height: 100%;
}

.video-modal-content video {
    width: 100%;
    border-radius: 10px;
    background: #000;
    height: 100%;
}

.modal-close {
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: #93C01F;
}

/* ======= ESTRELLAS DE RANKING ======= */
.finalista-star {
    position: absolute;
    top: -20px;
    left: -10px;
    width: 70px;
    height: 70px;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: #000;
    z-index: 10;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
    animation: starFloat 3s ease-in-out infinite alternate;

    border-radius: 0;

    /* 🔥 SOLUCIÓN: recorta brillo y textura */
    overflow: hidden;
}

@keyframes starFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0px);
    }
}


/* ⭐ Oro brillante */
.finalista-star.gold {
    background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkRDOUIwIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSI5NiIgaGVpZ2h0PSI5NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cG9seWdvbiBwb2ludHM9IjEyLDAgMTUuMDksNy4yNyAyMywxMC4yNyAxNywxNi4yNyAxOC4xOCwyMyAxMiwxOS4yNyA1LjgyLDIzIDcsMTYuMjcgMSwxMC4yNyA4LjkxLDcuMjcgMTIsMCIvPjwvc3ZnPg==");
    filter:
        drop-shadow(0 0 10px #ffd700) drop-shadow(0 0 18px #ffea8a) drop-shadow(0 0 28px #fffbd1);
}

/* ⭐ Plata brillante */
.finalista-star.silver {
    background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjQ0NDRUNFIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSI5NiIgaGVpZ2h0PSI5NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cG9seWdvbiBwb2ludHM9IjEyLDAgMTUuMDksNy4yNyAyMywxMC4yNyAxNywxNi4yNyAxOC4xOCwyMyAxMiwxOS4yNyA1LjgyLDIzIDcsMTYuMjcgMSwxMC4yNyA4LjkxLDcuMjcgMTIsMCIvPjwvc3ZnPg==");
    filter:
        drop-shadow(0 0 10px #e0e0e0) drop-shadow(0 0 20px #ffffff) drop-shadow(0 0 30px #c8c8c8);
}

/* Número centrado */
.finalista-star span {
    position: relative;
    top: 1px;
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(0, 0, 0, 0.3);
    color: black;
    /* opcional para mejor contraste */
}

#ast-scroll-top {
    background-color: green !important;
    font-size: 20px !important;
    border-radius: 50% !important;
}