/* ===============================================
   EZKURDI KT - Estilos Principales
   =============================================== */

/* Variables CSS */
:root {
    --primary-blue: #2c6bbf;
    --dark-blue: #1a4380;
    --light-blue: #4a8fff;
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --accent: #ffd700;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===============================================
   Reset & Base Styles
   =============================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--primary-blue) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--dark-blue) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, var(--light-blue) 0%, transparent 50%);
    opacity: 0.1;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

/* ===============================================
   Cookie Banner
   =============================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-gray);
    border-top: 2px solid var(--primary-blue);
    padding: var(--space-md);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.95);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.cookie-content button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cookie-content button:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 107, 191, 0.3);
}

/* ===============================================
   Header
   =============================================== */

.main-header {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-blue);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-fast);
}

.header-logo:hover {
    transform: rotate(5deg) scale(1.1);
}

.logo-section h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--white);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--white), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 25px;
}

.lang-btn {
    background: transparent;
    color: var(--white);
    border: 2px solid transparent;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 1px;
}

.lang-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.lang-btn:hover:not(.active) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Navigation */
.main-nav {
    background: rgba(0, 0, 0, 0.2);
    padding: 0 var(--space-md);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-sm);
    margin: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.nav-list a:hover::before,
.nav-list a.active::before {
    transform: translateX(0);
}

.nav-list a:hover {
    color: var(--primary-blue);
    background: rgba(44, 107, 191, 0.1);
}

/* ===============================================
   Main Content Sections
   =============================================== */

.main-content {
    min-height: calc(100vh - 200px);
   /* padding: var(--space-lg) 0; */
   padding-top: 0px;         /* AJUSTA ESTE VALOR para que coincida con la altura de tu cabecera fija */
   padding-bottom: var(--space-xs);
   padding-left: 0;
   padding-right: 0;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    scroll-margin-top: 150px;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    min-height: 100vh;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xs);
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--white);
    text-align: center;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

/* ===============================================
   Hero Section (Inicio)
   =============================================== */

.hero-section {
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    opacity: 0.1;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-escudo {
    width: 250px;
    height: 250px;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 10px 30px rgba(44, 107, 191, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    background: linear-gradient(45deg, var(--white), var(--primary-blue), var(--white));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
    background-size: 200% 200%;
    margin-bottom: var(--space-sm);
    letter-spacing: 4px;
}
/* ==================================== */
/* DECORACIÓN EN SECCIÓN INICIO */
/* ==================================== */

.hero-text {
    display: flex;
    align-items: center;     /* Centra verticalmente los elementos */
    justify-content: center; /* Centra horizontalmente todo el bloque */
    gap: 15px;               
    width: auto; 
    
    /* 🚨 PROPIEDAD CLAVE PARA CORREGIR EL APILAMIENTO: */
    flex-wrap: nowrap; /* Fuerza a mantener todos los elementos en una sola fila */
    
    /* Opcional: Asegura que el contenedor pueda crecer */
    width: fit-content;
    max-width: 90vw; /* Límite para que no se salga de la pantalla en móviles */
    margin: 0 auto; /* Asegura el centrado si el width es fit-content */
}

.hero-slogan-wrapper {
    /* Asegura que el h2 y el p se mantengan apilados verticalmente */
    text-align: center;
    
    /* Opcional: Evita que el texto interno fuerce un salto de línea si no lo quieres */
    /* white-space: nowrap; */ 
    
    /* Asegúrate de que el wrapper no sea demasiado estrecho */
    min-width: min-content; 
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-gray);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-home {
    margin-top: var(--space-xl);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-home h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-blue);
}

.contact-home p {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    /*margin-top: 2px;*/
    flex-wrap: wrap; 
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--light-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-link:hover::before {
    width: 300px;
    height: 300px;
}

.social-link span {
    position: relative;
    z-index: 1;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(44, 107, 191, 0.4);
}

/* ===============================================
   Club Section
   =============================================== */

.club-section {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.club-section h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.club-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    margin-bottom: var(--space-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.club-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-gray);
}

.installations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.installation-card {
    background: rgba(44, 107, 191, 0.1);
    padding: var(--space-md);
    border-radius: 15px;
    border: 2px solid var(--primary-blue);
    transition: all var(--transition-normal);
}

.installation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 107, 191, 0.3);
    background: rgba(44, 107, 191, 0.2);
}

