﻿section {
    min-height: calc(100vh - 40px);
}

.home-1 {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    row-gap: 16px;
    margin-top: 2rem;
}







.home-1-slider {
    margin: 24px auto 0 auto;
    width: 100%;
}


.home-1-slider-header {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

    .home-1-slider-header div:first-child {
        padding: 10px 20px;
        background: var(--azul-oscuro);
        color: white;
        text-align: center;
    }

    .home-1-slider-header h1 {
        font-size: 3rem;
        font-weight: 600;
    }

    .home-1-slider-header div:last-child {
        color: white;
        text-align: center;
        flex-basis: 100%;
        margin-top: 10px;
    }

    .home-1-slider-header h1 {
        font-size: 3rem;
        margin: 8px 0;
        text-transform: uppercase;
        line-height: 55px;
    }

    .home-1-slider-header span {
        font-size: 18px;
    }














.home-1-slider-container {
    width: 100%;
    height: 370px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

.slider {
    height: 370px;
    width: 100%;
    background: transparent;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
}

#leftView,
#rightView {
    height: 270px;
    width: 200px;
    opacity: 0.7;
    border-radius: 5px;
    /*
    transform: skewy(5deg);
    transform-origin: top right;
    background-color: #eb9100;
    */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 1s;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
}

    #leftView:hover,
    #rightView:hover {
        opacity: 1;
        transition: all 0.3s;
    }

.navBtns {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    position: absolute;
    opacity: 0.8;
    background-color: rgb(17, 27, 43, 0.75);
    cursor: pointer;
    color: white;
    font-size: 32px;

    svg {
        width: 50px;
        height: 50px;
    }
}

    .navBtns:hover {
        opacity: 1;
        transition: all 1s;
        background-color: rgb(17, 27, 43, 1);
    }

#navLeft {
    left: 75px;
    transform: translateX(-50%);
}

#navRight {
    right: 75px;
    transform: translateX(50%);
}

#linkTag {
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mainView {
    width: 640px;
    aspect-ratio: 6 / 3;
    border-radius: 5px;
    margin-left: -15px;
    margin-right: -15px;
    z-index: 1;
    transition: all 1s;
    display: flex;
    justify-content: center;
}

    #mainView:hover {
        transform: scale(1.05);
        transition: all 0.5s;
    }

    #mainView img {
        border-radius: 15px;
        max-width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center;
    }


@media (max-width: 1120px) {
    .slider {
        display: grid;
        grid-template-columns: 1fr 3fr 1fr;
    }

    #mainView {
        width: auto;
        max-width: 100%;
        height: 300px;
        margin-left: 0;
        margin-right: 0;
    }

    #leftView,
    #rightView {
        width: auto;
    }
}

@media (max-width: 850px) {
    .home-1-slider {
        margin: 2rem auto;
    }

    .home-1-slider-container {
        margin-top: 0;
    }

    .slider {
        grid-template-columns: 0fr 1fr 0fr;
    }

    .navBtns {
        z-index: 10;
    }

    #mainView {
        height: auto;
    }

    #navRight {
        right: 10px;
    }

    #navLeft {
        left: 10px;
    }
}






.home-1-links {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 16px;
    width: 60%;
    margin: 1rem auto 0 auto;
}

    .home-1-links > div:first-child {
        text-align: center;
        font-size: 32px;
        color: white;
    }

        .home-1-links > div:first-child span {
            font-size: 16px;
        }

    .home-1-links > div:last-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .home-1-links a {
        background-color: var(--azul-oscuro);
        color: white;
        padding: 8px 5px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 16px;
        flex-basis: 21%;
        text-align: center;
    }











.home-1-eventos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 85%;
    margin: 16px auto 32px auto;
    background-color: rgba(17, 27, 43, 0.7);
    overflow: auto;
    gap: 3rem;
}

.home-1-eventos-item h3 {
    color: var(--blanco);
    margin-top: 3rem;
}

.home-1-eventos::-webkit-scrollbar {
    width: 12px;
    /* width of the entire scrollbar */
}

    .home-1-eventos::-webkit-scrollbar-track {
        background: rgba(100, 100, 100, 0.8);
        /* color of the tracking area */
    }

    .home-1-eventos::-webkit-scrollbar-thumb {
        background-color: #FFF;
        /* color of the scroll thumb */
        border-radius: 20px;
        /* roundness of the scroll thumb */
        border: 1px solid #FFF;
        /* creates padding around scroll thumb */
    }


    .home-1-eventos span,
    .home-1-eventos p {
        color: white;
        font-size: 16px;
    }

    .home-1-eventos > div {
        flex-basis: 75%;
        position: relative;
    }

.home-1-eventos-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
}

.home-1-eventos-item .mat-icon {
    font-size: 30px;
}
/*
.home-1-eventos-item:not(:last-of-type) {
   border-bottom: 1px solid #FFF;
}
*/
.home-1-eventos-header {
    margin: 16px 0 24px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

    .home-1-eventos-header > div:first-child {
        flex-basis: 100%;
    }

    .home-1-eventos-header > div:nth-child(2) {
        flex-basis: calc(35% - 3.2px);
    }

    .home-1-eventos-header > div:nth-child(3) {
        flex-basis: calc(65% - 3.2px);
        text-align: right;
    }

span.eventos-header-span {
    font-size: 14.5px;
    font-weight: 700;
}




.home-1-eventos-body {
    margin-bottom: 16px;
}


@media (max-width: 1120px) {
    .home-1-links {
        width: 100%;
    }

    .home-1-eventos {
        width: 100%;
        display: grid;
        gap: 3rem;
        padding: 0 2rem;
    }

    .home-1-eventos-header {
        margin: 0;
        margin-bottom: 1rem;
    }
}


@media (max-width: 650px) {
    .home-1-links > div:last-child {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .home-1-eventos-header {
        display: grid;
        grid-template-columns: 1fr;
        margin-bottom: 2rem;
    }

        .home-1-eventos-header > div:nth-child(3) {
            text-align: left;
        }
}

@media (max-width: 450px) {
    .home-1-links > div:last-child {
        grid-template-columns: 1fr;
    }
}