/* 
 * Liga de Beisbol Navajoa Ejidal - Zona Sur Bacabachi
 * Estilos principales del sitio web
 * Temporada 2025-2026
 */

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

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mejoras para dispositivos táctiles */
a, button, .team-card, .news-card, .gallery-item, .sponsor-card {
    -webkit-tap-highlight-color: rgba(196, 30, 58, 0.3);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Animaciones */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

/* Header y Navegación */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #c41e3a 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: rgba(0,0,0,0.2);
    padding: 10px 0;
    text-align: center;
    color: white;
}

nav {
    background-color: #1e3c72;
    padding: 0;
    position: relative;
}

/* Botón Hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menú de navegación */
.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.nav-menu > li > a:hover {
    background-color: #c41e3a;
}

/* Submenu */
.submenu {
    display: none;
    position: absolute;
    background-color: #2a5298;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    width: 100%;
}

.submenu li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
}

.submenu li a:hover {
    background-color: #c41e3a;
}

/* Sección Juego de Estrellas Destacada */
.all-star-highlight {
    background: linear-gradient(135deg, #1e3c72 0%, #c41e3a 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.all-star-highlight::before {
    content: '⚾';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    top: -50px;
    right: -50px;
    transform: rotate(-15deg);
}

.all-star-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.all-star-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.all-star-header h2 {
    font-size: 2.5em;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.all-star-date {
    font-size: 1.2em;
    margin: 10px 0;
    opacity: 0.95;
}

.all-star-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 30px;
}

.all-star-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background: white;
}

.all-star-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.all-star-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.all-star-card:hover img {
    transform: scale(1.05);
}

.all-star-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.all-star-card:hover .all-star-overlay {
    opacity: 1;
}

.main-poster {
    grid-row: span 2;
    min-height: 500px;
}

.roster-card {
    min-height: 250px;
}

.all-star-cta {
    text-align: center;
    color: white;
    font-size: 1.2em;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.all-star-cta strong {
    color: #ffd700;
}

.all-star-cta a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.all-star-cta a:hover {
    color: #ffffff;
    border-bottom: 2px solid #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Responsive para Juego de Estrellas */
@media (max-width: 968px) {
    .all-star-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-poster {
        grid-column: span 2;
        min-height: 400px;
    }
    
    .all-star-header h2 {
        font-size: 2em;
    }
}

@media (max-width: 600px) {
    .all-star-highlight {
        padding: 40px 0;
    }
    
    .all-star-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-poster {
        grid-column: 1;
        grid-row: 1;
        min-height: 350px;
    }
    
    .roster-card {
        min-height: 300px;
    }
    
    .all-star-header h2 {
        font-size: 1.5em;
    }
    
    .all-star-date {
        font-size: 1em;
    }
}

/* Banner Principal */
.banner {
    position: relative;
    background: url('../assets/images/banner.jpg');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    color: white;
    padding: 50px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 450px;
    height: 500px;
}

/* Efecto de marca de agua adicional */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

/* Asegurar que el contenido esté por encima del overlay */
.banner > * {
    position: relative;
    z-index: 2;
}

.banner-logo {
    height: 300px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8)) 
            drop-shadow(0 0 20px rgba(0,0,0,0.6));
    flex-shrink: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    padding: 10px;
}

.banner-content {
    text-align: left;
}

.banner h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 
                 0 0 20px rgba(0,0,0,0.6),
                 0 0 40px rgba(30,60,114,0.4);
    font-weight: bold;
}

.banner p {
    font-size: 1.2em;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 
                 0 0 15px rgba(0,0,0,0.6);
    font-weight: 500;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Secciones */
.section {
    margin: 40px 0;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c41e3a;
    font-size: 2em;
}

/* Equipos Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 2px solid #ddd;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(30,60,114,0.3);
    border-color: #1e3c72;
}

.team-logo {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #1e3c72;
    border: 3px solid #c41e3a;
    overflow: hidden;
    padding: 5px;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.team-logo img.logo-cover {
    object-fit: cover;
    transform: scale(1.1);
}

.team-card h3 {
    color: #1e3c72;
    font-size: 1em;
}

/* Noticias y Redes Sociales */
.news-social-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.news-column {
    flex: 1;
}

.facebook-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.facebook-widget {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
}

/* Noticias */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.news-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #1e3c72 0%, #c41e3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.news-image:hover {
    transform: scale(1.02);
}

.news-image img {
    transition: transform 0.3s ease;
}

.news-image:hover img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    color: #1e3c72;
    margin-bottom: 10px;
}