.installation-card h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.installation-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: var(--space-sm);
}

.map-link {
    display: inline-block;
    margin-top: var(--space-sm);
    padding: 8px 16px;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.map-link:hover {
    background: var(--light-blue);
    transform: translateX(5px);
}

.directive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.directive-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    padding: var(--space-md);
    border-radius: 15px;
    text-align: center;
    transition: all var(--transition-normal);
}

.directive-card:hover {
    transform: scale(1.05);
}

.directive-card h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.directive-card p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===============================================
   Teams Table
   =============================================== */

.teams-table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.teams-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.teams-table thead {
    background: var(--primary-blue);
}

.teams-table th {
    padding: var(--space-md);
    text-align: left;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.teams-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.teams-table tbody tr:hover {
    background: rgba(44, 107, 191, 0.2);
}

.teams-table td {
    padding: var(--space-sm) var(--space-md);
}

.team-name {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* ===============================================
   News Section
   =============================================== */

.news-container {
    overflow-x: auto;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
}

.news-table thead {
    background: var(--primary-blue);
}

.news-table th,
.news-table td {
    padding: var(--space-sm);
    text-align: left;
}

.news-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.news-table tbody tr:hover {
    background: rgba(44, 107, 191, 0.2);
}

/* ===============================================
   Matches Section
   =============================================== */

.matches-container {
    background: rgba(255, 255, 255, 0.05);
   /* padding: var(--space-md); */
    padding: 0px;
    border-radius: 1px;
    min-height: 500px;
    max-width: 800px;
    margin-left: 0px;
    margin-right: 0px;
}

.matches-iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 1px;
    
}

/* ===============================================
   Sponsors Carousel
   =============================================== */

.sponsors-carousel {
    background: rgba(0, 0, 0, 0.5);
    padding: var(--space-md) 0;
    overflow: hidden;
    border-top: 2px solid var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    margin: var(--space-xs) 0;
}

.sponsors-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-860%);
    }
}

.sponsor-item {
    flex: 0 0 200px;
    margin: 0 var(--space-xs);
    text-align: center;
}

.sponsor-item a {
    display: block;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.sponsor-item:hover {
    transform: scale(1.1);
}

.sponsor-item img {
    width: 200px;
    height: 120px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    padding: 10px;
    margin-bottom: var(--space-sm);
}

.sponsor-item span {
    display: block;
    font-weight: 600;
    margin-top: var(--space-xs);
}

/* ===============================================
   Sponsors Main Grid
   =============================================== */

.sponsors-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   /* gap: var(--space-xs);  */
    gap: 3px;
}

.sponsor-main-card {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-xs);
    border-radius: 15px;
    width: 275px; /* Igual que la imagen */
    
    /*margin: 0 auto; /* Centrar en la columna */
    text-align: center;
    border: 2px solid var(--primary-blue);
    transition: all var(--transition-normal);
}

.sponsor-main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 107, 191, 0.3);
}

.sponsor-main-card img {
    width: 255px;
    height: 160px;
    object-fit: contain;
    background: white;
    padding: var(--space-xs);
    border-radius: 10px;
    margin-bottom: var(--space-xs);
}

.sponsor-main-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: var(--space-xs);
}

/* ===============================================
   Footer
   =============================================== */

.main-footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    border-top: 3px solid var(--primary-blue);
    margin-top: var(--space-xs);
}

.footer-content p {
    color: var(--light-gray);
    margin-bottom: var(--space-xs);
}

/* ===============================================
   Responsive Design
   =============================================== */

