body {
    background-color: #bf0003;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    position: relative;
}

html {
    height: 100%;
    overflow-x: hidden;
}

.bg-main {
    background-color: #bf0003;
    color: white;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-top: 180px; /* espacio para headers */
}

.header-wrapper {
    position: relative;
    width: 100%;
}

.header-bar,
.footer-bar {
    width: 100%;
    overflow: hidden;
    height: 2rem;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    background-color: transparent;
}

.header-logos {
    max-width: 260px;
    margin-top: 20px;
    height: auto;
}

.header-redes {
    max-width: 260px;
    margin-top: 40px;
    height: 3rem;
}

.header-redes-a {
    margin-top: 40px;
    height: 2rem;
}
.logo-central {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 35%;
    height: auto;
    z-index: 4;
}

.d-flex.flex-wrap.align-items-center.px-3.py-2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
}

.runner-img {
    width: 100%;
    max-width: 800px;
    height: 300px;
    object-fit: contain;
    display: block;
    margin: 3rem auto;
}

.btn-registro {
    max-width: 400px;
    width: 90%;
    height: auto;
}

.menu-btn {
    background-color: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    box-sizing: border-box;
    flex: unset;
}

.menu-btn.btn-menu {
    max-width: 180px;
    width: 100%;
}

.menu-btn.btn-icon {
    max-width: 100px;
    width: 100%;
    padding: 0.6rem;
}

.menu-btn img {
    max-height: 24px;
    width: auto;
}

.menu-btn:hover {
    background-color: #FFD700;
    color: black;
}

.manada-text {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.manada-highlight {
    font-family: 'Great Vibes', cursive;
    color: #FFD700;
    font-size: 2rem;
}

.patrocinadores-img {
    object-fit: contain;
    transform: scale(0.5, 0.5);
    -ms-transform: scale(0.5, 0.5);
    -webkit-transform: scale(0.5, 0.5);
}

.brand-img{
    display: flex;
    justify-content: center;
    align-items: center;
}

.barra-horaria {
    object-fit: contain;
    width: auto;
    max-width: 100%;
}

.franja-horaria {
    background: black;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.scrolling-text {
    animation: scroll-horizontal 20s linear infinite;
    white-space: nowrap;
    display: inline-block;
}

@keyframes scroll-horizontal {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Eliminar título y línea decorativa "SAVE THE DATE" */
.save-date-title,
.date-line {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .header-logos,
    .header-redes,
    .logo-central {
        max-height: 80px;
        width: 100%;
    }

    .brand-img{
        max-height: 1.5rem !important;
    }

    .runner-img {
       width: 100%;
        margin: 2rem 0rem 0rem 0rem !important;
        padding: 1rem;
    }

    .btn-registro {
        max-width: 300px;
    }

    .menu-btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .manada-text {
        font-size: 1.2rem;
    }

    .manada-highlight {
        font-size: 1.5rem;
    }

    .d-flex.flex-wrap.align-items-center.px-3.py-2 {
        flex-direction: column;
        text-align: center;
    }

    .menu-btn {
        min-width: unset;
    }

    .bg-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        top: 5rem;
    }
    .header-redes{
        margin-top: 1rem !important;
        width: 3rem;
        height: 3rem;
    }
    .header-redes-a{
        margin-top: 1rem !important;
    }

    .logo-central {
        object-fit: contain;
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        margin-bottom: 1rem;
    }
}
