

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-image: url("img/fondo_principal.jpeg");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #050505;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Efecto de confeti */
.confetti {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* Header con efecto de líneas onduladas */
header {
	position: relative;
    z-index: 1002; /* Mayor que ambos (opcional, para contenerlos) */
    padding: 40px 0 25px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Efecto de colones flotantes */
.colon {
    position: absolute;
    font-weight: bold;
    animation: float linear infinite;
    opacity: 0;
    user-select: none;
    pointer-events: none;
    z-index: 5; /* Entre el fondo y el contenido */
    text-shadow: 0 0 8px currentColor;
    will-change: transform, opacity;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* Asegurar que el header tiene posición relativa */
header {
    position: relative;
    overflow: hidden;
}


/* Contenido del header */

.header-transparent {
            position: relative;
            height: 300px;
            overflow: hidden;
            background-color: rgba(0, 0, 0, 0.3); /* Semi-transparente */
            backdrop-filter: blur(5px); /* Efecto de vidrio esmerilado */
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.logo-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.logo {
    position: absolute;
    max-width: 300px;
    height: auto;
    cursor: pointer;
}

.logo-left {
    animation: moveLogoLeft 10s linear infinite;
}



.logo-right {
    animation: moveLogoRight 10s linear infinite;
}

@keyframes moveLogoLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100vw);
    }
}

@keyframes moveLogoRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100vw);
    }
}

/* Menú de navegación */
nav {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    position: relative;
}

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

.menu a:hover, .menu a:focus {
    color: #4CAF50;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* Menú hamburguesa para móviles */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    z-index: 1000;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s;
    display: block;
}