@media (max-width: 768px) {
   
    .header-container {
        flex-direction: row !important; /* Mantener horizontal */
        padding: 5px 10px !important;   /* Reducir padding */
    }
    
    .header-container .instagram-modern-btn {
        padding: 6px !important;
        border-radius: 50% !important; /* Botón circular */
        width: 32px !important;
        height: 32px !important;
        margin-top: 0 !important;
    }
    
    .header-container .instagram-modern-btn span {
        display: none; /* Oculta el texto */
    }
    
    .header-container .instagram-modern-btn svg {
        width: 18px !important;  
        height: 18px !important;
        margin: 0 !important;
    }
    /* Hacemos los botones más compactos en el selector de idioma */
    .language-selector button {
        /* Reducción del relleno (Padding) */
        padding: 2px 6px; /* Ajusta este valor (2px vertical | 6px horizontal) */
        
        /* Reducción del tamaño de la fuente */
        font-size: 12px;  /* Ajusta este valor */
    }
    
    /* Opcional: Si el contenedor global del selector también necesita reducirse */
    .language-selector {
        padding: 3px;
    }

    .main-nav {
        /*
         * Ajusta el relleno vertical (arriba y abajo) de la barra.
         * El 5px es el espacio vertical que quieres mantener.
         * El 20px es el espacio horizontal (manteniéndolo igual que antes).
         */
        padding: 0px 0px; 
    }

    /* Opcional: Si el botón de menú en sí mismo tiene márgenes internos */
    .mobile-menu-toggle {
        margin-top: 0;
        margin-bottom: 0;
        margin: 0;
        padding: 0px;
    }

    .header-logo {
        width: 35px !important;
        height: 35px !important;
    }
    
    .logo-section h1 {
        font-size: 1.2rem !important;
    }

    .mobile-menu-toggle {
        display: block;
    }  
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 100%;
        left: 0;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-escudo {
        width: 180px;
        height: 180px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .teams-table {
        font-size: 0.9rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .installations-grid,
    .directive-grid,
    .sponsors-main-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .teams-table th,
    .teams-table td {
        padding: var(--space-xs);
        font-size: 0.8rem;
    }
}

/* ===============================================
   Utilities
   =============================================== */

.hidden {
    display: none !important;
}

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

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

/* ===============================
   CENTRAR TABLA DE PRÓXIMOS PARTIDOS
   =============================== */

/* 1. Centrar el título de la sección */
.section-container .section-title {
    text-align: center;
}

/* 2. Definir un ancho y centrar el contenedor del iFrame */
.matches-container {
    /* Establece un ancho máximo para que el contenido no sea muy ancho en monitores grandes */
    max-width: 800px; 
    
    /* Esta es la clave para centrarlo: establece márgenes automáticos a la izquierda y derecha */
    margin-left: 0px;
    margin-right: 0px;
    
    /* Pequeño ajuste de margen superior si lo necesitas */
    margin-top: 20px;
}

/* Opcional: Asegúrate de que el iFrame tome el 100% del contenedor centrado */
.matches-container iframe {
    width: 100%;
    /* Si el iframe tiene bordes por defecto, puedes quitarlos */
    border: none;
}

/* ===============================
   AJUSTES DEL HEADER CONTAINER
   =============================== */
.header-container {
    display: flex; /* Asumo que ya lo tienes para alinear horizontalmente */
    justify-content: space-between;
    align-items: center;
    width: 100%;

    /* ************************************** */
    /* ** CÓDIGO MODIFICADO PARA REDUCIR ALTURA ** */
    /* ************************************** */
    padding: 1px 20px; /* Reducido. 5px es el relleno vertical (arriba/abajo) */
    /* ************************************** */
}

/* Opcional: Si el título H1 o el logo tienen márgenes internos grandes, quítalos */
.logo-section h1, 
.logo-section .header-logo {
    margin: 0; 
}

/* ==================================== */
/* FONDO DE LA SECCIÓN EQUIPOS */
/* ==================================== */
#equipos {
    /* 1. La propiedad background-image contiene DOS capas: */
    /* A. linear-gradient: Una capa de color (negro en este ejemplo) con opacidad. */
    /* B. url(): La imagen de fondo real. */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
        url('fitxategiak/irudiak/Ezk1.png'); /* ⬅️ REEMPLAZA esta URL */
    
    /* 2. Ajustes de visualización */
    background-size: cover; /* Asegura que la imagen cubra todo el espacio */
    background-position: center; /* Centra la imagen */
    background-attachment: fixed; /* Opcional: crea un efecto parallax al hacer scroll */
    
    /* 3. Asegura que el contenido sea legible */
    color: white; /* Asume que el fondo semioscuro necesitará texto claro */
    
    /* 4. Altura mínima para que el fondo se vea */
    min-height: 500px; 
    padding: 80px 0;
}