/********** Template CSS **********/
:root {
    --primary: #4942ca;
    --secondary: #8158e9;
    --light: #b49bf3;
    --dark: #1d004d;
}

html {
    scroll-padding: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    color: var(--dark);
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.fixed-top {
    transition: .5s;
}

.navbar .nav .nav-link {
    padding: 10px 15px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

.navbar .nav .nav-link:hover,
.navbar .nav .nav-link.active {
    color: var(--light);
}

@media (max-width: 1199px) {
    .navbar .nav .nav-link {
        padding: 10px;
    }
}

/*** Header ***/
#home {
    margin-bottom: 2rem;
}

#home text {
    fill: #ffffff;
    font-size: 1.78rem;
    font-weight: 600;
}

#home+div {
    margin-top: calc(-2rem - 17vw);
}

@media (min-width: 576px) {
    #home+div {
        margin-top: -8rem;
    }
}

@media (min-width: 1200px) {
    #home+div {
        margin-top: -12rem;
    }
}

.flag {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 2px solid rgba(172, 145, 242, 0.25);
}

.flag-2x {
    width: 8rem;
    height: 8rem;

}

/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    opacity: .7;
}

.team-item .team-text {
    position: absolute;
    left: 0;
    right: 2.5rem;
    bottom: 1.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0.7;
    transition: .5s;
}

.team-text {
    font-size: .75rem;
    align-items: center;
}

.team-item .team-text h5 {
    font-size: 1rem;
}

.team-item:hover .team-text {
    right: 1.875rem;
    opacity: 1;
}

.team-item .team-text.team-text2 {
    right: 0.875rem;
    bottom: 0.875rem;
}

.team-item:hover .team-text.team-text2 {
    right: 0.5rem;
}

.team-item .team-text div {
    margin-left: 0.5rem;
    transition: .5s;
}

.team-item:hover .team-text div {
    margin-left: 1rem;
}

/*** Valores / Programa ***/
#programa .table {
    --bs-table-border-color: var(--primary);
}

@media (max-width: 767.98px) {

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
    }

    th {
        display: none;
    }

    td:first-child {
        background: var(--dark);
        color: white;
    }

    td::before {
        display: block;
        color: var(--dark);
        font-weight: bold;
        margin: 0.15rem 0;
    }

    #valores td:nth-child(2)::before {
        content: '30 de abril 2025 (PREVENTA)';
    }

    #valores td:nth-child(3)::before {
        content: '1° de mayo al 30 de mayo de 2025';
    }

    #valores td:nth-child(4)::before {
        content: '31 de mayo al 25 de junio de 2025';
    }

    #valores td:nth-child(5)::before {
        content: 'Desde el 26 de junio de 2025 (y EN SEDE)';
    }

    #programa td:nth-child(2)::before {
        content: 'Salón Las Américas';
        font-size: 0.8rem;
    }

    #programa td:nth-child(2)[colspan="3"]::before,
    #programa td:nth-child(2)[colspan="4"]::before {
        content: 'Todos los Salones';
        font-size: 0.8rem;
    }

    #programa td:nth-child(3)::before {
        content: 'Salón Europa';
        font-size: 0.8rem;
    }

    #programa td:nth-child(4)::before {
        content: 'Salón Antártica';
        font-size: 0.8rem;
    }

    #programa td:nth-child(5)::before {
        content: 'Salón Los Volcanes';
        font-size: 0.8rem;
    }

    #programa td.bg-primary.text-white::before {
        color: white;
    }

    #programa .table-bordered> :not(caption)>*>* {
        border-bottom-width: var(--bs-border-width);
    }

    #programa .table-bordered> :not(caption)>*>*:last-child {
        border-bottom-width: 0;
    }
}