* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: 0;
    outline: none;
    scroll-behavior: smooth;
    font-family: -apple-system, sans-serif;
}

:root {
    --bg-color: #fff;
    --snd-bg-color: #d5fdf9;
    --text-color: #000;
    --main-color: #007f73;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Header Section code */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background: var(--main-color);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.logo{
    font-size: 3rem;
    color: var(--bg-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar a {
    font-size: 1.9rem;
    color: var(--bg-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--text-color);
}
/* Estilo icon de menu */
.bi-list{
    font-size: 3.6rem;
    color: var(--bg-color);
    cursor: pointer;
    display: none;
}

/* Home Section Code */

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img{
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    animation: floatImage 4s ease-in-out infinite;
    transition: 0.4s ease;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 35px var(--main-color),
                0 0 45px var(--main-color);
}

@keyframes floatImage {
    0%{
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}

.home-content {
    margin-left: 5rem;
}

.home-content h3 {
    font-size: 3.7rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p{
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn:hover{
    box-shadow: 0 0 1.6rem var(--main-color);
}

/* About Section Code */

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--snd-bg-color);
}

.about-img img{
    width: 25vw;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease;
}

.about-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 35px var(--main-color),
                0 0 45px var(--main-color);
}

.heading {
    font-size: 6rem;
    text-align: center;
}

.about-content{
    padding: 0 4rem;
}

.about-content h2{
    text-align: left;
    line-height: 1.2;
}

.about-content h3{
    font-size: 3rem;
}

.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

/* Services Section Code */

.services h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.services-container {
    /* display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem; */

    /* Probando Grid */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
}

.services-container .services-box {
    /* flex: 1 1 calc(33.333%); */
    /* Con grid */
    width: 100%;

    background: var(--snd-bg-color);
    padding: 6rem 2rem 6rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.3rem solid var(--bg-color);
    transition: 0.3s ease;
}

.services-container .services-box:hover{
    border-color: var(--main-color);
    transform: scale(1.02);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.services-box h3{
    font-size: 2.6rem;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

/* Testimonial Section Code */

.testimonial {
    background: var(--snd-bg-color);
}

.testimonial-box {
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.testimonial .heading {
    margin-bottom: 5rem;
}

.testimonial-box img {
    width: 15rem;
    border-radius: 50%;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 3rem;
}

.testimonial-item {
    min-height: 450px;
    max-width: 450px;
    background: var(--bg-color);
    border: 0.3rem solid var(--bg-color);
    border-radius: 2rem;
    margin: 0 2rem;
    padding: 20px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-color);
    transition: 0.3s ease;
}

.testimonial-item:hover{
    border-color: var(--main-color);
    transform: scale(1.02);
}

.testimonial-item h2 {
    font-size: 3rem;
}

.testimonial-item p{
    font-size: 1.5rem;
    text-align: center;
}

#star {
    color: gold;
    font-size: 2rem;
}

/* Contact Section Code */

.contact {
    background: var(--bg-color);
}

.contact .heading {
    text-align: center;
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--main-color);
}

.contact form {
    max-width: 80rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 0.25rem solid var(--main-color);
    margin: 0.7rem 0;
    resize: none;
}

.contact form .input-box input {
    width: 49%;
    margin: 0.7rem 0.35rem;
}

.contact form .btn {
    margin-top: 2rem;
}

/* Footer Section Code */

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--snd-bg-color);
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .social a {
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease;
}

.footer .social a:hover{
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}

.footer .copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}

/* Linea del Tiempo  */
/* Fondo para seccion de linea de tiempo */
.experiencia {
    background: var(--snd-bg-color);
}

.timeline{
    position: relative;
    margin: 20px auto;
    width: 100%;
    max-width: 850%;
    padding: 5px 20px;
    /* background: #fff; */
}

/* Para colocar cuadros en la linea de Start y End */
/* .timeline:before,
.timeline:after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    background: #555;
    color: #fff;
    z-index: 5;
}
.timeline:before{
    content: "Start";
    top:0px;
}
.timeline:after{
    content: "End";
    bottom: 0px;
} */
/* Dar un margin a los bloques */
.timeline .timeline-blocks{
    margin: 65px 0px;
}
/* Para trazar la linea */
.timeline .timeline-blocks:before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 100%;
    border-left: 2px dotted var(--main-color);
}
/* Dibujar el contorno de los cuadros */
.timeline .timeline-blocks .block{
    position: relative;
    width: calc(50% - 20px);
    margin: 20px 0px;
    border: 2px solid var(--main-color);
    box-shadow: 0px 2px 8px 2px rgba(0, 0, 0, 0.1);
}
/* Mover los pares a la derecha */
.timeline .timeline-blocks .block:nth-child(even){
    left: calc(50% + 20px);
}

