/* Cross-browser compatibility reset */
        * {
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }

        /* Normalize differences between browsers - Microsoft Edge as standard */
        html {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
            /* Force Edge rendering mode for consistency */
            -ms-text-size-adjust: 100%;
            -webkit-text-size-adjust: 100%;
        }

        /* Force consistent rendering across all browsers to match Edge */
        body, div, span, h1, h2, h3, h4, h5, h6, p {
            -webkit-font-feature-settings: "kern";
            -moz-font-feature-settings: "kern";
            -ms-font-feature-settings: "kern";
            font-feature-settings: "kern";
        }

        /* Ensure buttons render consistently like in Edge */
        button {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            border: none;
            outline: none;
        }

        /* Estilos generales del cuerpo de la página */
        body {
            font-family: 'Inter', sans-serif; 
            min-height: 100vh; 
            background-color: #f0f2f5; 
            margin: 0;
            padding: 20px; /* Espaciado interno para evitar que el contenido toque los bordes */
            /* Cross-browser box-sizing */
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box; /* Incluye padding y border en el ancho/alto total */
            padding-top: 110px; /* Espacio para el carrusel fijo */
        }
        /* Contenedor principal de las tarjetas */
        .container {
            /* Cross-browser flexbox */
            display: -webkit-box;
            display: -webkit-flex;
            display: -moz-box;
            display: -ms-flexbox;
            display: flex;
            gap: 30px; /* Espacio entre las tarjetas */
            /* Cross-browser flex-wrap */
            -webkit-flex-wrap: wrap;
            -ms-flex-wrap: wrap;
            flex-wrap: wrap; /* Permite que las tarjetas se envuelvan a la siguiente línea en pantallas pequeñas */
            /* Cross-browser justify-content */
            -webkit-box-pack: center;
            -webkit-justify-content: center;
            -moz-box-pack: center;
            -ms-flex-pack: center;
            justify-content: center; /* Centra las tarjetas horizontalmente */
            max-width: 1200px; /* Ancho máximo del contenedor */
            width: 100%; /* Ocupa el 100% del ancho disponible */
            margin-top: 20px; /* Espacio superior para el banner */
            margin-bottom: 20px; /* Espacio inferior para la publicidad */
        }
        /* Estilos para cada tarjeta (carátula) */
        .card {
            background-color: #fff; /* Fondo blanco */
            /* Cross-browser border-radius */
            -webkit-border-radius: 15px;
            -moz-border-radius: 15px;
            border-radius: 15px; /* Bordes más redondeados */
            /* Cross-browser box-shadow */
            -webkit-box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
            -moz-box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada */
            overflow: hidden; /* Oculta cualquier contenido que se desborde de los bordes redondeados */
            width: 320px; /* Ancho fijo para cada tarjeta */
            min-height: 420px; /* Altura mínima para consistencia */
            text-align: center;
            /* Cross-browser transition */
            -webkit-transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
            -moz-transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
            -ms-transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
            -o-transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
            transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out; /* Transición suave para efectos hover */
            cursor: pointer; /* Indica que la tarjeta es clickeable */
            /* Cross-browser flexbox */
            display: -webkit-box;
            display: -webkit-flex;
            display: -moz-box;
            display: -ms-flexbox;
            display: flex; /* Usa flexbox para organizar el contenido interno */
            /* Cross-browser flex-direction */
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -webkit-flex-direction: column;
            -moz-box-orient: vertical;
            -moz-box-direction: normal;
            -ms-flex-direction: column;
            flex-direction: column; /* Apila los elementos verticalmente */
            /* Cross-browser justify-content */
            -webkit-box-pack: justify;
            -webkit-justify-content: space-between;
            -moz-box-pack: justify;
            -ms-flex-pack: justify;
            justify-content: space-between; /* Distribuye el espacio entre los elementos */
            border: 2px solid transparent; /* Borde transparente por defecto */
        }
        /* Efecto hover para las tarjetas, con un toque de color de la bandera */
        .card:hover {
            /* Cross-browser transform */
            -webkit-transform: translateY(-12px);
            -moz-transform: translateY(-12px);
            -ms-transform: translateY(-12px);
            -o-transform: translateY(-12px);
            transform: translateY(-12px); /* Se eleva ligeramente */
            /* Cross-browser box-shadow */
            -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            -moz-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); /* Sombra más grande y oscura */
            border-color: #009739; /* Verde de la bandera de Brasil */
        }
        /* Estilos para la imagen dentro de la tarjeta */
        .card img {
            width: 100%;
            height: 200px; /* Altura fija para las imágenes */
            object-fit: cover; /* La imagen cubrirá todo el espacio */
            border-bottom: 1px solid #eee;
            display: block; /* Elimina espacios extra debajo de la imagen */
            margin: 0 auto; /* Centra la imagen horizontalmente */
        }
        /* Estilos para el título de la tarjeta - ahora H4 para SEO */
        .card h4 {
            font-size: 1.8em; /* Tamaño de fuente más grande */
            color: #2c3e50; /* Color de texto más oscuro */
            margin: 20px 0 10px;
            padding: 0 15px;
            font-weight: 600;
        }
        /* Backwards compatibility para H2 existentes */
        .card h2 {
            font-size: 1.8em; 
            color: #2c3e50; 
            margin: 20px 0 10px;
            padding: 0 15px;
        }
        /* Estilos para la descripción de la tarjeta */
        .card p {
            font-size: 1em; /* Tamaño de fuente ligeramente más grande */
            color: #7f8c8d; /* Color de texto gris */
            padding: 0 20px 20px; /* Más padding en la parte inferior */
            line-height: 1.6; /* Espaciado entre líneas para mejor legibilidad */
            flex-grow: 1; /* Permite que la descripción ocupe el espacio restante */
        }
        /* Estilos para el enlace que envuelve la tarjeta */
        .card a {
            text-decoration: none; /* Sin subrayado */
            color: inherit; /* Hereda el color del texto de la tarjeta */
            display: block; /* Hace que toda la tarjeta sea el área clickeable */
            height: 100%; /* Asegura que el enlace ocupe toda la altura de la tarjeta */
        }

        /* Estilos para los espacios de publicidad */
        .ad-banner-top, .ad-sidebar {
            background-color: #e0e0e0; /* Fondo gris claro para la publicidad */
            border: 1px dashed #ccc; /* Borde punteado para indicar que es un espacio de ad */
            display: flex;
            justify-content: center;
            align-items: center;
            color: #666;
            font-size: 1.2em;
            text-align: center;
            border-radius: 8px;
            margin: 15px 0; /* Margen superior e inferior */
        }

        .ad-banner-top {
            width: 100%;
            max-width: 900px; /* Ancho máximo para el banner superior */
            height: 90px; /* Altura estándar para un banner */
        }

        .ad-sidebar {
            width: 300px; /* Ancho para el ad lateral */
            height: 250px; /* Altura estándar para un ad de rectángulo medio */
            margin-left: 20px; /* Margen a la izquierda para separarlo del contenido principal */
        }

        /* Contenedor para el contenido principal y el sidebar de publicidad */
        .main-content-wrapper {
            display: flex;
            flex-wrap: wrap; /* Permite que los elementos se envuelvan */
            justify-content: center;
            width: 100%;
            max-width: 1200px;
        }

        /* Estilos para el carrusel de resultados - SECCIÓN PRINCIPAL */

        /* Responsive design para pantallas más pequeñas */
        @media (max-width: 768px) {
            .container {
                flex-direction: column; /* Apila las tarjetas verticalmente en pantallas pequeñas */
                align-items: center; /* Centra las tarjetas apiladas */
                gap: 20px; /* Reduce el gap en móviles */
            }
            .card {
                width: 90%; /* Ocupa más ancho en pantallas pequeñas */
                max-width: 350px; /* Limita el ancho máximo */
                min-height: auto; /* Permite altura flexible en móviles */
            }
            .ad-banner-top {
                height: 60px; /* Reduce la altura del banner en móviles */
                font-size: 1em;
            }
            .ad-sidebar {
                width: 90%; /* Ocupa más ancho en móviles */
                height: 150px; /* Reduce la altura del sidebar en móviles */
                margin-left: 0; /* Elimina el margen lateral en móviles */
                margin-top: 20px; /* Añade margen superior en móviles */
            }
            .main-content-wrapper {
                flex-direction: column; /* Apila el contenido principal y el ad lateral */
                align-items: center;
            }
            
            /* Estilos responsivos para la sección hero */
            .main-title {
                font-size: 2.4em;
                margin: 40px 0 15px 0;
            }
            
            .main-subtitle {
                font-size: 1.2em;
                margin-bottom: 15px;
            }
            
            .description-text {
                font-size: 1em;
                margin-bottom: 25px;
                padding: 0 10px;
            }
            
            .subtitle-divider {
                width: 60px;
                margin: 0 auto 20px auto;
            }
            
            /* Mejoras para el carrusel en móviles */
            .carrusel-resultados {
                max-width: 95%;
                padding: 15px 10px 30px 10px;
            }
            
            .carrusel-content .equipos {
                font-size: 1.3em;
            }
            
            .carrusel-content .resultado {
                font-size: 1.1em;
            }
            
            .carrusel-content .fecha {
                font-size: 0.95rem;
            }
        }
        
        /* Responsive para pantallas muy pequeñas (6 pulgadas y menores) */
        @media (max-width: 480px) {
            body {
                padding: 10px;
                padding-top: 100px;
            }
            
            .main-title {
                font-size: 2em;
                margin: 30px 0 15px 0;
                line-height: 1.2;
            }
            
            .main-subtitle {
                font-size: 1.1em;
            }
            
            .description-text {
                font-size: 0.95em;
                padding: 0 5px;
            }
            
            .card {
                width: 95%;
                max-width: 300px;
                min-height: 380px;
            }
            
            .card h4, .card h2 {
                font-size: 1.5em;
                margin: 15px 0 8px;
                padding: 0 12px;
            }
            
            .card p {
                font-size: 0.9em;
                padding: 0 15px 15px;
                line-height: 1.5;
            }
            
            .card img {
                height: 180px;
            }
            
            /* Carrusel optimizado para pantallas muy pequeñas */
            .carrusel-resultados {
                max-width: 98%;
                padding: 12px 8px 25px 8px;
                margin-top: 5px;
            }
            
            .carrusel-content {
                padding: 8px 0;
                font-size: 0.95rem;
            }
            
            .carrusel-content .equipos {
                font-size: 1.2em;
                margin-bottom: 3px;
            }
            
            .carrusel-content .resultado {
                font-size: 1em;
                margin-bottom: 2px;
            }
            
            .carrusel-content .fecha {
                font-size: 0.85rem;
            }
            
            .carrusel-btn {
                font-size: 1.2rem;
                padding: 3px 8px;
            }
            
            .carrusel-btn.prev {
                left: 5px;
            }
            
            .carrusel-btn.next {
                right: 5px;
            }
            
            /* Títulos de sección para móviles pequeños */
            .seccion-titulo, .portales-titulo {
                font-size: 1.8em;
                margin: 30px 0 12px 0;
            }
            
            .seccion-descripcion, .portales-descripcion {
                font-size: 1em;
                margin: 0 0 25px 0;
                padding: 0 10px;
            }
            
            /* Footer para móviles pequeños */
            .footer {
                padding: 20px 15px;
            }
            
            .footer h4, .footer h5 {
                font-size: 1.1em;
            }
            
            .footer p {
                font-size: 0.85em;
                margin: 3px 0;
            }
        }
        
        /* Responsive para pantallas extra pequeñas (menos de 360px) */
        @media (max-width: 360px) {
            .main-title {
                font-size: 1.8em;
            }
            
            .card {
                width: 98%;
                min-height: 360px;
            }
            
            .card h4, .card h2 {
                font-size: 1.4em;
            }
            
            .carrusel-content .equipos {
                font-size: 1.1em;
            }
            
            .carrusel-content .resultado {
                font-size: 0.95em;
            }
            
            .carrusel-content .fecha {
                font-size: 0.8rem;
            }
        }
        div#Carruselnoticias {
            width: 100%;
            display: block;
            overflow: visible;
        }
        div > h1 {
            margin-top: 60px;
        }
        
        /* Centrado global del contenido debajo del carrusel */
        .contenido-centrado {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            text-align: center;
        }
        
        /* Estilos para la sección hero principal */
        .hero-section {
            max-width: 800px;
            margin: 0 auto 40px auto;
            padding: 0 20px;
            text-align: center;
        }
        
        /* Título principal con estilo profesional */
        .main-title {
            font-size: 3.2em;
            font-weight: 700;
            color: #1a2332;
            margin: 60px 0 20px 0;
            letter-spacing: -0.02em;
            line-height: 1.1;
            background: linear-gradient(135deg, #009739, #00bf4a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        /* Línea divisoria decorativa */
        .subtitle-divider {
            width: 80px;
            height: 4px;
            background: linear-gradient(135deg, #009739, #FFDE00, #002776);
            margin: 0 auto 25px auto;
            border-radius: 2px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        /* Subtítulo principal */
        .main-subtitle {
            font-size: 1.4em;
            font-weight: 500;
            color: #2c3e50;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            opacity: 0.9;
        }
        
        /* Texto descriptivo */
        .description-text {
            font-size: 1.1em;
            color: #5a6c7d;
            line-height: 1.7;
            margin-bottom: 30px;
            font-weight: 400;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }
        
        /* Estilos para el footer */
        .footer {
            margin-top: 40px;
            padding: 30px 20px;
            background-color: #f8f9fa;
            border-top: 1px solid #e9ecef;
            text-align: center;
            width: 100%;
            box-sizing: border-box;
        }
        
        .footer h4, .footer h5 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .footer p {
            color: #6c757d;
            margin: 5px 0;
            font-size: 0.9em;
        }
        
        /* Estilos para títulos de secciones SEO */
        .seccion-titulo, .portales-titulo {
            font-size: 2.2em;
            font-weight: 600;
            color: #2c3e50;
            margin: 40px 0 15px 0;
            text-align: center;
        }
        
        .seccion-descripcion, .portales-descripcion {
            font-size: 1.1em;
            color: #5a6c7d;
            margin: 0 0 30px 0;
            text-align: center;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
        
        /* Mejoras para H2 en hero */
        .main-subtitle {
            font-size: 1.4em;
            font-weight: 500;
            color: #2c3e50;
            margin-bottom: 20px;
            letter-spacing: 0.02em;
            opacity: 0.9;
        }

        /* Estilos para el carrusel de resultados */
        #Carruselnoticias {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(135deg, #009739, #FFDE00);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            padding: 15px 0;
        }

        .carrusel-resultados {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            overflow: hidden;
        }

        .carrusel-inner {
            position: relative;
            width: 100%;
            height: 80px;
        }

        .carrusel-item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            visibility: hidden;
            /* Cross-browser transition compatibility */
            -webkit-transition: all 1.2s ease-in-out;
            -moz-transition: all 1.2s ease-in-out;
            -ms-transition: all 1.2s ease-in-out;
            -o-transition: all 1.2s ease-in-out;
            transition: all 1.2s ease-in-out;
            /* Cross-browser flexbox */
            display: -webkit-box;
            display: -webkit-flex;
            display: -moz-box;
            display: -ms-flexbox;
            display: flex;
            /* Cross-browser align-items */
            -webkit-box-align: center;
            -webkit-align-items: center;
            -moz-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            /* Cross-browser justify-content */
            -webkit-box-pack: center;
            -webkit-justify-content: center;
            -moz-box-pack: center;
            -ms-flex-pack: center;
            justify-content: center;
        }

        .carrusel-item.active {
            opacity: 1;
            visibility: visible;
        }

        .carrusel-content {
            text-align: center;
            color: #fff;
            padding: 10px 20px;
            background: rgba(0, 0, 0, 0.2);
            /* Cross-browser border-radius */
            -webkit-border-radius: 10px;
            -moz-border-radius: 10px;
            -ms-border-radius: 10px;
            border-radius: 10px;
            /* Cross-browser backdrop-filter */
            -webkit-backdrop-filter: blur(5px);
            -moz-backdrop-filter: blur(5px);
            -ms-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
            /* Fallback for older browsers */
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .carrusel-content .equipos {
            display: block;
            font-size: 1.2em;
            font-weight: 600;
            margin-bottom: 5px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }

        .carrusel-content .resultado {
            display: inline-block;
            font-size: 1.1em;
            font-weight: 700;
            background: rgba(255, 255, 255, 0.9);
            color: #009739;
            padding: 4px 12px;
            border-radius: 20px;
            margin: 0 10px;
        }

        .carrusel-content .fecha {
            display: block;
            font-size: 0.9em;
            opacity: 0.9;
            margin-top: 5px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }

        .carrusel-btn {
            position: absolute;
            top: 50%;
            /* Cross-browser transform */
            -webkit-transform: translateY(-50%);
            -moz-transform: translateY(-50%);
            -ms-transform: translateY(-50%);
            -o-transform: translateY(-50%);
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            color: #009739;
            border: none;
            width: 40px;
            height: 40px;
            /* Cross-browser border-radius */
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            -ms-border-radius: 50%;
            border-radius: 50%;
            font-size: 1.2rem;
            font-weight: bold;
            cursor: pointer;
            /* Cross-browser transition */
            -webkit-transition: all 0.3s ease;
            -moz-transition: all 0.3s ease;
            -ms-transition: all 0.3s ease;
            -o-transition: all 0.3s ease;
            transition: all 0.3s ease;
            /* Cross-browser flexbox */
            display: -webkit-box;
            display: -webkit-flex;
            display: -moz-box;
            display: -ms-flexbox;
            display: flex;
            /* Cross-browser align-items */
            -webkit-box-align: center;
            -webkit-align-items: center;
            -moz-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            /* Cross-browser justify-content */
            -webkit-box-pack: center;
            -webkit-justify-content: center;
            -moz-box-pack: center;
            -ms-flex-pack: center;
            justify-content: center;
            /* Cross-browser box-shadow */
            -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            -moz-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .carrusel-btn:hover {
            background: #fff;
            /* Cross-browser transform with scale */
            -webkit-transform: translateY(-50%) scale(1.1);
            -moz-transform: translateY(-50%) scale(1.1);
            -ms-transform: translateY(-50%) scale(1.1);
            -o-transform: translateY(-50%) scale(1.1);
            transform: translateY(-50%) scale(1.1);
            /* Cross-browser box-shadow */
            -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            -moz-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .carrusel-btn.prev {
            left: 20px;
        }

        .carrusel-btn.next {
            right: 20px;
        }

        /* Responsive para móviles */
        @media (max-width: 768px) {
            #Carruselnoticias {
                padding: 10px 0;
            }

            .carrusel-inner {
                height: 90px;
            }

            .carrusel-content {
                padding: 8px 15px;
            }

            .carrusel-content .equipos {
                font-size: 1em;
            }

            .carrusel-content .resultado {
                font-size: 1em;
                padding: 3px 10px;
            }

            .carrusel-content .fecha {
                font-size: 0.8em;
            }

            .carrusel-btn {
                width: 35px;
                height: 35px;
                font-size: 1rem;
            }

            .carrusel-btn.prev {
                left: 10px;
            }

            .carrusel-btn.next {
                right: 10px;
            }
        }