/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header y Navegación */
.header {
    background-color: #0101ff;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.nav-brand:hover {
    transform: scale(1.05);
    text-decoration: none;
    color: inherit;
}

.nav-brand .logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.nav-brand .logo:hover {
    transform: rotate(5deg);
}

.nav-brand h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: block;
}

.nav-link:hover {
    background: #0101ff;
    color: #ffd700;
    transform: scale(1.05);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffd700;
    font-weight: bold;
}

.admin-icon {
    color: white;
    font-size: 1.5rem;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
}

.admin-icon:hover {
    background: #0101ff;
    color: #ffd700;
    transform: scale(1.05);
    transform: translateY(-2px);
}

.logout-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    font-weight: 500;
    display: none; /* Hidden by default, shown only in admin panel */
}

.logout-btn:hover {
    background: #0101ff;
    color: #ff4444;
    transform: scale(1.05);
    transform: translateY(-2px);
}

.logout-btn i {
    margin-right: 0;
}

.admin-panel .logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bar {
    width: 28px;
    height: 3px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Hero Section - Vista Previa */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0101FF;
    padding: 2rem 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 1000;
    overflow: hidden;
}

/* Header siempre visible pero por debajo de la vista previa */
.header {
    z-index: 800;
}

.hero-titulo {
    width: 100%;
    max-width: 1400px;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.hero-titulo h1 {
    font-size: 3.5rem;
    color: white;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.hero-titulo h2 {
    font-size: 3rem;
    color: #ffd700;
    margin: 0;
    font-weight: 600;
}

/* Bloquear scroll cuando existe hero-section */
body:has(.hero-section) {
    overflow: hidden;
}

/* Botón para saltar vista previa */
.btn-saltar-vista {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: #0101FF;
    border: 2px solid #0101FF;
    padding: 15px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.btn-saltar-vista span {
    padding: 0 4px;
}

.btn-saltar-vista:hover {
    background-color: #f0f0f0;
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 4px 15px rgba(1, 1, 255, 0.3);
}

.btn-saltar-vista i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.hero-escudo {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-texto {
    grid-column: 2;
}

.hero-img {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.hero-img img {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-escudo img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.hero-texto {
    color: white;
    font-size: 1.3rem;
    line-height: 1.8;
}

.hero-texto h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 600;
    text-align: center;
}

.hero-texto ul {
    margin: 0.5rem 0 1rem 0;
    padding-left: 1.5rem;
}

.hero-texto li {
    margin: 0.3rem 0;
    line-height: 1.6;
}

.hero-texto .nota {
    font-size: 1rem;
    font-style: italic;
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* Hero Section - Bienvenida */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/fondo.jpeg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 900px;
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #ffd700;
    color: #0101ff;
}

.btn-primary:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #0101ff;
    border: 2px solid #0101ff;
}

.btn-secondary:hover {
    background-color: #0101ff;
    color: white;
}

/* Contenido Principal */
.main-content {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

.section h2 {
    color: #0101ff;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid #ffd700;
    padding-bottom: 0.5rem;
    text-align: center;
}

/* Grids */
.matches-grid,
.stats-grid,
.teams-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.matches-grid {
    grid-template-columns: 1fr;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.teams-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cards */
.match-card,
.news-card,
.stat-card,
.team-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}
.match-card.compact {
    padding: 1rem 1.2rem;
}

.compact-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jornada-header {
    margin-bottom: 8px;
    color: #0101ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.compact-row {
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 8px;
}

.compact-row:last-child {
    border-bottom: none;
}

.compact-row .linea {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.compact-row .linea-1 {
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
}

.compact-row .linea-2 {
    color: #666;
    font-size: 0.9rem;
    width: 100%;
    max-width: 720px; /* centrada y con mucho espacio a los lados */
    margin: 0 auto;
    justify-content: space-between; /* izquierda/derecha dentro del contenedor centrado */
    gap: 12px;
}

/* Línea única: 3 columnas (izquierda, centro, derecha) dentro de un contenedor centrado */
.compact-row .linea-unica {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* estadio | centro | fecha */
    align-items: center;
    padding: 0 16px;
    overflow: hidden;
}

.compact-row .col-estadio { justify-self: start; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px;  color: #666;}
.compact-row .col-team-izq { justify-self: end; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.compact-row .col-centro {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* team-left | score | team-right */
    align-items: center;
    justify-items: center;
    font-weight: 600;
}
.compact-row .score { font-weight: 800; min-width: 90px; text-align: center; }
.compact-row .team-left {
    text-align: right;
    justify-self: end;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.15;
}
.compact-row .team-right {
    text-align: left;
    justify-self: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.15;
}
.compact-row .col-team-der { justify-self: start; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-row .col-fecha { justify-self: end; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #666;}

.compact-row .l2-izq {
    max-width: none;
    overflow: visible;
    text-overflow: initial;
    white-space: nowrap;
    text-align: left;
    flex: 1;
}

.compact-row .l2-der {
    min-width: auto;
    text-align: right;
    flex: 1;
}

.match-card:hover,
.news-card:hover,
.stat-card:hover,
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.match-card h3 {
    color: #0101ff;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
}

.news-card h3 {
    color: #0101ff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

/* Estilos específicos para noticias */
.news-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Estilo especial para noticias clicables en index */
.news-card[style*="cursor"] {
    cursor: pointer;
}

.news-card[style*="cursor"]:active {
    transform: translateY(-3px);
}

.news-image {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.news-image-container {
    width: 100%;
}

.news-content {
    flex: 1;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #666;
}

/* Fecha anclada abajo a la derecha */
.news-card .news-date {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    font-size: 0.85rem;
}

.news-category {
    background: #0101ff;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-excerpt {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.news-body p {
    color: #2c3e50;
    line-height: 1.8;
    margin: 0 0 1rem 0;
    font-size: 1.05rem;
    text-align: justify;
    letter-spacing: 0.01em;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.news-body p:last-child {
    margin-bottom: 0;
}

/* Noticias completas en página de noticias */
.news-card.full {
    flex-direction: column;
}

.news-card.full .news-image {
    width: 100%;
    border-radius: 8px;
}
.no-news {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.loading {
    text-align: center;
    color: #0101ff;
    padding: 2rem;
    font-weight: 500;
}

.match-card .match-date {
    font-size: 0.9rem;
}

.match-card .match-teams {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.match-card .match-venue {
    color: #666;
    font-size: 0.9rem;
}

.news-card .news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-card .news-excerpt {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

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

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: #666;
    font-size: 1rem;
}

/* Tarjetas de equipos */
.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: stretch;
    min-height: 80px;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-header {
    color: white;
    text-align: center;
    flex: 0 0 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.team-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: bold;
}

.team-info{
    text-align: left;
    flex: 1 1 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}


.team-info p {
    font-size: 1.3rem;
    color: black;
}

.team-info p strong {
    color: #0101ff;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}


/* Utilidades */
.text-center {
    text-align: center;
}

/* Estilos específicos para páginas adicionales */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0101ff 0%, #0000cc 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Filtros */
.filters, .gallery-filters, .season-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filters-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.team-filters {
    display: flex;
    align-items: center;
}

.team-selector {
    padding: 0.5rem 1rem;
    border: 2px solid #0101ff;
    border-radius: 25px;
    background: white;
    color: #0101ff;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    min-width: 200px;
}

.team-selector:focus {
    outline: none;
    border-color: #0000cc;
    box-shadow: 0 0 0 3px rgba(1, 1, 255, 0.1);
}

/* Filtro de Equipo Mejorado */
.team-filter-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.team-filter-container .team-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.team-filter-container label {
    font-weight: 600;
    color: #0101ff;
    font-size: 1.1rem;
}

.team-filter-container .team-selector {
    min-width: 250px;
    font-size: 1rem;
}

/* Navegación por Pestañas */
.tabs-navigation {
    display: flex;
    background: white;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: #f8f9fa;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #0101ff;
}

.tab-btn.active {
    background: white;
    color: #0101ff;
    border-bottom-color: #0101ff;
}

/* Contenido de Pestañas */
.tabs-content {
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.tab-panel {
    display: none;
    padding: 0;
}

.tab-panel.active {
    display: block;
}

.tab-panel .section {
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #f0f0f0;
}

.tab-panel .section:last-child {
    border-bottom: none;
}

/* Calendario */
.calendar-container {
    padding: 2rem;
}

.upcoming-matches {
    padding: 2rem;
}

/* Estilos para calendario por equipos */
.equipo-calendario-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

.equipo-calendario-header {
    background: linear-gradient(135deg, #0101ff 0%, #0000cc 100%);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
}

.equipo-calendario-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.equipo-calendario-content {
    padding: 2rem;
}

.calendario-table {
    width: 100%;
    border-collapse: collapse;
}

.calendario-table th,
.calendario-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.calendario-table .rival-info {
    text-align: left;
}

.calendario-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #0101ff;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.calendario-table tbody tr:hover {
    background: #f8f9fa;
}

.jornada-num {
    font-weight: 600;
    color: #0101ff;
}

.rival-info {
    font-weight: 500;
}

.fecha-info {
    font-size: 0.9rem;
    color: #666;
    min-width: 100px;
}

.no-jornadas {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* Grid responsive para las tarjetas de equipos */
.calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

@media (max-width: 768px) {
    .calendar-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .equipo-calendario-content {
        padding: 1rem;
    }
    
    .calendario-table th,
    .calendario-table td {
        padding: 0.5rem;
    }
}

/* Estilos para Calendario por Jornadas */
.jornada-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

.jornada-header {
    background: linear-gradient(135deg, #0101ff 0%, #0000cc 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jornada-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.jornada-date {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.jornada-matches {
    padding: 0;
}

.calendar-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border-left: 4px solid #0101ff;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.calendar-match:hover {
    background-color: #f8f9fa;
}

.calendar-match:last-child {
    border-bottom: none;
}

.calendar-match-info {
    flex: 1;
    padding-right: 1rem;
}

.calendar-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.calendar-team {
    font-weight: 600;
    color: #333;
    font-size: 1.5rem;
}

.calendar-vs {
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 0.5rem;
}

.calendar-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #666;
}

.calendar-venue {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.calendar-venue::before {
    content: "📍";
    font-size: 0.8rem;
}

.calendar-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.calendar-time::before {
    content: "🕐";
    font-size: 0.8rem;
}

.calendar-result {
    background: linear-gradient(135deg, #0101ff 0%, #0000cc 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(1, 1, 255, 0.3);
}

.calendar-result:contains("-") {
    background: #666;
    box-shadow: 0 2px 8px rgba(102, 102, 102, 0.3);
}

/* Cards de Partidos */
.match-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

.match-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.match-card-header {
    background: linear-gradient(135deg, #0101ff 0%, #0000cc 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.match-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.match-card:hover .match-card-header::before {
    transform: translateX(100%);
}

.match-journey {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.match-date {
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.match-card-body {
    padding: 2rem;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    background: #f8f9fa;
    padding: 0.5rem;
}

.team-name {
    font-weight: 600;
    color: #333;
    text-align: center;
    font-size: 1.5rem;
}

.match-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1rem;
    min-width: 80px;
}

.match-score {
    font-size: 2rem;
    font-weight: 700;
    color: #0101ff;
    margin-bottom: 0.5rem;
}

.match-status {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-info {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.match-venue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.match-venue i {
    color: #ff0101;
}

/* .match-competition eliminado por no usarse */

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #0101ff;
    background: transparent;
    color: #0101ff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0101ff;
    color: white;
}

/* Noticias específicas */
/* .news-article eliminado por no usarse */

.news-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ffd700;
    color: #0101ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    color: #0101ff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.no-news {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

/* Sección de Noticias */
.section-description {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.news-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.news-container {
    margin-bottom: 2rem;
}

.news-container .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* .news-container .news-article eliminado por no usarse */

.news-container .news-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.news-container .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* regla hover sobre .news-article eliminada */

.news-container .news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #0101ff;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-container .news-title {
    color: #0101ff;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 700;
}

.news-container .news-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.news-container .news-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-container .news-meta i {
    color: #0101ff;
}

.news-container .news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.news-container .news-read-more {
    display: inline-block;
    background: #0101ff;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.news-container .news-read-more:hover {
    background: #0000cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(1, 1, 255, 0.3);
}

/* Resultados específicos */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0101ff;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #0101ff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}
/* Tabla de posiciones */
.league-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table-responsive {
    overflow-x: auto;
}

.league-table-content {
    width: 100%;
    border-collapse: collapse;
}

.league-table-content th,
.league-table-content td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.league-table-content th {
    background: #0101ff;
    color: white;
    font-weight: bold;
}

.league-table-content tr.our-team {
    background: #e3f2fd;
    font-weight: bold;
}

.league-table-content .position {
    font-weight: bold;
    color: #0101ff;
}

.league-table-content .team-name {
    text-align: left;
    font-weight: bold;
}

.league-table-content .points {
    font-weight: bold;
    color: #0101ff;
}

.league-table-content .positive {
    color: #28a745;
}

.league-table-content .negative {
    color: #dc3545;
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

/* Forzar 4 columnas en todas las pantallas excepto móviles muy pequeños */
@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        min-width: 600px;
    }
}

/* Asegurar 4 columnas en pantallas grandes */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.2rem;
        max-width: 1250px;
    }
}

/* Forzar 4 columnas en pantallas medianas y grandes */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .main-content {
        width: 100%;
    }
}

/* Galería: 2 columnas cuando el viewport es menor de 1024px */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsivo general: tablets */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 1.25rem;
    }
    .main-content {
        padding: 1.5rem;
    }
    .section {
        padding: 1.5rem;
    }
    
    /* Hero Section Vista Previa */
    .hero-section { padding: 3rem 1.5rem; }
    .hero-container { gap: 2.5rem; }
    .hero-escudo img { max-width: 250px; }
    .hero-texto { font-size: 1.15rem; }
    
    .hero { height: 50vh; }
    .hero-content h2 { font-size: 3rem; }

    .compact-row .linea-unica {
        display:block;
        grid-template-columns: 1fr 1fr 1fr; /* estadio | centro | fecha */
    }
}

/* Responsivo móvil: <= 768px */
@media (max-width: 768px) {
    .navbar { padding: 0.8rem 1rem; }
    .nav-brand h1 { font-size: 1.5rem; }
    .main-content { padding: 1rem; }
    .section { padding: 1rem; }
    
    /* Hero Section Vista Previa Mobile */
    .hero-section { 
        padding: 2rem 1rem;
        height: 100%;
        min-height: 100vh;
        overflow-y: auto;
        position: fixed;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 4rem;
    }
    
    .hero-section > * {
        flex-shrink: 0;
    }
    
    .hero-titulo { 
        margin-bottom: 2rem; 
        margin-top: 0;
        order: 1;
    }
    
    .hero-titulo h1 { font-size: 1.8rem; }
    .hero-titulo h2 { font-size: 1.5rem; }
    
    .hero-container { 
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        order: 2;
    }
    
    .hero-escudo { 
        order: 1;
        display: flex;
        justify-content: center;
    }
    
    .hero-escudo img { max-width: 180px; }
    
    .hero-texto { 
        order: 2;
        text-align: center;
        padding: 0 2rem;
    }
    
    .hero-texto h3 { font-size: 1.1rem; }
    .hero-texto ul { padding-left: 1rem; }
    .hero-texto .nota { font-size: 0.85rem; }
    
    .hero-img { 
        order: 3;
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-saltar-vista { 
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 2rem;
        margin-bottom: 2rem;
        order: 3;
        align-self: center;
        width: auto;
    }
    
    
    .hero { height: 42vh; }
    .hero-content h2 { font-size: 2.2rem; margin-top: 1rem; }
    .hero-content p { font-size: 1rem; }
    /* Compact rows (Resultados / Próximos) */
    .compact-row { padding-bottom: 6px; }
    .compact-row .team-left,
    .compact-row .team-right { font-size: 0.9rem; padding: 0 2px;}
    .compact-row .score { font-size: 1rem; min-width: 70px; }
    /* Ocultar campo y fecha en móvil */
    .compact-row .col-estadio,
    .compact-row .col-fecha { display: none; }
    .match-card.compact { padding: 0.8rem 1rem; }
    .section h2 { font-size: 1.6rem; margin-top: 0.5rem; }
    .btn { font-size: 0.95rem; }
    /* Team cards en columna en móvil */
    .team-card { flex-direction: column; align-items: stretch; }
    .team-header { flex: none; width: 100%; padding: 1rem; }
    .team-header h3 { font-size: 1.6rem; }
    .team-info { flex: none; width: 100%; padding: 1rem; }
    .team-info p { font-size: 1.05rem; }
    /* News cards a una columna en móvil */
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsivo móvil pequeño: <= 480px */
@media (max-width: 480px) {
    .nav-brand h1 { font-size: 1.25rem; }
    .hero { height: 38vh; }
    .hero-content h2 { font-size: 1.9rem; }
    .compact-row .team-left,
    .compact-row .team-right { font-size: 0.85rem; }
    .compact-row .score { font-size: 0.95rem; min-width: 64px; }
    .compact-row .col-estadio,
    .compact-row .col-fecha { display: none; }
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.gallery-description {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Modal de imagen */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1000px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.download-modal-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.download-modal-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
}

#modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive para modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-image-container {
        max-height: 60vh;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .download-modal-btn {
        top: 10px;
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
}

.image-info {
    padding: 1.5rem;
}

.image-info h3 {
    color: #0101ff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.image-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

.image-category {
    background: #ffd700;
    color: #0101ff;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Modal de imagen */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    background: white;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
}

.modal-info {
    padding: 2rem;
}

.modal-info h3 {
    color: #0101ff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* Contacto específico */
.contact-container {
    margin-bottom: 3rem;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info h2 {
    color: #0101ff;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #0101ff 0%, #0000cc 100%);
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0101ff 0%, #0000cc 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(1, 1, 255, 0.3);
}

.info-content h3 {
    color: #0101ff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.info-content strong {
    color: #0101ff;
    font-weight: 600;
}

.info-content em {
    color: #666;
    font-style: italic;
}

.social-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.social-section h3 {
    color: #0101ff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-link.facebook { background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%); }
.social-link.twitter { background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%); }
.social-link.instagram { background: linear-gradient(135deg, #e4405f 0%, #c13584 100%); }
.social-link.youtube { background: linear-gradient(135deg, #02630f 0%, #02630f 100%); }


/* Mapa */
.map-section {
    margin-top: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

.map-section h2 {
    color: #0101ff;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}

.map-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #0101ff 0%, #0000cc 100%);
    border-radius: 2px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    
    .logout-btn {
        padding: 0.4rem;
        font-size: 1.3rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #0101ff;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        padding: 1.5rem 0;
        gap: 0.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0.3rem 0;
    }
    
    .nav-link {
        padding: 0.8rem 1.5rem;
        margin: 0 1rem;
        border-radius: 8px;
        font-size: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .nav-brand .logo {
        height: 40px;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .contact-container {
        max-width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .social-link {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .match-item {
        flex-direction: column;
        text-align: center;
    }
    
    .match-date {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .vs {
        margin: 0.5rem 0;
    }
    
    .match-info {
        min-width: auto;
        text-align: center;
    }
    
    .gallery-grid {
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        max-width: 95%;
    }
    
    .news-article {
        flex-direction: column;
        min-height: auto;
    }
    
    .news-image {
        width: 100%;
    }
    
    .news-container .news-content {
        padding: 1.5rem;
    }
    
    .news-container .news-title {
        font-size: 1.4rem;
    }
    
    .news-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .tabs-navigation {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .team-filter-container {
        padding: 1.5rem;
    }
    
    .team-filter-container .team-selector {
        min-width: 200px;
        font-size: 0.9rem;
    }
    
    .match-cards {
        padding: 1rem;
        gap: 1rem;
    }
    
    .match-card-body {
        padding: 1.5rem;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
    }
    
    .match-result {
        margin: 1rem 0;
    }
    
    .match-score {
        font-size: 1.5rem;
    }
    
    .team-logo {
        width: 50px;
        height: 50px;
    }
    
    .match-card-header {
        padding: 0.8rem 1.5rem;
    }
    
    .match-journey {
        font-size: 0.8rem;
    }
    
    .match-date {
        font-size: 1rem;
    }
    
    .jornada-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .jornada-header h3 {
        font-size: 1.3rem;
    }
    
    .calendar-match {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .calendar-match-info {
        text-align: center;
    }
    
    .calendar-teams {
        justify-content: center;
        text-align: center;
    }
    
    .calendar-details {
        justify-content: center;
        gap: 1rem;
    }
    
    .calendar-result {
        align-self: center;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .jornada-section {
        margin-bottom: 2rem;
    }
    
    .calendar-match {
        padding: 0.8rem 1rem;
    }
    
    .calendar-team {
        font-size: 0.9rem;
    }
    
    .calendar-details {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .calendar-match {
        padding: 0.8rem;
    }
    
    .calendar-team {
        font-size: 0.9rem;
    }
    
    .calendar-vs {
        font-size: 0.8rem;
    }
    
    .calendar-venue,
    .calendar-time {
        font-size: 0.8rem;
    }
}
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .matches-grid,
    .news-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.8rem;
        min-width: auto;
    }
    
    .filters, .gallery-filters, .season-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .nav-brand .logo {
        height: 35px;
    }
    
    .nav-brand h1 {
        font-size: 1.2rem;
    }
