@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    scroll-behavior: smooth;
}

nav{
    background-color: #ffd433;
}

.nav-item a {
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    color: #000;
    margin: 0 10px;
    transition: all 0.7s ease-in;
}

.nav-item a:hover{
    background-color: #fff;
    border-radius: 5px;
}

.navbar-toggler{
    border: none;
}

.navbar-toggler:focus{
    box-shadow: none;
}

.navbar-toggler i{
    color: #000;
    font-size: 27px;
}

.navbar-nav{
    text-align: center;
}

.dropdown-menu{
    background-color: #fff;
    border: none;
}

.seccion2 .tituloSeccion2{
    padding-top: 25px;
    padding-bottom: 45px;
    font-size: 45px;
}

.seccion2 .icon{
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
    background-color: #ffd433;
    width: 110px;
    padding: 25px;
    color: #000;
}

.seccion3{
    background-image: url("../img/banner2.jpg");
    background-repeat: no-repeat;
    background-position: center;
    height: 450px;
    background-attachment: fixed;
    box-shadow: inset 000 2000px rgba(0, 0, 0, 0.4);
}

.seccion3 h2{
    color: #fff;
    font-weight: bold;
    font-size: 45px;
    padding-top: 100px;
}

.seccion4 .tituloSeccion4{
    padding-top: 25px;
    padding-bottom: 45px;
    font-size: 45px;
}
.seccion4 .card{
    border: none;
}

/*Estilos Carousel*/
.sectionCarousel{
    /*Colocamos un alto de 100vh que hara que se ajuste al 100% del alto de la pantalla del dispositivo que accedamos*/
    height: 100vh;
}

/*Hace que el contenedor del carousel ocupe todo el espacio disponible en la pantalla, independientemente del tamaño de la pantalla o del contenido del contenido del carousel, lo que permite una mejor experiencia de usuario y un diseño responsivo*/

.sectionCarousel .carousel,
.sectionCarousel .carousel-inner,
.sectionCarousel .carousel-item,
.sectionCarousel .carousel-item::before{
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

/*Con la pseudo clase nth:nth-child() accedemos a cada div con la clase carousel-item*/
.sectionCarousel .carousel-item:nth-child(1){
    background-image: url("../img/carousel1.jpg");
}
.sectionCarousel .carousel-item:nth-child(2){
    background-image: url("../img/carousel2.jpg");
}
.sectionCarousel .carousel-item:nth-child(3){
    background-image: url("../img/carousel3.jpg");
}

.sectionCarousel .carousel-item{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5);
    align-items: end;
}

.sectionCarousel .container{
    text-align: center;
    background: #fff;
    padding: 30px 0;
    margin-bottom: 50px;
    border-top: 4px solid #ffd433;
}

.sectionCarousel h2{
    color: #000;
    font-size: 36px;
    font-weight: 700;
}

.sectionCarousel .line{
    border: 2px solid #ffd433;
    width: 10%;
    border-radius: 20px;
    margin: 0 auto;
}

.sectionCarousel p{
    padding: 20px 0;
    white-space: pre-line;
    line-height: 27px;
    color: #000;
}

/*Le colocamos una opacidad de 1 para que el boton de "siguiente" y "anterior" no se vea con una transparencia*/
.carousel-control-next,
.carousel-control-prev{
    opacity: 1;
}