.news-date {
    color: #c41e3a;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* Standings Table */
.standings-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.standings-table th {
    background-color: #1e3c72;
    color: white;
    padding: 15px;
    text-align: left;
    white-space: nowrap;
}

.standings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.standings-table tr:hover {
    background-color: #f5f5f5;
}

.standings-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 200px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #c41e3a 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.3s, background-image 0.5s ease;
    position: relative;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

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

.gallery-title {
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Paginación de galería */
.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.gallery-page-info {
    color: #1e3c72;
    font-weight: bold;
    font-size: 0.95em;
}

.gallery-page-btn {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.gallery-page-btn:hover {
    transform: translateY(-1px);
    background: #2a5298;
}

.gallery-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Modal para mostrar imágenes */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: auto;
}

.image-modal.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s, color 0.2s;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
    transform: rotate(90deg);
    color: #c41e3a;
    background-color: rgba(196, 30, 58, 0.8);
}

.modal-image {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.modal-caption {
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    max-width: 90%;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }
    
    .modal-image {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .modal-caption {
        font-size: 1em;
        padding: 15px;
        margin-top: 15px;
    }
    
    /* Modal de Roster */
    .roster-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px auto;
        padding: 0;
    }
    
    .roster-modal-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
        width: 35px;
        height: 35px;
    }
    
    .modal-image {
        max-width: 98%;
        max-height: 75vh;
    }
    
    .modal-caption {
        font-size: 0.9em;
        padding: 12px;
    }
    
    /* Modal de Roster */
    .roster-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px auto;
    }
    
    .roster-modal-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
        width: 35px;
        height: 35px;
    }
}

/* Rol de Juegos */
.games-list {
    display: grid;
    gap: 15px;
}

.game-card {
    background: linear-gradient(to right, #f5f5f5 0%, #e8e8e8 100%);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #c41e3a;
}

.game-teams {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.game-team {
    text-align: center;
    font-weight: bold;
    color: #1e3c72;
}

.vs {
    color: #c41e3a;
    font-weight: bold;
    font-size: 1.2em;
}

.game-info {
    text-align: right;
    color: #666;
}

/* Patrocinadores */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sponsor-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #ddd;
    text-align: center;
    transition: all 0.3s;
}

.sponsor-card:hover {
    border-color: #1e3c72;
    transform: translateY(-5px);
}

a.sponsor-card {
    display: block;
    cursor: pointer;
}

a.sponsor-card:hover {
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.15);
}

.sponsor-logo {
    width: 120px;
    height: 120px;
    background: #f5f5f5;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #1e3c72;
}

/* Modal de Roster */
.roster-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: auto;
}

.roster-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
    padding: 20px;
}

.roster-modal-content {
    background-color: white;
    margin: 20px auto;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

.roster-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s, color 0.2s;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(196, 30, 58, 0.9);
}

.roster-modal-close:hover {
    transform: rotate(90deg);
    color: white;
    background-color: #c41e3a;
}

.roster-modal-content .roster-section {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.roster-modal-content .roster-header {
    border-radius: 10px 10px 0 0;
}

/* Rosters */
.roster-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.roster-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #c41e3a 100%);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.roster-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 10px;
    border: 3px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.roster-header-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    color: white;
}

.roster-staff {
    font-size: 0.95em;
    opacity: 0.95;
}

.roster-staff p {
    margin: 5px 0;
}

.roster-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.roster-table thead {
    background-color: #1e3c72;
    color: white;
}

.roster-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

.roster-table th:first-child {
    width: 80px;
    text-align: center;
}

.roster-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.roster-table tbody tr:hover {
    background-color: #f9f9f9;
}

.player-number {
    text-align: center;
    font-weight: bold;
    color: #1e3c72;
    font-size: 1.1em;
}

.player-name {
    font-weight: 500;
}

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

.category-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
}

/* Estilos por categoría */
.category-local .category-badge {
    background-color: #e3f2fd;
    color: #1976d2;
}

.category-refuerzo .category-badge {
    background-color: #fff3e0;
    color: #f57c00;
}

.category-nuevo-valor .category-badge {
    background-color: #e8f5e9;
    color: #388e3c;
}