/* Hacer las bolitas */
.timeline .timeline-blocks .block:before {
    content: "";
    position: absolute;
    top: 0px;
    right: -30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-color);
}

/* Mover las bolitas pares a la izquierda */
.timeline .timeline-blocks .block:nth-child(even):before {
    left: -30px;
}
/* Para los header de la linea del tiempo */
.timeline .timeline-blocks .block .header_tl {
    padding: 10px;
    background: var(--main-color);
}
/* Para los titulos de los cuadros */
.timeline .timeline-blocks .block .header_tl h2{
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.1rem;
}

/* Para los titulos de los cuadros */
.timeline .timeline-blocks .block .header_tl h3{
    margin-top: 0.5rem;
    font-size: 1.8rem;
    color: var(--snd-bg-color);
    margin-bottom: 0.1rem;
}

/* Para el formato de lista ul */
.timeline .timeline-blocks .block ul {
    list-style: inside;
    margin-top: 1rem;
    padding-left: 2rem;
    background: var(--snd-bg-color);
    font-size: 2rem;
    color: var(--text-color);
    
}

.timeline .timeline-blocks .block li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}

/* Para las fechas cuadros */
.timeline .timeline-blocks .block .header_tl > p {
    position: absolute;
    font-size: 2rem;
    color: var(--snd-bg-color);
    font-weight: 600;
    font-style: italic;
    background: var(--main-color);
    border: 1px solid var(--snd-bg-color);
    padding: 2px 10px;
    border-radius: 10px;
}
/* Para colocar los impares a la izquierda fechas */
.timeline .timeline-blocks .block:nth-child(odd) .header_tl > p {
    right: -18em;
    top: 0px;
}
/* Para colocar los pares a la derecha fechas */
.timeline .timeline-blocks .block:nth-child(even) .header_tl > p {
    left: -20em;
    top: 0px;
}

/* Para los bloques de texto p */
/* .timeline .timeline-blocks .block > p {
    background: var(--snd-bg-color);
    padding: 10px;
    font-size: 16px;
    color: var(--text-color);
} */

/* COLOR PARA EL PRIMER TITULO CUADRO Y CIRCULO */
/* .timeline .timeline-blocks .block:nth-child(even) .header_tl,
.timeline .timeline-blocks .block:nth-child(even):before {
    background: var(--bg-color);
} */
 
/* Coloca color a texto en fecha */
/* .timeline .timeline-blocks .block:nth-child(1) .header_tl p {
    color: #3cff00;
} */


/* Responsive Design Code */

@media (max-width: 1200px){
    html{
        font-size: 55%;
    }
}

@media (max-width: 991px){
    .header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3%;
    }
    .services{
        padding: 7rem;
    }
    .testimonial .wrapper{
        grid-template-columns: repeat(1,1fr);
    }
    .contact form .input-box input{
        width: 100%;
    }
    .footer{
        padding: 2rem 3%;
    }
}

@media (max-width: 991px){
    .bi-list{               /* #menu-icon */
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--main-color);
        transition: all 0.5s ease;
        backdrop-filter: blur(10px);
    }
    .navbar a{
        display: block;
        padding: 17px;
        font-size: 22px;
    }
    .navbar.active {
        right: 0;
    }
    .home {
        flex-direction: column;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-content {
        order: 2;
        margin-left: 1rem;
    }
    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
    .about {
        flex-direction: column-reverse;
    }
    .about-img img{
        width: 70vw;
        margin-top: 4rem;
    }
    .services h2{
        margin-bottom: 3rem;
    }
/* Para la linea de tiempo */
    .timeline .timeline-blocks {
        padding-left: 20px;
    }
    .timeline .timeline-blocks:before {
        left: 20px;
    }
    .timeline .timeline-blocks .block {
       width: 100%;
    }
    .timeline .timeline-blocks .block:before{
        left: -30px;
    }
    .timeline .timeline-blocks .block:nth-child(even){
        left: 0px;
    }
    .timeline .timeline-blocks .block .header_tl p {
        position: static;
        background: transparent;
        border: none;
        color: var(--bg-color) !important;
        padding: 0px;
        margin-top: 5px;
    }
}

@media (max-width: 617px){
    .home-img img{
        width: 70vw;
        margin-top: 8rem;
    }
    .about-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

@media (max-width: 617px) {
    html{
        font-size: 50%;
    }

    /* Con grid */
     .services-container {
    grid-template-columns: 1fr;
  }
}

