:root {
    /* Paleta de colores actualizada: Teal, Gris oscuro, Blanco */
    --primary-color: #2c3e50; /* Azul muy oscuro casi negro */
    --secondary-color: #008080; /* Teal (reemplaza dorado) */
    --accent-color: #00a0a0; /* Teal más claro para acentos (reemplaza dorado brillante) */
    --background-color: #f8f9fa; /* Blanco ligeramente grisáceo */
    --text-color: #343a40; /* Gris oscuro */
    --card-bg: #ffffff; /* Blanco puro */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Sombra ligeramente más pronunciada */
    --border-radius: 8px; /* Bordes un poco más redondeados */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background: linear-gradient(to right, #2c3e50, #34495e); /* Gradiente sutil */
    color: white;
    padding: 2rem 1rem; /* Más padding vertical */
    text-align: center;
    box-shadow: var(--shadow);
    position: relative; /* Necesario para posicionar los botones absolutamente */
}

/* Contenedor para los botones del header */
.header-buttons {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between; /* Separa los botones a los extremos */
}

/* Estilo base para los botones del header */
.header-button {
    background-color: rgba(255, 255, 255, 0.1); /* Fondo semi-transparente */
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
}

.header-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Ajustes específicos si fueran necesarios (aunque space-between ya los separa) */
/* .header-button-left {} */
/* .header-button-right {} */

/* Estilo para el nuevo subtítulo */
header .subtitle {
    font-size: 1.1rem;
    color: #bdc3c7; /* Gris claro para el subtítulo */
    margin-top: 0.5rem;
    font-weight: 300; /* Más ligero */
}

main {
    padding: 2rem; /* Aumentar padding general */
    max-width: 900px; /* Un poco más ancho */
    margin: 2rem auto; /* Más margen superior/inferior */
}

section {
    background-color: var(--card-bg);
    margin-bottom: 2rem; /* Más separación entre secciones */
    padding: 2rem; /* Más padding interno */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem; /* Más espacio debajo de títulos h2 */
    text-align: center;
    font-weight: 700; /* Más peso para los títulos de sección */
}

#ranking-container,
#search-results-container {
    margin-top: 1rem;
}

/* Estilos para la tabla de ranking (se generará con JS) */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.ranking-table th,
.ranking-table td {
    border-bottom: 1px solid #eee;
    padding: 0.75rem 0.5rem;
    text-align: left;
}

.ranking-table th {
    background-color: var(--primary-color);
    color: white; /* Texto blanco en cabecera de tabla */
    font-weight: bold;
}

.ranking-table td:nth-child(1) { /* Posición */
    font-weight: bold;
    width: 10%;
    text-align: center;
}
.ranking-table td:nth-child(3) { /* Puntos */
    font-weight: bold;
    text-align: right;
    width: 15%;
}

/* Estilos para el botón Mostrar Más/Menos del ranking */
.show-more-button {
    display: block; /* Para poder aplicar margen auto */
    margin: 1.5rem auto 0; /* Margen superior, centrado horizontal, sin margen inferior */
    padding: 0.85rem 1.5rem;
    background-color: var(--secondary-color); /* Mismo color que botón Buscar */
    color: white;
    border: none;
    border-radius: var(--border-radius); /* Mismo borde redondeado */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem; /* Asegurar tamaño de fuente consistente */
    width: fit-content; /* Ajustar ancho al contenido */
}

.show-more-button:hover {
    background-color: var(--accent-color); /* Mismo hover que botón Buscar */
    transform: translateY(-2px);
}

/* Formulario de búsqueda */
#search-form {
    display: flex;
    gap: 0.75rem; /* Más espacio entre elementos */
    margin-bottom: 1.5rem;
    align-items: center; /* Alinear verticalmente */
}

#search-input,
#centro-select { /* Aplicar estilos al input y al select */
    flex-grow: 1;
    padding: 0.85rem;
    border: 1px solid #ced4da; /* Borde gris claro */
    border-radius: var(--border-radius);
    font-size: 1rem;
}