/* Barra de anuncios */
.announcement-bar {
    position: relative; /* Necesario para z-index */
    z-index: 1000; /* Menor que el menú */
    background: linear-gradient(90deg, #ff3366, #33CCFF, #33FF99, #FFD700);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-text {
    animation: scrollText 20s linear infinite;
    white-space: nowrap;
    padding: 0 20px;
}

.announcement-icon {
    margin-right: 15px;
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.close-announcement {
    position: absolute;
    right: 20px;
    background: rgba(0,0,0,0.3);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

.close-announcement:hover {
    background: rgba(0,0,0,0.5);
    transform: rotate(90deg);
}

/* Contenedor principal con sidebar */
.main-content-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
    gap: 30px;
	width: 100%;
}

/* Contenedor principal para los 4 recuadros */


.main-container {
    flex: 3;
    margin-top: 50px;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;

}

.sidebar {
    flex: 1; /* Ocupa 1 parte del espacio disponible */
	min-width: 300px; /* Ancho mínimo para evitar que se reduzca demasiado */
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Estilos para las secciones del sidebar */
.sidebar-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-section h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 8px;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.game-name {
    font-weight: bold;
}

.game-numbers {
    color: #FF3366;
    font-weight: bold;
}

/* Responsive para móviles */
@media (max-width: 1024px) {
    .main-content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .sidebar-section {
        margin-bottom: 0;
    }
}

.sidebar-section {
    transition: transform 0.3s, box-shadow 0.3s;
}

.sidebar-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sidebar-section li::before {
    content: "•";
    color: #4CAF50;
    margin-right: 10px;
}

.sidebar-section h3 {
    background: linear-gradient(to right, #4CAF50, transparent);
    padding: 8px 15px;
    margin: -20px -20px 15px -20px;
    border-radius: 15px 15px 0 0;
    color: white;
    border: none;
}

/* Recuadros 3D con transparencia */
.box-3d {
	width: 100%; /* Ocupa todo el ancho de su celda de grid */
    margin-bottom: 0; /* Eliminar margen inferior antiguo */
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.box-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(30deg);
    z-index: -1;
}

.box-3d:hover, .box-3d:focus-within {
    transform: translateY(-10px) perspective(1000px) rotateX(5deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.6);
}

/* Estilos para las imágenes en los recuadros */
.box-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.box-3d:hover .box-image {
    transform: scale(1.03);
}

/* Estilos para los enlaces */
.link-button {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.9), rgba(46, 125, 50, 0.9));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: auto;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.link-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: 0.5s;
}

.link-button:hover, .link-button:focus {
    background: linear-gradient(45deg, rgba(46, 125, 50, 0.9), rgba(27, 94, 32, 0.9));
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
    outline: none;
}

.link-button:hover::before {
    left: 100%;
}

/* Sección separada para Facebook */
.facebook-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Recuadro de Facebook centrado */
.facebook-box {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.facebook-embed {
    width: 100%;
    min-height: 300px;
    border: none;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.4);
}

/* Botón de WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.whatsapp-float:hover, .whatsapp-float:focus {
    background-color: #128C7E;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    outline: none;
}

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px; /* Más espacio arriba */
    border-top: 3px solid #4CAF50;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-section {
    padding: 15px;
}

.footer-section h3 {
    color: #4CAF50;
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4CAF50;
}

.footer-section p, 
.footer-section a {
    color: #bbb;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: #4CAF50;
    transform: translateX(5px);
}

/* Iconos para contacto */
.footer-section a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

.footer-section a[href^="mailto:"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.footer-section a[href^="tel:"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z"/></svg>');
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
}

/* Número 90 3D */
.floating-90 {
    position: fixed;
    font-size: 8rem;
    font-weight: bold;
    color: transparent;
    z-index: 999;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    transform: scale(0.5) rotate(-15deg);
    transition: all 1.5s ease-in-out;
    filter: drop-shadow(0 0 15px rgba(255,51,102,0.6));
}

.floating-90.show {
    opacity: 0.9;
    transform: scale(1) rotate(0deg);
}

.floating-90::before {
    content: '90';
    position: absolute;
    color: #FF3366;
    text-shadow: 
        3px 3px 0px #33CCFF,
        6px 6px 0px #33FF99;
    z-index: 1;
}

.floating-90::after {
    content: '90';
    position: absolute;
    color: rgba(255,51,102,0.6);
    transform: translateZ(-30px);
    text-shadow: none;
    z-index: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding-top: 60px;
    }
    
    .logo-container {
        height: 40px;
        margin-bottom: 10px;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .logo-left {
        animation: moveLogoLeftMobile 10s linear infinite;
    }
    
    .logo-right {
        animation: moveLogoRightMobile 10s linear infinite;
    }
    
	}

    @keyframes moveLogoLeftMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100vw);
        }
    }
    
    @keyframes moveLogoRightMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(100vw);
        }
    }
    
    .menu-toggle {
        display: block;
    }
    

    .facebook-box {
        width: 100%;
    }
    
    .footer-section {
        flex: 100%;
        text-align: center;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
    
    .announcement-bar {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .announcement-icon {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .close-announcement {
        right: 10px;
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .floating-90 {
        font-size: 5rem;
    }
	
/* Estado activo para el menú móvil */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

@media (max-width: 768px) {
    .main-content-wrapper {
        flex-direction: column;
        -ms-grid-columns: 1fr; /* Fallback IE para móvil */
        grid-template-columns: 1fr;
    }
	
	 .main-container {
        grid-template-columns: 1fr; /* 1 columna */
    }
    
    .sidebar {
		flex: 1; /* Vuelve a 1 parte en pantallas medianas */
        min-width: auto; /* Elimina el ancho fijo */
        position: static;
        margin-top: 30px;
    }
}

/* Barra de patrocinadores */
.sponsors-bar {
    background: linear-gradient(90deg, #ff3366, #33CCFF, #FFD700);
    padding: 15px 0;
    margin: 30px 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sponsors-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: scrollSponsors 20s linear infinite;
}

.sponsor-item img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    transition: transform 0.9s;
}

.sponsor-item img:hover {
    transform: scale(1.1);
}

@keyframes scrollSponsors {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Barra tipo bolsa de valores */
.ticker-bar {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 0;
    border-top: 2px solid #4CAF50;
    border-bottom: 2px solid #4CAF50;
    overflow: hidden;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
}

.ticker-item {
    display: inline-block;
    margin-right: 50px;
    font-weight: bold;
    font-size: 16px;
}

.ticker-item::before {
    content: "•";
    color: #4CAF50;
    margin-right: 10px;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 100%;
        left: 0;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        margin: 10px 0;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        cursor: pointer;
        padding: 10px;
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        z-index: 1000;
        width: 30px;
        height: 25px;
    }
    
    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background: white;
        transition: all 0.3s;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
}