@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap');

:root{
    --color-primary: #0071c5;
    --color-title: rgb(0, 34, 129);
    --align-title: left;
    --padding-container: 100px 0;
    --width-container: 90%;
    --max-width-container: 1200px;
    --color-btn: #0071c5;
    --text-btn: #fff;
    --padding-btn: 15px 25px;
    --height-shape:18em;
}


body{
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    opacity: 50;
    background-image: radial-gradient(#1d9bfc 1px, #ffffff 1px);
    background-size: 28px 28px;
    
}

nav{
    position: fixed;
    z-index: 101;
    opacity: 100%;
    width: 100%;
}

.navv{
    background: white;
    color: #003964;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 5px 0 10px rgba(0, 0, 0, .1);
}

nav .mainmenu{
    display: flex;
    list-style: none;
}

nav .mainmenu li a{
    display: inline-block;
    padding: 20px;
    text-decoration: none;
    text-transform: uppercase;
    color: #004fc5;
    font-weight: 600; 
}

nav .mainmenu-cta{
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;    
}

nav .Openmenu{
    font-size: 25px;
    margin: 20px;
    display: none;
    cursor: pointer;
    
}

nav .mainmenu .closemenu , .icons i {
    font-size: 25px;
    display: none;
    cursor: pointer;
    
}

.prenav{
    background-color: #0071c5;
    color: #fff;
    padding: 10px;
    font-size: 15px;
    text-align: center;
    margin: auto;
    width: 100%;
}

.navv li a:hover{
    color: #003964;
}

.logo{
    margin-left: 25px;
}

.container{
    width: 90%;
    max-width: var(--max-width-container);
    padding: var(--padding-container);
    margin: 0 auto;
    overflow: hidden;
}

.frase{
    background: #0071c5; 
    font-size: 20px;
}

.insurtech{
    font-style: italic;
    color: #fff;
    line-height: 40px;
    font-weight: 500;
}

.lista_servicios{
    list-style: none;
}

.hero{
    height: 100vh;
    min-height: 500px;
    position: relative;
    --padding-container: 0;
}

.hero::after{
    content: "";
    display: block;
    position: absolute;
    height: var(--height-shape);
    width: 100%;
    bottom: 0;
    left: 0;
    background: #fff;
    z-index: -1;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);

}

.hero__container{
    display: grid;
    height: 100%;
    grid-template-columns: 3fr 2fr;
    place-items: center;
    gap: 20px;
}

.hero__title{
    font-size: 45px;
    margin-bottom: 15px;
    font-weight: 200;

}

.hero__title .NOMBRE{
    font-weight: bold;
    font-style: normal;
    color: #0071c5;
}

.hero__subtitle{
    font-size: 50px;
}

.hero__copy{
    font-size: 25px;
    margin: 25px 0;
    font-weight: 500;
}

.hero__cta{
    display: inline-block;
    background: var(--color-btn);
    color: #fff;
    padding: var(--padding-btn);
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
}

.hero__cta:hover{
    background-color:#003964; ;
}

.hero__img{
    width: 95%;
}

/* Main */

.main{
    background: #fff;
}

.title{
    font-size: 2.5rem;
    text-align: var(--align-title);
    color: var(--color-title);
}

.title--border::after{
    content: "";
    display: block;
    width: 100px;
    margin-top: 20px;
    height: 4px;
    background-color: var(--color-primary);
}

.cta{
    display: inline-block;
    background: var(--color-btn);
    color: var(--text-btn);
    padding: var(--padding-btn);
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
}

/* about */

.about{
    display: grid;
    grid-template-columns: 5fr 4fr;
    place-items: center;
}

.about__course{
    width: 90%;
}

.about__paragraph{
    margin: 20px 0;
    line-height: 1.5;
    font-weight: 400;
    font-size: 16px;
}

.about__picture{
    text-align: center;
}

.about__img{
    width: 95%;
}

/* Card */

.card{
    background: #f0f0f0;
    height: auto;
}