#search-form button {
    padding: 0.85rem 1.5rem;
    background-color: var(--secondary-color); /* Usar el nuevo color teal */
    color: white; /* Texto blanco para mejor contraste con teal */
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    text-transform: uppercase; /* Añadir mayúsculas */
    letter-spacing: 0.5px; /* Ligero espaciado */
}

#search-form button:hover {
    background-color: var(--accent-color); /* Usar el nuevo color teal claro al pasar */
    transform: translateY(-2px); /* Ligero efecto de elevación */
}

/* Estilos para resultados de búsqueda */
.search-result-item {
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--secondary-color); /* Usar el nuevo color teal */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer; /* Añadir cursor para indicar que es clickeable */
    transition: background-color 0.3s ease, transform 0.1s ease; /* Añadir transición de transformación */
}

.search-result-item:hover {
     background-color: #f0f8f8; /* Un fondo muy claro con tinte teal */
     transform: translateX(3px); /* Ligero desplazamiento al pasar el ratón */
}

.search-result-item h3 {
    margin: 0; /* Quitar margen inferior de h3 dentro del item */
    color: var(--primary-color);
    font-size: 1.1rem;
}

.search-result-item p {
     margin: 0.25rem 0 0; /* Ajustar margen de párrafos */
     font-size: 0.95rem;
     color: #6c757d; /* Gris más suave para detalles */
}

/* Contenedor para detalles de papeletas */
#papeletas-details-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #e9ecef; /* Fondo gris muy claro */
    border-radius: var(--border-radius);
    display: none; /* Oculto por defecto */
}

#papeletas-details-container h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.papeletas-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* Más espacio entre papeletas */
}

.papeletas-list li {
    background-color: var(--secondary-color); /* Usar el nuevo color teal */
    color: white; /* Texto blanco para mejor contraste */
    padding: 0.5rem 1rem; /* Ajustar padding */
    border-radius: var(--border-radius); /* Usar variable global */
    font-size: 0.95em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

footer {
    text-align: center;
    margin-top: 3rem; /* Más margen superior */
    padding: 1.5rem 0; /* Más padding */
    color: #6c757d; /* Gris un poco más oscuro */
    font-size: 0.9em;
    border-top: 1px solid #e9ecef; /* Línea superior sutil */
}

/* Ajustes responsive */
@media (max-width: 768px) { /* Ajustar breakpoint */
    header {
        padding-top: 4.5rem; /* Aumentar padding superior para dejar espacio a los botones */
    }

    .header-button {
        font-size: 0.8rem; /* Reducir ligeramente fuente de botones */
        padding: 0.4rem 0.8rem;
    }

    #search-form {
        flex-direction: column;
        align-items: stretch; /* Estirar elementos a ancho completo */
    }

    #search-input,
    #centro-select,
    #search-form button {
        width: 100%; /* Ocupar todo el ancho en móvil */
    }
}