/* le añadimos estilos al boton anterior y siguiente*/
.sectionCarousel .carousel-control-next-icon,
.sectionCarousel .carousel-control-prev-icon{
    font-size: 30px;
    background: #ffd433;
    border-radius: 55px;
    transition: 0.3s;
    color: #000;
    width: 54px;
    height: 54px;
    /*le indicamos que el contenido que tenga por dentro con la propiedad display:flex sea centrado totalmente*/
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Le aplicamos hover al icono de anterior y siguiente y su respectivo fondo*/
.sectionCarousel .carousel-control-next-icon:hover,
.sectionCarousel .carousel-control-prev-icon:hover{
    background: #ffd433;
    color: #1c1c1c;
}

/*Le damos estilo a los indicadores de abajo*/
.sectionCarousel .carousel-indicators button{
    cursor: pointer;
    border: 0;
    width: 12px;
    border-radius: 50px;
    transition: 0.3s;
}

/*Cuando el indicador del carousel este activo, aplique los siguientes estilos*/
.sectionCarousel .carousel-indicators button.active{
    background: #ffd433;
}

/*Estilos del boton*/
.sectionCarousel .carousel-item a{
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 14px 32px;
    border-radius: 4px;
    color: #000;
    background: #ffd433;
}



.botonScrollTop{
    position: fixed;
    height: 45px;
    width: 42px;
    background-color: #ffd433;
    right: 30px;
    bottom: 30px;
    text-align: center;
    line-height: 45px;
    color: #000;
    font-size: 25px;
    border-radius: 5px;
    cursor: pointer;
}

sectionTabs h2 {
    font-size: 45px;
}

.sectionTabs .nav-tabs {
    border: 0;
}

.sectionTabs .nav-tabs .nav-link {
    border: 2px solid #ffd433;
    margin: 0 10px;
    border-radius: 5px;
    text-align: center;
    transition: 0.5s ease-in;
    cursor: pointer;
}

.sectionTabs .nav-tabs .nav-link.active {
    background-color: #ffd433;
}

.sectionTabs .nav-tabs .nav-link h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 35px;
    color: #000;
}

.sectionTabs .tab-pane h4 {
    font-size: 30px;
    margin-bottom: 0;
    font-weight: 600;
}

.sectionTabs .tab-pane .list-group-item {
    background-color: #ffd433;
    border: none;
}

footer{
    background-color: #ffd433;
}

footer p{
    color: #000;
    font-size: 18px;
    font-weight: 500;
    padding-top: 15px;
}

@media only screen and (max-width: 320px) and (max-height: 568px) {

    .sectionCarousel .container {
        margin: 80px 15px;
    }

    .sectionCarousel h2 {
        font-size: 20px;
    }

    .sectionCarousel p {
        display: none;
    }

    .sectionCarousel .line {
        margin-bottom: 25px;
    }

    .sectionCarousel .carousel-item a {
        padding: 8px 12px;
    }

    .sectionTabs .nav-tabs .nav-link {
        border: 0;
        margin: 0;
    }

    .sectionTabs .nav-tabs .nav-link h4 {
        margin: 0;
        font-size: 15px;
    }
}




@media (min-width: 320px) and (max-width: 480px) {

    .carousel-control-next,
    .carousel-control-prev {
        display: none;
    }

    .sectionCarousel .line {
        width: 50%;
    }

    .sectionCarousel .container {
        margin: 70px 15px;
    }

    .sectionCarousel p {
        white-space: normal;
    }

    .sectionTabs .nav-tabs .nav-link{
        border: 0;
        margin: 0;
    }

    .sectionTabs .nav-tabs .nav-link h4{
        margin: 0;
        font-size: 18px;
    }
}


/*Navegador minimizado*/
@media (min-width: 481px) and (max-width: 480px) {
    .sectionCarousel .container{
        margin: 80px 15px;
    }
    .sectionCarousel p{
        white-space: normal;
    }
    .sectionCarousel .line{
        width: 30%;
    }

    .sectionTabs .nav-tabs .nav-link {
        border: 0;
        margin: 0;
    }

    .sectionTabs .nav-tabs .nav-link h4 {
        margin: 0;
        font-size: 18px;
    }
}


/*Tablets*/
@media (min-width: 768px) and (max-width: 1024px){
    .sectionCarousel .line{
        width: 40%;
    }
}


@media (min-width: 1025px) and (max-width: 1280px) {

    .sectionTabs .tab-pane .imgBeneficios {
        height: 390px;
    }
}