.card__copy{
    margin-top: 20px;
    font-size: 20px;
    line-height: 25px;
    font-weight: 200;
}

.card__container{
    width: 90%;
    margin: 0 auto;
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: repeat(4,1fr);
    gap: 20px;
    grid-template-areas: 
    "card2  card1   card3"
    "card2  card1   card3"
    "card2  card1   card3"
    "card2  card1   card3";
}

.card__item:hover{
    transform: translatey(-15px);
    box-shadow: 0 12px 16px rgba(0, 21, 78, 0.068);
    
}

.card__item{
    padding: 20px;
    background: #fff;
    border-top: 5px solid #0071c5;
    border-bottom: 5px solid #0071c5;
    box-shadow: 0 0 3px rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    
}

.card__img{
    background: var(--color-primary);
    margin-top: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card__title{
    margin: 20px 0;
    font-size: 1.5rem;
    text-align: center;
}

.card__paragraph{
    font-weight: 300;
    margin-bottom: 20px;
}

.card__item:nth-last-of-type(1){
    grid-area: card1;
}

.card__item:nth-last-of-type(2){
    grid-area: card2;
}

.card__item:nth-last-of-type(3){
    grid-area: card3;
}

.card__item:nth-last-of-type(4){
    grid-area: card4;
}

/* Frase 2 */

.Frase-2{
    background-color: #0071c5;
}

.Frase2 {
    
    font-style: italic;
    color: #fff;
    line-height: 40px;
    font-weight: 500;
    font-size: 30px;
}

/* course */

.course{
    --color-title: #fff;
    --color-btn: #fff;
    --text-btn: #0071c5;
    color: var(--color-title);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    /* align-items: center; */
}

.course__about{
    z-index: 100;
    align-self: center;
    width: 97%;
    margin: 0 auto;
    padding: 30px;
    box-shadow: 0 0 6px rgba(0, 0, 0, .5);
    background: var(--color-primary);
    grid-column: 1/4;
    grid-row: 2/-2;
}

.course__picture{
  
    margin:0;
    grid-column: 3/-1;
    grid-row: 1/-1;
}

.course__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course__picture--right{
    grid-column: 1/4;
}

.course__about--left{
    grid-column: 3/-1;
}

/* Footer */


.footer{
    position: relative;
    --padding-container: 160px 0 50px ;

}

.footer::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100px;
    background: #fff;
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);

}

.footer_iconos{
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.footer__copy{
    margin: 10px 0;
    font-weight: 300;

}

.footer_info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 23px;
    padding: 20px;
    color: rgb(0, 34, 129);
    flex-wrap: wrap;
}

.footer_textos{
    display: flex;
    flex-direction: column;
}