@media (max-width: 600px) {
    main {
        padding: 0.5rem;
    }
    section {
        padding: 1rem;
    }
    #search-form {
        flex-direction: column; /* Apila input y botón en móviles */
    }
    .ranking-table th,
    .ranking-table td {
        padding: 0.6rem 0.3rem; /* Ajustar padding tabla */
        font-size: 0.85em; 
    }
    #search-input,
    #centro-select,
    #search-form button {
        padding: 0.75rem; /* Reducir padding en controles de form */
        font-size: 0.95rem;
    }
    .papeletas-list li {
        padding: 0.3rem 0.6rem;
        font-size: 0.9em;
    }
    header .subtitle {
        font-size: 1rem; /* Reducir tamaño subtítulo en móvil */
    }

    .main-header { padding: 1.2rem 0.2rem 1rem 0.2rem; }
    .main-logo { width: 48px; height: 48px; }
    .top3-row { flex-direction: column; align-items: center; gap: 1.2rem; }
    .top3-card { min-width: 90vw; max-width: 98vw; }
    #search-box-visual { padding: 0.7rem 0.2rem 0.7rem 0.2rem; }

    /* Cambios para los botones del header en móvil */
    .header-buttons {
        position: static;
        flex-direction: row;
        justify-content: center;
        gap: 0.7em;
        margin-bottom: 0.7em;
        width: 100%;
    }
    .header-button {
        font-size: 1em;
        padding: 0.5em 1.1em;
        width: auto;
        min-width: 120px;
        text-align: center;
    }
    .header-logo-title {
        margin-top: 0;
    }

    .challenge-finished-card {
        padding: 1.2rem;
        margin: 1rem 0.5rem 0 0.5rem;
    }

    .finished-tags {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Estilos para la lista de condiciones de participación */
.condiciones-lista {
    margin: 1.2em 0 1.5em 0;
    padding-left: 1.5em;
    list-style: none;
}
.condiciones-lista li {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    margin-bottom: 0.7em;
    padding: 0.7em 1em;
    border-radius: var(--border-radius);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: relative;
}
.condiciones-lista li::before {
    content: "★";
    color: gold;
    margin-right: 0.7em;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Mejorar títulos de la sección de condiciones */
section h2, section h3 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.7em;
    text-align: center;
    letter-spacing: 0.5px;
}
section h2 {
    font-size: 2em;
    margin-top: 0.5em;
}
section h3 {
    font-size: 1.2em;
    margin-top: 1.5em;
}

/* Responsive para listas y títulos */
@media (max-width: 600px) {
    .condiciones-lista li {
        font-size: 0.98em;
        padding: 0.6em 0.7em;
    }
    section h2 {
        font-size: 1.3em;
    }
    section h3 {
        font-size: 1em;
    }
}

/* HEADER Y LOGO */
.main-header {
    background: linear-gradient(120deg, #2c3e50 0%, #008080 100%);
    color: white;
    padding: 2.5rem 1rem 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}
.header-logo-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.main-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    background: white;
    object-fit: contain;
}
.main-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 0.2em;
    color: #fff;
    text-shadow: 0 2px 8px rgba(44,62,80,0.10);
}
.subtitle.motivador {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.2em;
}

/* Estilos para mensaje de estado */
.challenge-status {
    margin: 1rem 0;
    text-align: center;
}

.status-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    display: inline-block;
}