.category-novato .category-badge {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.category-foraneo .category-badge {
    background-color: #ffebee;
    color: #c62828;
}

.roster-empty {
    padding: 40px;
    text-align: center;
    color: #666;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
}

/* Responsive Design */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .section {
        padding: 20px;
    }

    .teams-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .banner h2 {
        font-size: 2em;
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
    /* Header y navegación móvil */
    .header-top {
        padding: 8px 0;
        font-size: 0.9em;
    }

    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: block;
    }

    /* Ocultar menú por defecto en móvil */
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1e3c72;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    /* Mostrar menú cuando está activo */
    .nav-menu.active {
        display: flex;
        animation: fadeIn 0.3s ease-in-out;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu > li > a {
        padding: 15px 20px;
        text-align: left;
    }

    /* Submenu en móvil */
    .submenu {
        position: static;
        box-shadow: none;
        background-color: rgba(42, 82, 152, 0.95);
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .has-submenu.active .submenu {
        display: block;
        max-height: 500px;
        animation: fadeIn 0.3s ease-in-out;
    }

    .submenu li a {
        padding: 12px 20px 12px 40px;
        font-size: 0.95em;
    }

    /* Banner responsivo */
    .banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
        gap: 20px;
    }

    .banner-logo {
        height: 150px;
    }

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

    .banner h2 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }

    .banner p {
        font-size: 1em;
    }

    /* Container y secciones */
    .container {
        padding: 10px;
    }

    .section {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .section h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    /* Grid de equipos */
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .team-card {
        padding: 15px 10px;
    }
    
    .team-logo {
        width: 70px;
        height: 70px;
    }

    .team-card h3 {
        font-size: 0.9em;
    }

    /* Noticias y redes sociales */
    .news-social-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .facebook-widget {
        padding: 10px;
        overflow: hidden;
    }

    .facebook-widget .fb-page {
        width: 100% !important;
    }

    .news-image {
        height: 250px;
        font-size: 2em;
    }

    .news-content {
        padding: 15px;
    }

    .news-content h3 {
        font-size: 1.1em;
    }

    /* Tabla de posiciones */
    .standings-table {
        font-size: 0.9em;
    }

    .standings-table th,
    .standings-table td {
        padding: 10px 8px;
    }

    /* Hacer tabla scrollable horizontal en móviles */
    .standings-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Juegos */
    .game-card {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .game-teams {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .game-team {
        font-size: 0.95em;
    }

    .vs {
        font-size: 1em;
    }

    .game-info {
        text-align: center;
        font-size: 0.9em;
    }

    /* Galería */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        height: 150px;
        font-size: 1.5em;
    }

    /* Patrocinadores */
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .sponsor-card {
        padding: 20px;
    }

    .sponsor-logo {
        width: 80px;
        height: 80px;
        font-size: 1.2em;
    }

    /* Rosters */
    .roster-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .roster-logo {
        width: 80px;
        height: 80px;
    }

    .roster-header-info h3 {
        font-size: 1.5em;
    }

    .roster-table {
        font-size: 0.9em;
    }

    .roster-table th,
    .roster-table td {
        padding: 10px 8px;
    }

    .player-name {
        font-size: 0.9em;
    }

    /* Footer */
    footer {
        padding: 25px 15px;
        font-size: 0.9em;
    }

    footer h3 {
        font-size: 1.2em;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    /* Header */
    .header-top p {
        font-size: 0.8em;
        padding: 0 10px;
    }

    nav ul li a {
        padding: 10px 15px;
        font-size: 0.95em;
    }

    /* Banner más compacto */
    .banner {
        padding: 20px 10px;
    }

    .banner-logo {
        height: 200px;
    }

    .banner h2 {
        font-size: 1.3em;
    }

    .banner p {
        font-size: 0.9em;
    }

    /* Secciones */
    .section {
        padding: 15px 10px;
        margin: 15px 0;
    }

    .section h2 {
        font-size: 1.3em;
    }

    /* Equipos en una sola columna en pantallas muy pequeñas */
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 300px;
    }

    .team-card {
        padding: 15px;
    }

    .team-logo {
        width: 80px;
        height: 80px;
    }

    .team-card h3 {
        font-size: 1em;
    }

    /* Tabla de posiciones */
    .standings-table {
        font-size: 0.75em;
    }

    .standings-table th,
    .standings-table td {
        padding: 8px 5px;
    }

    /* Noticias */
    .news-image {
        height: 200px;
    }

    .news-content {
        padding: 12px;
    }

    .news-content h3 {
        font-size: 1em;
    }

    .news-content p {
        font-size: 0.9em;
    }

    /* Galería */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 180px;
    }

    /* Patrocinadores */
    .sponsors-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sponsor-card h3 {
        font-size: 0.95em;
    }

    /* Rosters */
    .roster-header {
        padding: 15px;
    }

    .roster-logo {
        width: 60px;
        height: 60px;
    }

    .roster-header-info h3 {
        font-size: 1.3em;
    }

    .roster-staff {
        font-size: 0.85em;
    }

    .roster-table {
        font-size: 0.8em;
    }

    .roster-table th,
    .roster-table td {
        padding: 8px 5px;
    }

    .player-number {
        font-size: 1em;
    }

    .player-name {
        font-size: 0.85em;
    }

    .category-badge {
        padding: 4px 8px;
        font-size: 0.75em;
    }

    /* Footer */
    footer {
        padding: 20px 10px;
    }

    footer p {
        font-size: 0.85em;
    }
}

