body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
}

/* Barra de navegación superior */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Título en la barra de navegación */
.top-navbar h2 {
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
    flex-grow: 1;
}

/* Botón hamburguesa - solo visible en móviles */
.hamburger {
    display: none;
    /* Oculta por defecto en pantallas grandes */
    font-size: 1.5rem;
    color: white;
    background-color: #DC143C;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1200;
}

.hamburger:hover,
.hamburger:focus {
    background-color: #b90027;
    transform: scale(1.05);
    outline: none;
}

.hamburger i {
    pointer-events: none;
}

/* Menú lateral */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    /* Oculta por defecto en móviles */
    width: 280px;
    height: 100vh;
    background-color: #111;
    color: white;
    padding: 80px 20px 20px 20px;
    z-index: 1000;
    transition: left 0.4s ease;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
    left: 0;
    /* Mostrar menú en móviles */
}

/* Estilo para pantallas grandes: barra lateral fija */
@media (min-width: 769px) {
    .sidebar {
        left: 0;
        /* Siempre visible */
        width: 220px;
        padding: 60px 20px 20px 20px;
        transition: none;
        /* Sin animación en escritorio */
    }

    .hamburger {
        display: none;
        /* Ocultar botón hamburguesa */
    }

    .content {
        margin-left: 220px;
        /* Espacio para la barra lateral */
        margin-top: 60px;
        /* Espacio para la barra superior */
    }

    .top-navbar h2 {
        font-size: 1.8rem;
        /* Tamaño más grande en escritorio */
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        /* Mostrar botón hamburguesa en móviles */
    }

    .content {
        margin-left: 0;
        /* Sin margen en móviles */
        margin-top: 60px;
    }

    .top-navbar h2 {
        font-size: 1.2rem;
        /* Tamaño más pequeño en móviles */
    }
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #DC143C;
}

.sidebar ul li a i {
    font-size: 1.2rem;
}

/* Overlay oscuro para móviles */
.sidebar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: none;
}

.sidebar.active::before {
    opacity: 1;
    display: block;
}

/* Banner */
.banner {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/img/logos/bannervcopa.png');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

.banner h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner p {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* Títulos de secciones */
.section-title {
    background-color: #DC143C;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Botones CTA */
.cta-button {
    background-color: #DC143C;
    color: #fff;
    border: 2px solid #DC143C;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #fff;
    color: #DC143C;
    transform: translateY(-2px);
}

/* Texto justificado */
.invitation-text {
    text-align: justify;
}

/* Tablas y listas */
.table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #DC143C;
    color: #fff;
}

ul li,
ol li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Pie de página */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.footer a {
    color: #DC143C;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .banner {
        height: 250px;
        background-image: url('../assets/img/logos/bannervcopa.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .banner h1 {
        font-size: 2.5rem;
    }

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

    .section-title {
        font-size: 1.5rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .invitation-banner {
        width: 80px;
        height: 160px;
    }

    .language-selector {
        top: 60px;
        right: 10px;
    }

    .language-flag {
        width: 28px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 1.3rem;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .sidebar a {
        font-size: 1rem;
        padding: 10px;
    }

    .invitation-banner {
        width: 60px;
        height: 120px;
    }

    .language-flag {
        width: 24px;
        height: 16px;
    }

    .top-navbar h2 {
        font-size: 1rem;
        /* Aún más pequeño en pantallas muy pequeñas */
    }
}

#registro .container,
#registrados .container,
#invitacion .container,
#cronograma .container,
#categorias .container,
#premiacion .container,
#reglamentacion .container,
#campeonato .container,
#hoteles .container,
#transporte .container,
#atractivos .container {
    padding-top: 20px;
    padding-bottom: 40px;
}