/* TOP 3 DESTACADO */
#top-3-container {
    margin: 2.5rem 0 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.top3-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    width: 100%;
}
.top3-card {
    background: linear-gradient(120deg, #fff 60%, #e0f7fa 100%);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    position: relative;
    transition: transform 0.2s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
    cursor: pointer;
    z-index: 1;
}
.top3-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}
.top3-medal {
    font-size: 3.5rem !important;
    margin-bottom: 0.2em;
    line-height: 1.1;
}
.top3-avatar {
    margin: 0 auto 0.5em auto;
}
.top3-nombre {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2em;
}
.top3-centro {
    font-size: 0.98rem;
    color: var(--secondary-color);
    margin-bottom: 0.2em;
}
.top3-puntos {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5em;
}
.top3-barra {
    margin-bottom: 0.5em;
}
.top1-bg { background: linear-gradient(120deg, #fffbe6 60%, #ffe082 100%); }
.top2-bg { background: linear-gradient(120deg, #e3f2fd 60%, #b3e5fc 100%); }
.top3-bg { background: linear-gradient(120deg, #f3e5f5 60%, #ce93d8 100%); }

/* AVATAR CIRCLE */
.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 60%, var(--accent-color) 100%);
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin-bottom: 0.2em;
}

/* BADGE PAPELETAS */
.badge-papeletas {
    display: inline-block;
    background: linear-gradient(90deg, #ffb300 60%, #ffd54f 100%);
    color: #fff;
    font-weight: bold;
    border-radius: 12px;
    padding: 0.2em 0.8em;
    font-size: 1em;
    margin-top: 0.3em;
    margin-bottom: 0.2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: badge-pop 0.7s;
}
@keyframes badge-pop {
    0% { transform: scale(0.7); opacity: 0; }
    80% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}
.animate-bounce {
    animation: badge-pop 0.7s;
}

/* PROGRESS BAR */
.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin: 0.2em 0 0.2em 0;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.7s cubic-bezier(.4,2,.6,1), background-color 0.7s ease;
}

/* RANKING TABLE MEJORADO */
.ranking-table th, .ranking-table td {
    vertical-align: middle;
}
.ranking-table td .avatar-circle {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    margin-bottom: 0;
}
.ranking-table td .badge-papeletas {
    font-size: 0.95em;
    padding: 0.15em 0.6em;
    margin: 0;
}
.ranking-table td .progress-bar-bg {
    width: 70px;
    margin: 0 auto;
}

/* BUSCADOR VISUAL */
#search-box-visual {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.2rem 1rem 1rem 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}
#search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    max-width: 600px;
}
.search-icon {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-right: 0.3em;
    margin-left: 0.2em;
}
#search-input {
    flex-grow: 1;
    padding-left: 2.2em;
}

/* RESULTADOS DE BÚSQUEDA MEJORADOS */
.search-result-item {
    background-color: var(--card-bg);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.2em;
}
.search-result-item:hover {
    background-color: #f0f8f8;
    transform: translateX(3px);
}
.search-result-item .search-avatar {
    flex-shrink: 0;
    margin-right: 0.5em;
}
.search-result-item h3 {
    margin: 0 0 0.2em 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.search-result-item p {
    margin: 0.15rem 0 0;
    font-size: 0.97rem;
    color: #6c757d;
}

/* ANIMACIONES SUAVES */
.animate-fadein {
    animation: fadein 0.7s cubic-bezier(.4,2,.6,1);
}
@keyframes fadein {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE TOP 3 Y HEADER */
@media (max-width: 900px) {
    .top3-row { gap: 1rem; }
    .top3-card { min-width: 140px; max-width: 170px; padding: 1.2rem 0.7rem 1rem 0.7rem; }
    .main-title { font-size: 1.5rem; }
}
@media (max-width: 600px) {
    .main-header { padding: 1.2rem 0.2rem 1rem 0.2rem; }
    .main-logo { width: 48px; height: 48px; }
    .top3-row { flex-direction: column; align-items: center; gap: 1.2rem; }
    .top3-card { min-width: 90vw; max-width: 98vw; }
    #search-box-visual { padding: 0.7rem 0.2rem 0.7rem 0.2rem; }
}

/* Estilos para la sección de patrocinadores en la página principal */
.sponsors-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 1.5rem 0;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    max-width: 95%;
    text-align: center;
}

.sponsors-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.sponsors-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1rem auto;
    padding: 0.5rem;
    max-width: 800px;
}

.sponsor-logo {
    height: 60px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
    object-fit: contain;
    flex: 0 0 auto;
}

.sponsors-logos img:nth-child(1),
.sponsors-logos img:nth-child(2),
.sponsors-logos img:nth-child(3) {
    flex-basis: calc(33% - 2rem);
    text-align: center;
    min-width: 160px;
    display: flex;
    justify-content: center;
}

.sponsor-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.sponsor-logo-large {
    height: 75px;
}

@media (max-width: 600px) {
    .sponsors-container {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .sponsors-text {
        font-size: 1rem;
    }
    
    .sponsors-logos {
        gap: 1.5rem;
    }
    
    .sponsor-logo {
        height: 45px;
    }
    
    .sponsor-logo-large {
        height: 55px;
    }
}

/* Compact header: menos espacio superior */
.main-header.compact-header {
    padding: 0.5rem 1rem 1rem 1rem;
}
@media (max-width: 600px) {
    .main-header.compact-header {
        padding: 0.5rem 0.5rem 0.75rem 0.5rem;
    }
}

/* Compactar espacio para sección de patrocinadores en premios.html */
.sponsors-text {
    margin: 0;
}
.sponsors-logos {
    margin: 0;
    gap: 0;
}
/* Quitar margen superior de h2 que sigue a los logos */
.sponsors-logos + section h2 {
    margin-top: 0;
}

/* Compactar espacio antes de logos en premios.html */
.compact-main {
    padding-top: 0.5rem; /* Reducir padding superior */
    margin-top: 0;
}

/* Ajustes en logos de patrocinadores */
.sponsors-logos {
    flex-wrap: nowrap; /* No envolver logos */
    justify-content: space-between; /* Logo1 a la izquierda, logo2 en centro y logo3 a la derecha */
}

.sponsor-logo-large {
    max-width: 240px; /* 150% de 160px */
}
@media (max-width: 600px) {
    .sponsor-logo-large {
        max-width: 180px; /* 150% de 120px */
    }
}

/* Servicios: mostrar siempre la lista */
/* #services-list {
    display: block !important;
} */

/* Estilos para la pantalla de splash */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
}

.splash-content {
    text-align: center;
    padding: 2rem;
    max-width: 100%;
}

.splash-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin: 0 auto;
}

.splash-logos img {
    height: 100px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.splash-logos .sponsor-logo-large {
    height: 130px;
}

.splash-text {
    margin-top: 2rem;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Clases para la animación de fade */
.splash-fade-out {
    opacity: 0;
    visibility: hidden;
}

#main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

#main-content.show {
    opacity: 1;
}

@media (max-width: 600px) {
    .splash-logos img {
        height: 70px;
    }
    
    .splash-logos .sponsor-logo-large {
        height: 90px;
    }
    
    .splash-text {
        font-size: 1.4rem;
        margin-top: 1.5rem;
    }
}

/* Estilos para la barra flotante de patrocinadores */
#floating-sponsors {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    transition: all 0.3s ease;
}

/* Estado oculto completo */
#floating-sponsors.hidden .sponsor-content {
    width: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    max-width: 0;
    margin: 0;
    visibility: hidden;
    transform: translateX(100%);
    position: absolute;
    right: 0;
}

