@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4a7c59 0%, #6b8e23 50%, #556b2f 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Fondo del campo de fútbol */
.field-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.3) 49%, rgba(255, 255, 255, 0.3) 51%, transparent 52%),
        radial-gradient(circle at center, transparent 60%, rgba(255, 255, 255, 0.3) 61%, rgba(255, 255, 255, 0.3) 63%, transparent 64%),
        linear-gradient(135deg, #4a7c59 0%, #6b8e23 50%, #556b2f 100%);
}

/* Tribuna superior */
.stadium-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* background: linear-gradient(45deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%); */
    /* background-image:
        repeating-linear-gradient(90deg,
            transparent 0px, transparent 8px,
            rgba(255, 255, 255, 0.1) 8px, rgba(255, 255, 255, 0.1) 16px); */
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Título principal */
.main-title {
    color: #f5e6d3;
    font-size: 4.5rem;
    font-weight: 900;
    text-shadow:
        3px 3px 0px #8b4513,
        6px 6px 0px #654321,
        9px 9px 15px rgba(0, 0, 0, 0.5);
    margin-top: 30px;
    letter-spacing: 8px;
    transform: perspective(500px) rotateX(15deg);
}

.infinity-symbol {
    color: #ffd700;
    display: inline-block;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.subtitle {
    color: #f5e6d3;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* Contenedor del juego */
.game-container {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 1600px;
    justify-content: center;
    padding: 0 40px;
}

/* Personaje */
.character {
    width: 45vw;
    max-width: 600px;
    min-width: 400px;
    height: 60vh;
    max-height: 700px;
    min-height: 500px;
    position: relative;
    animation: bounce 2s ease-in-out infinite;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.character img {
    width: 100%;
    height: 160%;
    object-fit: contain;
    filter: drop-shadow(8px 8px 15px rgba(0, 0, 0, 0.4));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Animaciones del personaje */
.character.celebrating {
    animation: celebrate 0.8s ease-in-out;
}

.character.excited {
    animation: excited 0.6s ease-in-out;
}

.character.thinking {
    animation: thinking 1s ease-in-out;
}

@keyframes celebrate {
    0% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }

    25% {
        transform: translateY(-40px) scale(1.2) rotate(-10deg);
    }

    50% {
        transform: translateY(-35px) scale(1.15) rotate(10deg);
    }

    75% {
        transform: translateY(-45px) scale(1.25) rotate(-8deg);
    }

    100% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }
}

@keyframes excited {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-35px) scale(1.15);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

@keyframes thinking {
    0% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }

    25% {
        transform: translateY(-12px) scale(1.05) rotate(-4deg);
    }

    50% {
        transform: translateY(-18px) scale(1.08) rotate(4deg);
    }

    75% {
        transform: translateY(-8px) scale(1.03) rotate(-3deg);
    }

    100% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }
}

/* Menú de botones */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    flex: 0 0 auto;
    min-width: 500px;
    max-width: 600px;
}