.footer__link{
    width: 60px;
    height: 60px;
    border: 1px solid #000;
    border-radius: 50%;
    margin-right: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__icon{
    width: 30px;
}

.footer__picture{
    margin: 0;
}


.footer__copyright{
    padding-top: 30px;
    border-top: 2px solid #918484;
    text-align: center;
    color: #0071c5;

}

.footer__copyright::after{
    content: "";
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    place-items: center;
    margin-bottom: 30px;
}

.form{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 60px;
}

.input{
    background-color: #fff;
    border: 0;
    color: #0071c5;
    outline: none;
    border: 1px  solid #0071c5;
    padding: 20px 10px;
    
}

.input::placeholder{
    color: #0071c5;
}

input[type="text"], 
input[type="email"]{
    display: inline-block;
    width: 49%;
    margin-bottom: 30px;
}

.form textarea{
    width: 100%;
    margin-bottom: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

input[type="submit"]{
    width: 100%;
    text-align: center;
    padding: 14px 0;
    color: #ffffff;
    background: #0071c5;
}

input[type="submit"]:hover{
    cursor: pointer;
    color: #ffffff;
    background: #004c86;
}

/*SLIDER*/

.slider {
    background: white;
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slider::before, .slider::after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 70%);
    content: "";
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.slider::after {
    right: 0;
    top: 0;
    -webkit-transform: rotateZ(180deg);
            transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 0;
}

.slider .slide-track {
    -webkit-animation: scroll 50s linear infinite;
            animation: scroll 60s linear infinite;
    display: flex;
    width: calc(250px * 14);
}

.slider .slide {
    height: 50px;
    width: 250px;
    margin-left: 60px;
}

.pslider{
    padding-bottom: 50px;
  }

@media screen and (max-width:768px){
    :root{
        --height-shape:14em;
    }

    .logo img{
        width: 100px;
        height: auto;
    }

    nav .mainmenu{
        height: 100vh;
        position: fixed;
        right: 0;
        width: 50%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: #0071c5;
        transition: top 1s ease;
        display: none;
    }
    
nav .mainmenu-cta i{
    font-size: 25px;
}
    
nav .mainmenu .closemenu{
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
}

nav .Openmenu {
    display: block;

}

nav .mainmenu li a{ 
    color: #fff;
}



    .hero{
        min-height: 100vh;
        height: auto;
    }

    .hero__container{
        --padding-container: 150px 0 0 0;
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
    }

    .hero__img{
        order: -1;
        max-width: 300px;
    }

    .hero__title{
        font-size: 3.8rem;
    }

    /* About */

    .about{
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap: 80px;
    }

    .about__course{
        width: 100%;
    }

    .about__picture{
        order: -1;
    }

    .about__img{
        width: 100%;
    }

    /* Card */

    .card__container{
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: repeat(5,1fr);
        gap: 15px;
        grid-template-areas: 
        "card1      ."
        "card1  card2"
        "card3  card2"
        "card3  card4"
        ".      card4"  
    }


    /* Course */

    .course{
        grid-template-columns: repeat(6,1fr);
    }

    .course__about{
        grid-column: 1/6;
    }

    .course__about--left{
        grid-column: 2/-1;
    }

    .course__picture{
        grid-column: 2/-1;
    }

    .course__picture--right{
        grid-column: 1/6;
    }

    .footer__contact{
        grid-template-columns: 1fr;
    }

    .footer__texts{
        order: 1;
        --align-title: center;
    }

    .footer__social{
        justify-content: space-evenly;
    }
}

@media screen and (max-width: 500px){
    :root{
        --padding-btn: 20px 0;
    }


    .hero__container{
        --padding-container: 150px 0 0 0;
    }

    .hero__texts{
        text-align: center;
    }

    .hero__title{
        font-size: 3rem;
    }

    .hero__cta{
        display: block;
        width: 90%;
        margin: 0 auto;
    }

    .title{
        font-size: 2rem;
    }

    .cta{
        display: block;
    }

    /* Instructor */

    .instructor{
        --padding-container: 60px 0;
    }

    .instructor__container{
        width: 90%;
    }

    /* About */

    .about{
        gap: 40px;
    }

    .about__course{
        width: 100%;
    }

    /* Card */

    .card__container{
        width: 97%;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3,1fr);
        grid-template-areas: 
        "card1"
        "card2"
        "card3"
        ;
    }

    /* Course */

    .course{
        grid-template-columns: 1fr;
        --padding-container: 80px 0 30px;
    }

    .course--modifier{
        --padding-container:0 0 80px;
    }

    .course__about{
        padding: 20px 20px;
        width: 95%;
        grid-column: 1/-1;
        grid-row: 1/-1;
    }

    .course__picture{
        display: none;
    }

    .form{
        flex-direction: column;
        width: 100vh;
    }
}

@-webkit-keyframes scroll {
    0% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
    }
    100% {
      -webkit-transform: translateX(calc(-250px * 15));
              transform: translateX(calc(-250px * 15));
    }
  }
  
  @keyframes scroll {
    0% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
    }
    100% {
      -webkit-transform: translateX(calc(-250px * 13));
              transform: translateX(calc(-250px * 13));
    }
  } 