.sponsor-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 70px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sponsor-toggle {
    background: var(--primary-color);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 46px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: transform 0.3s ease;
}

.sponsor-toggle:hover {
    transform: scale(1.05);
}

.sponsor-content {
    padding: 0 60px 0 50px;
    display: flex;
    align-items: center;
    transition: all 0.5s ease;
    width: auto;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    min-width: 560px; /* Doble del ancho mínimo anterior */
    transform: translateX(0);
    position: relative;
}

.sponsor-content p {
    margin: 0 40px 0 0;
    font-size: 1.9rem;
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap;
}

.mini-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    align-items: center;
    width: 360px; /* Doble del ancho anterior */
}

.mini-logos img {
    height: 64px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    max-width: 100%;
}

.mini-logos img:hover {
    transform: scale(1.1);
}

/* Estado expandido */
#floating-sponsors.expanded {
    /* Estilos para cuando está expandido */
}

#floating-sponsors.expanded .sponsor-toggle {
    transform: rotate(45deg);
}

/* Ajuste responsive */
@media (max-width: 992px) {
    .sponsor-toggle {
        width: 80px;
        height: 80px;
        font-size: 38px;
    }
    
    .sponsor-content {
        min-width: 480px;
        padding: 0 50px 0 40px;
    }
    
    .sponsor-content p {
        font-size: 1.6rem;
        margin: 0 30px 0 0;
    }
    
    .mini-logos {
        width: 300px;
        gap: 40px;
    }
    
    .mini-logos img {
        height: 54px;
    }
}

@media (max-width: 768px) {
    .sponsor-toggle {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .sponsor-content {
        min-width: 400px;
        padding: 0 40px 0 30px;
    }
    
    .sponsor-content p {
        font-size: 1.4rem;
        margin: 0 25px 0 0;
    }
    
    .mini-logos {
        width: 250px;
        gap: 30px;
    }
    
    .mini-logos img {
        height: 48px;
    }
}

@media (max-width: 600px) {
    #floating-sponsors {
        bottom: 20px;
        right: 20px;
    }
    
    .sponsor-toggle {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .sponsor-content {
        padding: 0 30px 0 25px;
        min-width: 320px;
    }
    
    .sponsor-content p {
        font-size: 1.2rem;
        margin: 0 20px 0 0;
    }
    
    .mini-logos {
        width: 210px;
        gap: 25px;
    }
    
    .mini-logos img {
        height: 42px;
    }
}

@media (max-width: 480px) {
    .sponsor-toggle {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .sponsor-content {
        padding: 0 25px 0 20px;
        min-width: 240px;
    }
    
    .sponsor-content p {
        font-size: 1rem;
        margin: 0 15px 0 0;
    }
    
    .mini-logos {
        width: 150px;
        gap: 20px;
    }
    
    .mini-logos img {
        height: 36px;
    }
} 