.menu-button {
    background: linear-gradient(145deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    padding: 22px 60px;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 18px;
    cursor: pointer;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 3px 8px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.menu-button:hover {
    background: linear-gradient(145deg, #2563eb, #60a5fa);
    transform: translateY(-4px);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.4),
        inset 0 3px 8px rgba(255, 255, 255, 0.3);
}

.menu-button:hover::before {
    left: 100%;
}

.menu-button:active {
    transform: translateY(-2px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 3px 8px rgba(255, 255, 255, 0.2);
}

.coming-soon {
    background: linear-gradient(145deg, #6b7280, #9ca3af);
    cursor: not-allowed;
    position: relative;
}

.coming-soon::after {
    content: 'PRÓXIMAMENTE';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #fbbf24;
    font-weight: 900;
}

.coming-soon:hover {
    background: linear-gradient(145deg, #6b7280, #9ca3af);
    transform: none;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 3px 8px rgba(255, 255, 255, 0.2);
}

/* Footer */
/* Footer */
.footer {
    position: fixed; /* Cambiar de absolute a fixed */
    bottom: 15px; /* Reducir de 20px a 15px */
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Reducir padding */
    color: #f5e6d3;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 100; /* Añadir z-index para que esté visible */
    border-radius: 10px 10px 0 0; /* Bordes redondeados arriba */
    backdrop-filter: blur(5px); /* Efecto cristal */
    max-height: 60px; /* Altura máxima */
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Reducir gap de 20px a 15px */
    flex-wrap: wrap; /* Permitir wrap en pantallas pequeñas */
}

.faq-link {
    color: #f5e6d3;
    text-decoration: none;
    font-size: 0.85rem; /* Reducir de 0.9rem */
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
    padding: 5px 8px; /* Añadir padding para mejor área de click */
    border-radius: 5px;
    white-space: nowrap; /* Evitar saltos de línea */
}

.faq-link:hover {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    opacity: 1;
    transform: scale(1.05);
    background: rgba(251, 191, 36, 0.1); /* Fondo sutil al hover */
}

.version {
    font-size: 1rem; /* Reducir de 1.1rem */
    transition: all 0.3s ease;
}

.version.updating {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    transform: scale(1.05);
}

.footer .date {
    font-size: 1rem; /* Reducir de 1.1rem */
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

.footer .date:hover {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    transform: scale(1.05);
    background: rgba(251, 191, 36, 0.1);
}

/* === AJUSTES PARA EL CONTAINER PRINCIPAL === */
.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 80px 20px; /* Añadir padding-bottom para el footer */
    overflow: hidden; /* Asegurar que no hay scroll */
}

/* === RESPONSIVE PARA EL FOOTER === */
@media (max-width: 1024px) {
    .footer {
        padding: 0 15px;
        bottom: 10px;
    }
    
    .footer-right {
        gap: 12px;
    }
    
    .faq-link {
        font-size: 0.8rem;
        padding: 4px 6px;
    }
    
    .version,
    .footer .date {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 8px 15px;
        bottom: 5px;
        max-height: 80px;
    }
    
    .footer-right {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .faq-link {
        font-size: 0.75rem;
        padding: 3px 5px;
    }
    
    .version,
    .footer .date {
        font-size: 0.8rem;
    }
    
    .container {
        padding: 15px 15px 90px 15px; /* Más espacio para footer en móviles */
    }
}

@media (max-width: 576px) {
    .footer {
        gap: 5px;
        padding: 5px 10px;
        max-height: 90px;
    }
    
    .footer-right {
        gap: 5px;
    }
    
    .faq-link {
        font-size: 0.7rem;
        padding: 2px 4px;
    }
    
    .version,
    .footer .date {
        font-size: 0.75rem;
    }
    
    .container {
        padding: 10px 10px 100px 10px;
    }
}

@media (max-width: 480px) {
    .footer {
        flex-direction: column;
        gap: 3px;
        padding: 4px 8px;
        max-height: 100px;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 3px;
    }
    
    .faq-link {
        font-size: 0.65rem;
        padding: 2px 3px;
    }
    
    .version,
    .footer .date {
        font-size: 0.7rem;
    }
    
    .container {
        padding: 8px 8px 110px 8px;
    }
}

/* === ORIENTACIÓN HORIZONTAL EN MÓVILES === */
@media (max-width: 768px) and (orientation: landscape) {
    .footer {
        flex-direction: row;
        bottom: 5px;
        max-height: 50px;
        padding: 3px 10px;
    }
    
    .footer-right {
        flex-direction: row;
        gap: 8px;
    }
    
    .faq-link {
        font-size: 0.7rem;
    }
    
    .container {
        padding: 5px 5px 60px 5px;
    }
}

/* === ASEGURAR QUE EL FOOTER NO INTERFIERA CON OTROS ELEMENTOS === */


@media (max-width: 768px) {
    .dev-notification {
        bottom: 100px !important;
        left: 10px !important;
        max-width: 180px !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    .dev-notification {
        bottom: 120px !important;
        left: 5px !important;
        max-width: 150px !important;
        font-size: 0.6rem !important;
    }
}

/* === BOTÓN DE MÚSICA NO DEBE CHOCAR CON FOOTER === */
.music-toggle-button {
    bottom: 80px !important; /* Mover arriba del footer */
    right: 20px;
}

@media (max-width: 768px) {
    .music-toggle-button {
        bottom: 100px !important;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .music-toggle-button {
        bottom: 120px !important;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Notificación de desarrollo */
.dev-notification {
    position: fixed;
    bottom: 20px;
    left: 200px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1000;
    max-width: 260px;
    border-left: 4px solid #fbbf24;
    text-align: center;
    white-space: nowrap;
}

.dev-notification.show {
    transform: translateY(0px);
    opacity: 1;
}

.dev-notification.bug {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.dev-notification.delay {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.dev-notification.almost {
    background: linear-gradient(135deg, #10b981, #059669);
}

.dev-notification.rollback {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: shake 0.5s ease-in-out 3;
}

@keyframes shake {

    0%,
    100% {
        transform: translateY(0px);
        opacity: 1;
    }

    25% {
        transform: translateY(-5px);
        opacity: 1;
    }

    75% {
        transform: translateY(5px);
        opacity: 1;
    }
}

/* Popup personalizado */
.custom-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(3px);
}

.custom-popup.show {
    display: flex;
    animation: popupFadeIn 0.3s ease-out;
}

.popup-content {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 85%;
    animation: popupScale 0.4s ease-out;
    border: 3px solid #fbbf24;
    position: relative;
}

.popup-body {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.popup-subi {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fbbf24;
    font-size: 2rem;
}

.popup-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.popup-close {
    background: #fbbf24;
    color: #1e40af;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.popup-close:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

@keyframes popupFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes popupScale {
    0% {
        transform: scale(0.7) rotate(-5deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Calendario especial */
.calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.calendar-overlay.show {
    display: flex;
}

.calendar {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 20px;
    padding: 20px;
    /* Cambiar de 25px a 20px */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 650px;
    width: 80%;
    max-height: 120vh;
    /* AÑADIR esta línea */
    animation: calendarPop 0.5s ease-out;
    overflow-y: auto;
    /* AÑADIR esta línea */
}

@keyframes calendarPop {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.calendar-header {
    text-align: center;
    color: white;
    margin-bottom: 25px;
}

.calendar-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.calendar-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    margin-bottom: 20px;
    max-height: 65vh;
    /* AÑADIR esta línea */

    /* AÑADIR esta línea */
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.day-header {
    text-align: center;
    font-weight: bold;
    color: #fbbf24;
    padding: 10px 5px;
    font-size: 0.85rem;
}

.day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    padding: 4px;
    min-height: 50px;
}

.day:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.day.special {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: glow 2s ease-in-out infinite alternate;
    font-weight: 900;
}

.day.special.san-subi {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.day.special.postergation {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.day.special.rollback {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.day.special.casi-listo {
    background: linear-gradient(135deg, #10b981, #059669);
}

.day.special.despliegue {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.day.special.ghosting {
    background: linear-gradient(135deg, #6b7280, #374151);
}

.day.special.making-of {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

@keyframes glow {
    0% {
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
    }

    100% {
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.8);
    }
}

.day-label {
    font-size: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
    line-height: 1.1;
    margin-top: 2px;
}

.calendar-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.calendar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.calendar-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.7rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

/* FAQ Overlay */
.faq-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2500;
    backdrop-filter: blur(5px);
}

.faq-overlay.show {
    display: flex;
}

.faq-container {
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: faqPop 0.5s ease-out;
    border: 3px solid #fbbf24;
}

@keyframes faqPop {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.faq-header {
    text-align: center;
    color: white;
    margin-bottom: 25px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.faq-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.faq-question {
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.faq-answer {
    color: white;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.faq-close {
    background: #fbbf24;
    color: #059669;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    margin-top: 20px;
}

.faq-close:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

/* Popup interactivo */
.interactive-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3500;
    backdrop-filter: blur(3px);
}

.interactive-popup.show {
    display: flex;
    animation: popupFadeIn 0.3s ease-out;
}

.interactive-popup-content {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 85%;
    animation: popupScale 0.4s ease-out;
    border: 3px solid #fbbf24;
    position: relative;
}

.interactive-popup-body {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.interactive-popup-subi {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fbbf24;
    font-size: 2rem;
}

.interactive-popup-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.interactive-buttons {
    display: flex;
    gap: 15px;
}

.interactive-button {
    background: #fbbf24;
    color: #1e40af;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 1rem;
}

.interactive-button:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.interactive-button.no-button {
    background: #6b7280;
    color: white;
}

.interactive-button.no-button:hover {
    background: #4b5563;
}

/* Galería de imágenes estilo PC Subi */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    backdrop-filter: blur(8px);
}

.gallery-overlay.show {
    display: flex;
    animation: galleryFadeIn 0.4s ease-out;
}

.gallery-container {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    max-width: 90vw;
    max-height: 85vh;
    width: 1000px;
    animation: galleryScale 0.5s ease-out;
    border: 3px solid #fbbf24;
    overflow-y: auto;
}

.gallery-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.gallery-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fbbf24;
}

.gallery-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #fbbf24;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.gallery-item-description {
    font-size: 0.8rem;
    opacity: 0.9;
}

.gallery-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Modal para imagen ampliada */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.image-modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 90vw;
    max-height: 80vh;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.7);
}

.modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 20px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.modal-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Placeholder para imágenes que faltan */
.placeholder-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #4a7c59, #6b8e23);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border-radius: 10px 10px 0 0;
}

@keyframes galleryFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes galleryScale {
    0% {
        transform: scale(0.7) rotate(-5deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* Botón flotante para música de fondo */
.music-toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(145deg, #1e40af, #3b82f6);
    color: white;
    border: 2px solid #fbbf24;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.music-toggle-button:hover {
    background: linear-gradient(145deg, #2563eb, #60a5fa);
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(30, 64, 175, 0.6);
}

.music-toggle-button:active {
    transform: scale(0.95);
}


/* Estilos para el botón de Multijugador Local desbloqueado */
.menu-button.unlocked-multiplayer {
    background: linear-gradient(135deg, #10b981, #059669, #047857) !important;
    border: 2px solid #34d399 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
    position: relative;
    overflow: hidden;
}

.menu-button.unlocked-multiplayer:hover {
    background: linear-gradient(135deg, #059669, #047857, #065f46) !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

/* Texto "DISPONIBLE" parpadeante */
.available-text {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
    animation: blink 1.5s ease-in-out infinite;
    margin-top: 2px;
    letter-spacing: 1px;
}

/* Animación de parpadeo */
@keyframes blink {

    0%,
    50% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
    }

    51%,
    100% {
        opacity: 0.3;
        text-shadow: 0 0 5px rgba(52, 211, 153, 0.3);
    }
}

/* Efecto adicional de brillo para el botón desbloqueado */
.menu-button.unlocked-multiplayer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.menu-button.unlocked-multiplayer:hover::before {
    left: 100%;
}

/* Asegurar que el botón no tenga el estilo de coming-soon cuando esté desbloqueado */
.menu-button.unlocked-multiplayer {
    cursor: pointer !important;
    opacity: 1 !important;
}

.menu-button.unlocked-multiplayer:hover {
    cursor: pointer !important;
}

/* AÑADIR AL FINAL DE style.css */

/* Estilos para el botón de Liga desbloqueado */
.menu-button.unlocked-liga {
    background: linear-gradient(135deg, #f59e0b, #d97706, #b45309) !important;
    border: 2px solid #fbbf24 !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4) !important;
    position: relative;
    overflow: hidden;
}

.menu-button.unlocked-liga:hover {
    background: linear-gradient(135deg, #d97706, #b45309, #92400e) !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

/* Efecto de brillo dorado para el botón de Liga */
.menu-button.unlocked-liga::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
    transition: left 0.5s;
}

.menu-button.unlocked-liga:hover::before {
    left: 100%;
}

/* Texto "DESBLOQUEADA" con efecto dorado */
.menu-button.unlocked-liga .available-text {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
    animation: goldBlink 1.5s ease-in-out infinite;
    margin-top: 2px;
    letter-spacing: 1px;
}

/* Animación de parpadeo dorado */
@keyframes goldBlink {

    0%,
    50% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
    }

    51%,
    100% {
        opacity: 0.3;
        text-shadow: 0 0 5px rgba(251, 191, 36, 0.3);
    }
}

/* Asegurar que el botón no tenga el estilo de coming-soon cuando esté desbloqueado */
.menu-button.unlocked-liga {
    cursor: pointer !important;
    opacity: 1 !important;
}

.menu-button.unlocked-liga:hover {
    cursor: pointer !important;
}

/* Animación especial de "trophy shine" para el botón de Liga */
.menu-button.unlocked-liga {
    animation: trophyShine 3s ease-in-out infinite;
}

@keyframes trophyShine {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow:
            0 0 30px rgba(245, 158, 11, 0.6),
            0 0 40px rgba(251, 191, 36, 0.4),
            inset 0 0 20px rgba(251, 191, 36, 0.1);
    }
}

/* AÑADIR AL FINAL DE style.css - Ajuste de altura para botones desbloqueados */

/* Ajustar altura del texto "DISPONIBLE/DESBLOQUEADA" */
.available-text {
    display: block;
    font-size: 11px !important;
    /* Reducido de 12px */
    font-weight: bold;
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
    animation: blink 1.5s ease-in-out infinite;
    margin-top: 1px !important;
    /* Reducido de 2px */
    letter-spacing: 0.5px !important;
    /* Reducido de 1px */
    line-height: 1 !important;
    /* Añadido para controlar altura de línea */
}

/* Ajustar altura del texto "DESBLOQUEADA" para Liga */
.menu-button.unlocked-liga .available-text {
    font-size: 11px !important;
    /* Reducido de 12px */
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
    animation: goldBlink 1.5s ease-in-out infinite;
    margin-top: 1px !important;
    /* Reducido de 2px */
    letter-spacing: 0.5px !important;
    /* Reducido de 1px */
    line-height: 1 !important;
    /* Añadido para controlar altura de línea */
}

/* Ajustar el padding interno de los botones desbloqueados para mantener consistencia */
.menu-button.unlocked-multiplayer,
.menu-button.unlocked-liga {
    padding: 20px 60px !important;
    /* Reducido ligeramente de 22px */
    line-height: 1.2 !important;
    /* Controlar espaciado entre líneas */
}

/* Asegurar que el texto principal mantenga el tamaño correcto */
.menu-button.unlocked-multiplayer,
.menu-button.unlocked-liga {
    font-size: 1.6rem !important;
    /* Mantener el tamaño del texto principal */
}

/* Ajuste específico para que el <br> no añada demasiado espacio */
.menu-button.unlocked-multiplayer br,
.menu-button.unlocked-liga br {
    line-height: 0.8 !important;
}

.superliga-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3) !important;
    position: relative !important;
    padding-left: 40px !important;
}

.superliga-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4) !important;
}

.superliga-button::before {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.superliga-button .sparkle {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 12px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: rotate(180deg) scale(1.2);
    }
}

/* Añadir estas reglas CSS al final de tu style.css */

/* Efecto de difuminado para las imágenes de la galería */
.gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    filter: blur(8px);
    /* Difuminado por defecto */
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Cuando se hace hover sobre el item, se quita el difuminado */
.gallery-item:hover .gallery-image {
    filter: blur(0px);
    /* Sin difuminado al hacer hover */
}

/* También aplicar difuminado al placeholder */
.placeholder-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #4a7c59, #6b8e23);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border-radius: 10px 10px 0 0;
    filter: blur(6px);
    /* Difuminado también para placeholders */
    transition: filter 0.3s ease;
}

/* Quitar difuminado del placeholder al hacer hover */
.gallery-item:hover .placeholder-image {
    filter: blur(0px);
}

/* Mejorar el efecto hover del item completo */
.gallery-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #fbbf24;
    box-shadow:
        0 10px 30px rgba(251, 191, 36, 0.3),
        0 0 20px rgba(251, 191, 36, 0.2);
    /* Añadir un glow extra */
}

/* Opcional: Añadir un efecto de "revelado" más dramático */
.gallery-item {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    /* Transición más lenta para mejor efecto */
    border: 2px solid transparent;
}

/* Efecto adicional: overlay que sugiere "misterio" */
.gallery-item::before {
    content: '👁️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}

/* Ocultar el texto cuando se hace hover */
.gallery-item:hover::before {
    opacity: 0;
}

/* Asegurar que el overlay de información aparezca por encima */
.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 3;
    /* Por encima del overlay de "revelar" */
}

/* Variante alternativa más sutil (comenta la anterior y descomenta esta si prefieres) */
/*
.gallery-item::before {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
}
*/
@media (max-height: 700px) {
    .calendar {
        max-height: 120vh;
        padding: 15px;
    }

    .calendar-grid {
        max-height: 65vh;

    }
}


/* CSS para el popup de cookies */

/* Overlay para cookies */
.cookies-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.cookies-overlay.show {
    display: flex;
}

.cookies-container {
    background: linear-gradient(135deg, #8b4513, #d2691e);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 550px;
    width: 90%;
    animation: cookiePop 0.5s ease-out;
    border: 3px solid #ffd700;
    position: relative;
}

@keyframes cookiePop {
    0% {
        transform: scale(0.5) rotate(-15deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.cookies-header {
    text-align: center;
    color: white;
    margin-bottom: 15px;
    position: relative;
}

.cookies-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffd700;
}

.cookies-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
}

/* Imagen de la persona comiendo galletas */
.cookie-person {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 3px solid #ffd700;
    overflow: hidden;
    animation: cookieMunch 2s ease-in-out infinite;
}

.cookie-person-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes cookieMunch {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
        border-color: #ffd700;
    }

    50% {
        transform: rotate(5deg) scale(1.05);
        border-color: #ffed4e;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
}

.cookies-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.cookies-text {
    color: white;
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
}

.cookies-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
}

.cookies-list h4 {
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.cookies-list ul {
    list-style: none;
    padding-left: 0;
}

.cookies-list li {
    color: white;
    font-size: 0.85rem;
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
}

.cookies-list li::before {
    content: '🍪';
    position: absolute;
    left: 0;
    top: 0;
}

.cookies-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookies-button {
    background: #ffd700;
    color: #8b4513;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    flex: 1;
    min-width: 140px;
}

.cookies-button:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.cookies-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookies-button.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Notificación de aceptación */
.cookie-notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 3000;
    border: 2px solid #34d399;
}

.cookie-notification.show {
    transform: translateX(0px);
    opacity: 1;
}

/* Estilos específicos para la galería de jugadores (mantener) */
#playersGalleryOverlay .gallery-title {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

#playersGalleryOverlay .gallery-subtitle {
    color: #fbbf24;
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

/* Efectos específicos para items de jugadores (mantener) */
#playersGalleryOverlay .gallery-item {
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

#playersGalleryOverlay .gallery-item:hover {
    border-color: #fbbf24;
    box-shadow: 
        0 10px 30px rgba(251, 191, 36, 0.3),
        0 0 20px rgba(245, 158, 11, 0.3);
    transform: translateY(-5px) scale(1.05);
}

/* Overlay de "revelar" específico para jugadores (mantener) */
#playersGalleryOverlay .gallery-item::before {
    content: '👤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(245, 158, 11, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
    border: 2px solid #fbbf24;
}

/* Ocultar el overlay cuando se hace hover (mantener) */
#playersGalleryOverlay .gallery-item:hover::before {
    opacity: 0;
}

/* Colores específicos para placeholders de jugadores (mantener) */
#playersGalleryOverlay .placeholder-image {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 2.5rem;
}

/* Hover effect mejorado para placeholders de jugadores (mantener) */
#playersGalleryOverlay .gallery-item:hover .placeholder-image {
    filter: blur(0px);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Overlay de información para jugadores (mantener) */
#playersGalleryOverlay .gallery-item-overlay {
    background: linear-gradient(transparent, rgba(245, 158, 11, 0.9));
}

#playersGalleryOverlay .gallery-item-title {
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#playersGalleryOverlay .gallery-item-description {
    color: #f3f4f6;
    opacity: 0.95;
}

/* Modal específico para jugadores (mantener) */
#playersImageModal .modal-info {
    background: linear-gradient(transparent, rgba(245, 158, 11, 0.9));
}

#playersImageModal .modal-title {
    color: #fbbf24;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#playersImageModal .modal-description {
    color: #f3f4f6;
    opacity: 0.95;
}

/* Botón de cerrar específico para galería de jugadores (mantener) */
#playersGalleryOverlay .gallery-close {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    border: 2px solid #fbbf24;
    transition: all 0.3s ease;
}

#playersGalleryOverlay .gallery-close:hover {
    background: linear-gradient(45deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Responsive para la galería de jugadores (mantener) */
@media (max-width: 768px) {
    #playersGalleryOverlay .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    #playersGalleryOverlay .gallery-title {
        font-size: 1.8rem;
    }
    
    #playersGalleryOverlay .gallery-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #playersGalleryOverlay .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    #playersGalleryOverlay .gallery-title {
        font-size: 1.5rem;
    }
}

/* === AÑADIR AL FINAL DE style.css === */


/* Fondo azul específico para el modal de jugadores (mismo que la galería) */
#playersImageModal {
    background: linear-gradient(135deg, #1e40af, #3b82f6) !important; /* Mismo azul que la galería */
}

/* Mantener el texto en colores que se vean bien con el fondo azul */
#playersImageModal .modal-title {
    color: #fbbf24 !important; /* Dorado para destacar */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#playersImageModal .modal-description {
    color: #f3f4f6 !important; /* Blanco grisáceo */
    opacity: 0.95;
}

/* Mantener el fondo degradado dorado para la información */
#playersImageModal .modal-info {
    background: linear-gradient(transparent, rgba(245, 158, 11, 0.9)) !important;
}

/* Botón de cerrar que combine con el tema azul */
#playersImageModal .modal-close {
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: 2px solid #fbbf24 !important; /* Borde dorado */
}

#playersImageModal .modal-close:hover {
    background: rgba(220, 38, 38, 0.8) !important;
    border-color: #ef4444 !important;
}

/* === QUITAR EFECTO DIFUMINADO DE LA GALERÍA DE JUGADORES === */

/* Sobrescribir el efecto blur para las imágenes de jugadores */
#playersGalleryOverlay .gallery-image {
    filter: none !important; /* Sin difuminado */
    transition: transform 0.3s ease; /* Solo transición de transformación */
}

/* Sobrescribir el efecto blur para placeholders de jugadores */
#playersGalleryOverlay .placeholder-image {
    filter: none !important; /* Sin difuminado */
    transition: background 0.3s ease; /* Solo transición de fondo */
}

/* Mantener solo el hover de transformación, sin cambios de blur */
#playersGalleryOverlay .gallery-item:hover .gallery-image {
    filter: none !important; /* Sin difuminado ni al hacer hover */
}

#playersGalleryOverlay .gallery-item:hover .placeholder-image {
    filter: none !important; /* Sin difuminado ni al hacer hover */
}

/* Quitar también el overlay de "revelar" que sugiere blur */
#playersGalleryOverlay .gallery-item::before {
    display: none !important; /* Ocultar completamente el overlay de "👤" */
}

.jugadores-gallery{
    padding: 12px 25px; font-size: 16px; line-height: 1.2; margin: 3px 0px;
}

/* RESPONSIVE DESIGN PARA PC SUBI ∞ */

    
/* === TABLETS (768px - 1024px) === */
@media (max-width: 1024px) {
    .main-title {
        font-size: 3.5rem;
        letter-spacing: 4px;
    }
    
    .game-container {
        gap: 40px;
        padding: 0 20px;
    }
    
    .character {
        width: 50vw;
        max-width: 500px;
        min-width: 300px;
        height: 50vh;
        max-height: 600px;
        min-height: 400px;
    }
    
    .menu-buttons {
        min-width: 400px;
        max-width: 500px;
    }
    
    .menu-button {
        padding: 18px 50px;
        font-size: 1.4rem;
    }
    
    .footer {
        padding: 0 20px;
    }
}

/* === TABLETS PEQUEÑAS (768px - 900px) === */
@media (max-width: 900px) {
    .main-title {
        font-size: 3rem;
        letter-spacing: 3px;
    }
    
    .game-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .character {
        width: 60vw;
        max-width: 400px;
        height: 40vh;
        max-height: 500px;
        min-height: 300px;
    }
    
    .menu-buttons {
        min-width: 350px;
        max-width: 450px;
        gap: 15px;
    }
    
    .menu-button {
        padding: 16px 40px;
        font-size: 1.3rem;
    }
    
    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 10px;
    }
}

/* === MÓVILES GRANDES (576px - 768px) === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
        margin-top: 10px;
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .game-container {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .character {
        width: 70vw;
        max-width: 350px;
        height: 35vh;
        max-height: 400px;
        min-height: 250px;
    }
    
    .menu-buttons {
        min-width: 300px;
        max-width: 400px;
        gap: 12px;
    }
    
    .menu-button {
        padding: 14px 30px;
        font-size: 1.2rem;
    }
    
    .footer {
        bottom: 10px;
        padding: 0 15px;
        font-size: 0.9rem;
    }
    
    .dev-notification {
        left: 10px;
        bottom: 10px;
        max-width: 200px;
        font-size: 0.7rem;
    }
    
    /* Ajustes para popups en móviles */
    .popup-content {
        padding: 20px;
        max-width: 90%;
    }
    
    .popup-body {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .popup-subi {
        width: 60px;
        height: 60px;
    }
    
    .popup-text {
        font-size: 1rem;
    }
    
    /* Ajustes para calendario en móviles */
    .calendar {
        padding: 15px;
        max-width: 95%;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .day {
        min-height: 40px;
        font-size: 0.8rem;
    }
    
    .day-label {
        font-size: 0.4rem;
    }
    
    /* Ajustes para galería en móviles */
    .gallery-container {
        padding: 20px;
        max-width: 95%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-title {
        font-size: 1.8rem;
    }
}

/* === MÓVILES MEDIANOS (480px - 576px) === */
@media (max-width: 576px) {
    .main-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .character {
        width: 80vw;
        max-width: 300px;
        height: 30vh;
        max-height: 350px;
        min-height: 200px;
    }
    
    .menu-buttons {
        min-width: 280px;
        max-width: 350px;
        gap: 10px;
    }
    
    .menu-button {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    
    .footer {
        font-size: 0.8rem;
    }
    
    .version {
        font-size: 0.9rem;
    }
    
    /* Botones compactos en móviles */
    .menu-button.unlocked-multiplayer,
    .menu-button.unlocked-liga,
    .superliga-button {
        padding: 10px 20px !important;
        font-size: 1rem !important;
    }
    
    .available-text {
        font-size: 9px !important;
        margin-top: 1px !important;
    }
    
    /* Galería más compacta */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-image,
    .placeholder-image {
        height: 120px;
    }
    
    .gallery-title {
        font-size: 1.5rem;
    }
    
    .gallery-subtitle {
        font-size: 0.9rem;
    }
}

/* === MÓVILES PEQUEÑOS (320px - 480px) === */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
        letter-spacing: 0px;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .character {
        width: 85vw;
        max-width: 250px;
        height: 25vh;
        max-height: 300px;
        min-height: 180px;
    }
    
    .menu-buttons {
        min-width: 260px;
        max-width: 320px;
        gap: 8px;
    }
    
    .menu-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .footer {
        font-size: 0.7rem;
        gap: 5px;
    }
    
    .footer-right {
        gap: 5px;
    }
    
    /* Notificaciones más pequeñas */
    .dev-notification {
        left: 5px;
        bottom: 5px;
        max-width: 150px;
        font-size: 0.6rem;
        padding: 8px 12px;
    }
    
    /* Popups más pequeños */
    .popup-content {
        padding: 15px;
        max-width: 95%;
    }
    
    .popup-subi {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .popup-text {
        font-size: 0.9rem;
    }
    
    /* Calendario ultra compacto */
    .calendar {
        padding: 10px;
        max-width: 98%;
    }
    
    .calendar-title {
        font-size: 1.4rem;
    }
    
    .calendar-subtitle {
        font-size: 0.8rem;
    }
    
    .day {
        min-height: 35px;
        font-size: 0.7rem;
    }
    
    .day-header {
        font-size: 0.7rem;
        padding: 5px 2px;
    }
    
    .day-label {
        font-size: 0.35rem;
    }
    
    /* Galería ultra compacta */
    .gallery-container {
        padding: 15px;
        max-width: 98%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .gallery-image,
    .placeholder-image {
        height: 100px;
    }
    
    .gallery-title {
        font-size: 1.3rem;
    }
    
    .gallery-subtitle {
        font-size: 0.8rem;
    }
    
    .gallery-item-title {
        font-size: 0.8rem;
    }
    
    .gallery-item-description {
        font-size: 0.7rem;
    }
    
    /* Modal responsive */
    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .modal-image {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-description {
        font-size: 0.8rem;
    }
}

/* === MÓVILES MUY PEQUEÑOS (hasta 320px) === */
@media (max-width: 320px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.7rem;
    }
    
    .character {
        width: 90vw;
        max-width: 200px;
        height: 20vh;
        max-height: 250px;
        min-height: 150px;
    }
    
    .menu-buttons {
        min-width: 240px;
        max-width: 280px;
    }
    
    .menu-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .footer {
        font-size: 0.6rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .gallery-image,
    .placeholder-image {
        height: 80px;
    }
}

/* === AJUSTES PARA PANTALLAS ALTAS (aspecto ratio) === */
@media (max-height: 600px) and (max-width: 768px) {
    .character {
        height: 25vh;
        max-height: 200px;
        min-height: 120px;
    }
    
    .main-title {
        font-size: 1.8rem;
        margin-top: 5px;
    }
    
    .game-container {
        margin-bottom: 20px;
    }
    
    .footer {
        bottom: 5px;
    }
}

/* === AJUSTES PARA PANTALLAS MUY ALTAS === */
@media (min-height: 900px) and (max-width: 768px) {
    .character {
        height: 45vh;
        max-height: 500px;
    }
    
    .menu-buttons {
        gap: 20px;
    }
    
    .menu-button {
        padding: 18px 35px;
        font-size: 1.3rem;
    }
}

/* === ORIENTACIÓN HORIZONTAL EN MÓVILES === */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding: 5px;
    }
    
    .main-title {
        font-size: 1.8rem;
        margin-top: 5px;
    }
    
    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .game-container {
        flex-direction: row;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .character {
        width: 35vw;
        max-width: 300px;
        height: 50vh;
        max-height: 250px;
        min-height: 150px;
    }
    
    .menu-buttons {
        min-width: 250px;
        max-width: 350px;
        gap: 8px;
    }
    
    .menu-button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .footer {
        bottom: 5px;
        font-size: 0.7rem;
    }
}

/* === AJUSTES PARA INTERACCIONES TÁCTILES === */
@media (pointer: coarse) {
    .menu-button {
        min-height: 44px; /* Mínimo recomendado para toques */
        touch-action: manipulation;
    }
    
    .faq-link,
    .date,
    .version {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
    }
    
    .day {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .gallery-item {
        touch-action: manipulation;
    }
}

/* === MEJORAS DE RENDIMIENTO PARA MÓVILES === */
@media (max-width: 768px) {
    /* Reducir animaciones complejas en móviles */
    .character {
        animation: none;
    }
    
    .character:hover {
        animation: none;
    }
    
    /* Optimizar transiciones */
    .menu-button {
        transition: background 0.2s ease, transform 0.2s ease;
    }
    
    /* Reducir efectos visuales costosos */
    .menu-button::before {
        display: none;
    }
    
    .field-background {
        background: linear-gradient(135deg, #4a7c59 0%, #6b8e23 100%);
    }
}

/* === AJUSTES PARA ACCESIBILIDAD === */
@media (prefers-reduced-motion: reduce) {
    .character {
        animation: none;
    }
    
    .infinity-symbol {
        animation: none;
    }
    
    .dev-notification {
        animation: none;
    }
    
    * {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01s !important;
    }
}

/* === DARK MODE (si el usuario lo prefiere) === */
@media (prefers-color-scheme: dark) {
    .popup-content,
    .calendar,
    .faq-container,
    .gallery-container {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    }
}

/* === AJUSTES PARA IMPRESIÓN === */
@media print {
    .footer,
    .dev-notification,
    .music-toggle-button {
        display: none;
    }
    
    .character {
        animation: none;
    }
    
    .main-title {
        color: #000;
        text-shadow: none;
    }
    
    .menu-button {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* === CSS PARA SECCIONES LEGAL Y CONTACTO === */
/* AÑADIR AL FINAL DE style.css */

/* === OVERLAY LEGAL === */
.legal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2600;
    backdrop-filter: blur(5px);
}

.legal-overlay.show {
    display: flex;
    animation: legalFadeIn 0.4s ease-out;
}

.legal-container {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: legalScale 0.5s ease-out;
    border: 3px solid #fbbf24;
}

.legal-header {
    text-align: center;
    color: white;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
    padding-bottom: 15px;
}

.legal-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fbbf24;
}

.legal-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

.legal-content {
    color: white;
    line-height: 1.6;
}

.legal-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #fbbf24;
    transition: all 0.3s ease;
}

.legal-section:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.legal-section h3 {
    color: #fbbf24;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.legal-section p {
    margin-bottom: 12px;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
}

.legal-section li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.legal-section li::before {
    content: '⚖️';
    position: absolute;
    left: 0;
    top: 0;
}

.legal-footer {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    border: 2px solid rgba(251, 191, 36, 0.4);
    text-align: center;
}

.legal-close {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #1e3a8a;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-close:hover {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* === OVERLAY DE CONTACTO === */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2700;
    backdrop-filter: blur(5px);
}

.contact-overlay.show {
    display: flex;
    animation: contactFadeIn 0.4s ease-out;
}

.contact-container {
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: contactScale 0.5s ease-out;
    border: 3px solid #34d399;
}

.contact-header {
    text-align: center;
    color: white;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(52, 211, 153, 0.3);
    padding-bottom: 15px;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #34d399;
}

.contact-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

.contact-content {
    color: white;
    line-height: 1.6;
}

.contact-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.contact-info,
.contact-reasons {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #34d399;
}

.contact-info h3,
.contact-reasons h3 {
    color: #34d399;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details {
    font-size: 0.95rem;
}

.contact-email {
    color: #34d399;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: #6ee7b7;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.reason-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.reason-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.reason-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.reason-text {
    font-size: 0.9rem;
}

.reason-text strong {
    color: #34d399;
    display: block;
    margin-bottom: 2px;
}

.reason-text small {
    opacity: 0.8;
    font-size: 0.8rem;
}

.contact-tips {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #34d399;
}

.contact-tips h3 {
    color: #34d399;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.tip-number {
    background: #34d399;
    color: #059669;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.tip-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-faq {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #34d399;
}

.contact-faq h3 {
    color: #34d399;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.auto-faq p {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    border-left: 3px solid rgba(52, 211, 153, 0.5);
}

.auto-faq p strong {
    color: #34d399;
}

.contact-close {
    background: linear-gradient(45deg, #34d399, #10b981);
    color: #059669;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-close:hover {
    background: linear-gradient(45deg, #10b981, #059669);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.4);
}

/* === ANIMACIONES === */
@keyframes legalFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes legalScale {
    0% {
        transform: scale(0.7) rotate(-5deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes contactFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes contactScale {
    0% {
        transform: scale(0.7) rotate(3deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* === RESPONSIVE PARA LEGAL Y CONTACTO === */
@media (max-width: 768px) {
    .legal-container,
    .contact-container {
        padding: 20px;
        max-width: 95%;
        margin: 10px;
    }
    
    .legal-title,
    .contact-title {
        font-size: 1.8rem;
    }
    
    .legal-subtitle,
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .legal-section {
        padding: 15px;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.9rem;
    }
    
    .contact-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    .reason-grid {
        gap: 8px;
    }
    
    .reason-item {
        padding: 10px;
    }
    
    .reason-icon {
        font-size: 1.1rem;
    }
    
    .reason-text {
        font-size: 0.8rem;
    }
    
    .tip-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .auto-faq p {
        font-size: 0.8rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .legal-container,
    .contact-container {
        padding: 15px;
        max-width: 98%;
        max-height: 90vh;
    }
    
    .legal-title,
    .contact-title {
        font-size: 1.5rem;
    }
    
    .legal-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .legal-section h3 {
        font-size: 1rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.85rem;
    }
    
    .contact-info,
    .contact-reasons,
    .contact-tips,
    .contact-faq {
        padding: 15px;
    }
    
    .contact-item {
        padding: 12px;
    }
    
    .contact-details {
        font-size: 0.85rem;
    }
    
    .contact-email {
        font-size: 1rem;
    }
    
    .reason-item {
        padding: 8px;
    }
    
    .tip-item {
        padding: 10px;
    }
    
    .tip-text {
        font-size: 0.8rem;
    }
}

/* === SCROLLBAR PERSONALIZADO === */
.legal-container::-webkit-scrollbar,
.contact-container::-webkit-scrollbar {
    width: 8px;
}

.legal-container::-webkit-scrollbar-track,
.contact-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.legal-container::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.8);
    border-radius: 4px;
}

.contact-container::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.8);
    border-radius: 4px;
}

.legal-container::-webkit-scrollbar-thumb:hover {
    background: #fbbf24;
}

.contact-container::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* === BOCADILLO DE CÓMIC PARA NOVEDAD === */
.comic-bubble {
    position: absolute;
    left: 13%;
    top: 10%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
    color: #1e40af;
    padding: 15px 20px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: 
        0 0 25px rgba(251, 191, 36, 0.6),
        0 0 40px rgba(251, 191, 36, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.3);
    border: 3px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    max-width: 200px;
    line-height: 1.2;
    animation: bubblePulse 2s ease-in-out infinite;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Cola del bocadillo apuntando hacia abajo-derecha */
.comic-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #fbbf24;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

/* Borde blanco para la cola */
.comic-bubble::before {
    content: '';
    position: absolute;
    bottom: -19px;
    right: 27px;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 24px solid #fff;
    z-index: -1;
}

/* Efectos hover */
.comic-bubble:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 35px rgba(251, 191, 36, 0.8),
        0 0 50px rgba(251, 191, 36, 0.6),
        inset 0 2px 12px rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #fcd34d, #fbbf24, #fcd34d);
}

/* Texto principal del bocadillo */
.comic-bubble-text {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* Texto "NUEVO" destacado */
.nuevo-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    margin-bottom: 5px;
    animation: newBadgePulse 1.5s ease-in-out infinite;
    text-shadow: none;
}

/* Símbolo infinito animado */
.bubble-infinity {
    color: #dc2626;
    display: inline-block;
    animation: infinitySpin 4s linear infinite;
    font-size: 1rem;
    margin-left: 2px;
}

/* Efectos de partículas/estrellas alrededor */
.comic-bubble-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    color: #fcd34d;
    font-size: 1rem;
    animation: starTwinkle 2s ease-in-out infinite;
    text-shadow: 0 0 6px rgba(252, 211, 77, 0.8);
}

.star:nth-child(1) {
    top: -15px;
    left: 10%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 10px;
    right: -15px;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    bottom: -15px;
    left: 20%;
    animation-delay: 1s;
}

.star:nth-child(4) {
    bottom: 10px;
    right: 10%;
    animation-delay: 1.5s;
}

/* === ANIMACIONES === */
@keyframes bubblePulse {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(251, 191, 36, 0.6),
            0 0 40px rgba(251, 191, 36, 0.4),
            inset 0 2px 8px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(251, 191, 36, 0.8),
            0 0 55px rgba(251, 191, 36, 0.6),
            inset 0 2px 12px rgba(255, 255, 255, 0.4);
    }
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes newBadgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes infinitySpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* === RESPONSIVE PARA EL BOCADILLO === */
@media (max-width: 900px) {
    .comic-bubble {
        position: static;
        margin: 20px auto;
        max-width: 300px;
        order: -1; /* Aparece antes que la imagen en móviles */
    }
    
    .comic-bubble::after,
    .comic-bubble::before {
        display: none;
    }
    
    /* Reordenar en móviles */
    .game-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .comic-bubble {
        max-width: 280px;
        padding: 15px 18px;
        font-size: 0.8rem;
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    .comic-bubble {
        max-width: 260px;
        padding: 12px 15px;
        font-size: 0.75rem;
    }
    
    .nuevo-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

/* === CSS SIMPLIFICADO PARA REGLAS === */
.rules-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    backdrop-filter: blur(5px);
}

.rules-modal.show {
    display: flex;
}

.rules-modal-content {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    max-width: 90vw;
    max-height: 85vh;
    width: 600px;
    overflow-y: auto;
    border: 3px solid #fbbf24;
    color: white;
}

.rules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.rules-header h2 {
    color: #fbbf24;
    font-size: 1.5rem;
    margin: 0;
}

.close-rules-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1rem;
}

.close-rules-btn:hover {
    background: rgba(255, 0, 0, 0.7);
}

.rules-content h3 {
    color: #fbbf24;
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

.rules-content p {
    margin: 8px 0;
    line-height: 1.5;
}

.rules-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(251, 191, 36, 0.3);
}

.close-rules-button, .play-now-button {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #1e40af;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-now-button {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
}

.close-rules-button:hover, .play-now-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .rules-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .rules-header h2 {
        font-size: 1.3rem;
    }
    
    .rules-footer {
        flex-direction: column;
    }
}

/* === ESTILOS PARA VIDEOS EN LA GALERÍA === */

.gallery-video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    filter: blur(4px);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-video {
    filter: blur(0px);
}

.placeholder-video {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    border-radius: 10px 10px 0 0;
    filter: blur(6px);
    transition: filter 0.3s ease;
}

.gallery-item:hover .placeholder-video {
    filter: blur(0px);
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.modal-video {
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .modal-video {
        max-width: 95vw;
        max-height: 60vh;
    }
    
    .gallery-video,
    .placeholder-video {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .modal-video {
        max-width: 98vw;
        max-height: 50vh;
    }
    
    .gallery-video,
    .placeholder-video {
        height: 100px;
    }
}

/* Estilo especial para el enlace de X */
.x-link {
    background: linear-gradient(45deg, #000000, #1a1a1a);
    color: white !important;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 6px 12px !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.x-link:hover {
    background: linear-gradient(45deg, #1a1a1a, #333333);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.x-icon {
    font-size: 1rem;
    font-weight: bold;
}

/* Enlace X con efecto expansión lateral */
.x-link-expand {
    background: linear-gradient(45deg, #000000, #1a1a1a);
    color: white !important;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 15px !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
}

.x-link-expand .expand-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #1d9bf0;
    font-size: 0.85rem;
    margin-left: 0;
    font-weight: normal;
}

.x-link-expand:hover {
    background: linear-gradient(45deg, #1a1a1a, #333333);
    padding-right: 25px;
    transform: scale(1.02);
}

.x-link-expand:hover .expand-text {
    max-width: 300px;
    opacity: 1;
    margin-left: 10px;
}

/* === ESTILOS ESPECÍFICOS PARA PAC-SUBI === */
/* AÑADIR AL FINAL DE style.css */

/* Ajustes para múltiples bocadillos */
.comic-bubble:nth-of-type(1) {
    left: 5%;
    top: 5%;
}

.comic-bubble:nth-of-type(2) {
    left: 5%;
    top: 35%;
}

/* Estilos específicos para PAC-SUBI */
.comic-bubble[onclick="goToPacSubi()"] {
    /* Colores específicos para PAC-SUBI */
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
    border: 3px solid #fff;
    
    /* Animación específica para PAC-SUBI */
    animation: pacSubiBubblePulse 2s ease-in-out infinite;
}

.comic-bubble[onclick="goToPacSubi()"] .star:nth-child(2) {
    /* Fantasma específico para PAC-SUBI */
    animation: ghostFloat 3s ease-in-out infinite;
}

.comic-bubble[onclick="goToPacSubi()"] .star:nth-child(4) {
    /* Pellet amarillo específico para PAC-SUBI */
    animation: pelletBounce 1.5s ease-in-out infinite;
}

/* Animaciones específicas PAC-SUBI */
@keyframes pacSubiBubblePulse {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(251, 191, 36, 0.6),
            0 0 40px rgba(251, 191, 36, 0.4),
            inset 0 2px 8px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(251, 191, 36, 0.8),
            0 0 55px rgba(251, 191, 36, 0.6),
            inset 0 2px 12px rgba(255, 255, 255, 0.4);
    }
}

@keyframes ghostFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-5px) rotate(10deg);
        opacity: 1;
    }
}

@keyframes pelletBounce {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Responsive para múltiples bocadillos */
@media (max-width: 900px) {
    .comic-bubble:nth-of-type(1),
    .comic-bubble:nth-of-type(2) {
        position: static;
        margin: 10px auto;
        max-width: 280px;
        order: -1;
    }
    
    .comic-bubble:nth-of-type(1) {
        margin-bottom: 5px;
    }
    
    .comic-bubble:nth-of-type(2) {
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    .comic-bubble:nth-of-type(1),
    .comic-bubble:nth-of-type(2) {
        max-width: 260px;
        padding: 12px 15px;
        font-size: 0.75rem;
        margin: 8px auto;
    }
}

@media (max-width: 480px) {
    .comic-bubble:nth-of-type(1),
    .comic-bubble:nth-of-type(2) {
        max-width: 240px;
        padding: 10px 12px;
        font-size: 0.7rem;
        margin: 5px auto;
    }
    
    .comic-bubble:nth-of-type(1) .nuevo-badge,
    .comic-bubble:nth-of-type(2) .nuevo-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

/* === LAYOUT DE 3 COLUMNAS === */
/* Añadir al final de tu style.css */

.three-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
    /* Aumentar altura disponible */
    min-height: 70vh;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Asegurar que las columnas ocupen toda la altura disponible */
    height: 100%;
}

/* === COLUMNA 1: IMAGEN PRINCIPAL === */
.main-image-column {
    justify-content: flex-start;
    align-items: center;
    /* Reducir altura de la imagen para dar más espacio a los botones */
}

.main-image-column .character {
    width: 100%;
    max-width: 350px;
    height: 40vh;
    max-height: 400px;
    min-height: 250px;
}

/* === COLUMNA 2: NOVEDADES === */
.novelties-column {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    /* Aumentar altura mínima para más botones */
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.section-title {
    color: #fbbf24;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 6px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    color: #f5e6d3;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.novelty-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Permitir que crezca y ocupe el espacio disponible */
    flex-grow: 1;
    /* Permitir scroll si hay demasiados botones */
    overflow-y: auto;
    /* Padding para el scroll */
    padding-right: 5px;
}

.novelty-button {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.novelty-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.novelty-button .button-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.novelty-button .button-content {
    flex: 1;
    text-align: left;
}

.novelty-button .button-title {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.novelty-button .button-description {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.new-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: newBadgePulse 2s ease-in-out infinite;
}

/* Estilos específicos para cada botón de novedad */
.pacsubi-button {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e40af;
}

.pacsubi-button:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.cards-button {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.cards-button:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

/* === COLUMNA 3: PC SUBI CLASSIC === */
.classic-column {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    /* Aumentar altura mínima para más botones */
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

.classic-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Permitir que crezca y ocupe el espacio disponible */
    flex-grow: 1;
    /* Permitir scroll si hay demasiados botones */
    overflow-y: auto;
    /* Padding para el scroll */
    padding-right: 5px;
}

.classic-button {
    background: linear-gradient(145deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    font-weight: 700;
}

.classic-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.classic-button .button-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.classic-button .button-text {
    flex: 1;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.coming-soon-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #fbbf24;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estados especiales para botones clásicos */
.classic-button.coming-soon {
    background: linear-gradient(145deg, #6b7280, #9ca3af);
    cursor: not-allowed;
}

.classic-button.coming-soon:hover {
    background: linear-gradient(145deg, #6b7280, #9ca3af);
    transform: none;
}

.classic-button.unlocked-multiplayer {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: 2px solid #34d399 !important;
}

.classic-button.unlocked-liga {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: 2px solid #fbbf24 !important;
}

.classic-button.superliga-button {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: 2px solid #ffd700 !important;
}

.sparkle {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.8rem;
    animation: sparkle 2s ease-in-out infinite;
}

/* === RESPONSIVE DESIGN === */
/* Tablets grandes (1024px - 1200px) */
@media (max-width: 1200px) {
    .three-column-layout {
        gap: 25px;
        max-width: 1200px;
        min-height: 65vh;
    }
    
    .novelties-column,
    .classic-column {
        min-height: 55vh;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .novelty-button .button-title {
        font-size: 1.1rem;
    }
    
    .classic-button {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .three-column-layout {
        gap: 20px;
        padding: 0 15px;
        min-height: 60vh;
    }
    
    .main-image-column .character {
        height: 35vh;
        max-height: 350px;
    }
    
    .novelties-column,
    .classic-column {
        padding: 18px;
        min-height: 50vh;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .novelty-button {
        padding: 16px;
    }
    
    .classic-button {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Móviles grandes (600px - 768px) */
@media (max-width: 768px) {
    .three-column-layout {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
        min-height: auto;
    }
    
    .main-image-column .character {
        height: 30vh;
        max-height: 300px;
        min-height: 200px;
    }
    
    .novelties-column,
    .classic-column {
        padding: 15px;
        min-height: 40vh;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .novelty-button {
        padding: 14px;
    }
    
    .novelty-button .button-title {
        font-size: 1rem;
    }
    
    .classic-button {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .main-title {
        font-size: 2.8rem;
        margin-top: 5px;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

/* Móviles medianos (480px - 600px) */
@media (max-width: 600px) {
    .three-column-layout {
        gap: 12px;
        min-height: auto;
    }
    
    .main-image-column .character {
        height: 28vh;
        max-height: 280px;
        min-height: 180px;
    }
    
    .novelties-column,
    .classic-column {
        padding: 12px;
        min-height: 35vh;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .novelty-button {
        padding: 12px;
        gap: 12px;
    }
    
    .novelty-button .button-icon {
        font-size: 1.8rem;
    }
    
    .classic-button {
        padding: 11px 14px;
        font-size: 0.8rem;
    }
    
    .classic-button .button-icon {
        font-size: 1.2rem;
    }
    
    .main-title {
        font-size: 2.4rem;
    }
}

/* Móviles pequeños (320px - 480px) */
@media (max-width: 480px) {
    .three-column-layout {
        gap: 10px;
        padding: 0 8px;
    }
    
    .main-image-column .character {
        height: 25vh;
        max-height: 250px;
        min-height: 160px;
    }
    
    .novelties-column,
    .classic-column {
        padding: 10px;
        min-height: 30vh;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
    
    .novelty-button {
        padding: 10px;
        gap: 10px;
    }
    
    .novelty-button .button-title {
        font-size: 0.9rem;
    }
    
    .novelty-button .button-description {
        font-size: 0.75rem;
    }
    
    .classic-button {
        padding: 9px 12px;
        font-size: 0.75rem;
        gap: 8px;
    }
    
    .new-badge {
        font-size: 0.6rem;
        padding: 4px 8px;
    }
    
    .coming-soon-text {
        font-size: 0.55rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
}

/* Orientación horizontal en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .three-column-layout {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        min-height: auto;
    }
    
    .main-image-column {
        grid-column: 1 / -1;
    }
    
    .main-image-column .character {
        height: 20vh;
        max-height: 150px;
    }
    
    .novelties-column,
    .classic-column {
        padding: 10px;
        min-height: 25vh;
    }
    
    .main-title {
        font-size: 2rem;
        margin-top: 5px;
    }
    
    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
}

/* === AJUSTES PARA INTEGRAR CON EL CSS EXISTENTE === */
/* Modificar el container principal para acomodar las 3 columnas */
.container {
    padding: 10px 20px 80px 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Ajustar el título principal para las 3 columnas - MÁS COMPACTO */
.main-title {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 4rem;
}

.subtitle {
    margin-bottom: 15px;
    font-size: 1rem;
}

/* === SCROLLBAR PERSONALIZADO PARA LOS CONTENEDORES DE BOTONES === */
.novelty-buttons::-webkit-scrollbar,
.classic-buttons::-webkit-scrollbar {
    width: 6px;
}

.novelty-buttons::-webkit-scrollbar-track,
.classic-buttons::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.novelty-buttons::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.6);
    border-radius: 3px;
}

.classic-buttons::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.6);
    border-radius: 3px;
}

.novelty-buttons::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.8);
}

.classic-buttons::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.8);
}

/* Ajustar el título principal para las 3 columnas */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.8rem;
        margin-top: 5px;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

/* === ANIMACIONES ADICIONALES === */
@keyframes newBadgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: rotate(180deg) scale(1.2);
    }
}

/* === EFECTOS ADICIONALES === */
.novelty-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.novelty-button:hover::before {
    left: 100%;
}

.classic-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.classic-button:hover::before {
    left: 100%;
}

/* === ACCESIBILIDAD === */
@media (prefers-reduced-motion: reduce) {
    .novelty-button,
    .classic-button {
        transition: none;
    }
    
    .new-badge,
    .sparkle {
        animation: none;
    }
}

/* Añadir al final del archivo style.css */

/* Estilos específicos para el botón DEATHMATCH ARENA */
.arena-button {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: white;
}

.arena-button:hover {
    background: linear-gradient(135deg, #991b1b, #7f1d1d) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.4);
}

.arena-button .button-icon {
    animation: arenaGlow 2s ease-in-out infinite;
}

@keyframes arenaGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
        transform: scale(1.1);
    }
}