@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --padding-container: 120px 0;
    --color-title: #212529;
}
body {
    font-family: 'Poppins', sans-serif;
    background-image:  radial-gradient(#D9A91A .5px, transparent 1px);
    background-size: 20px 20px;
}
p {
    color: #555859;
    line-height: 28px;
}
h2 {
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}
ul {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #748182;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);
}
.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color: #fff;

    /* background-image:  radial-gradient(#fefefee9 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    background-position: 0 0,10px 10px;
    background-color: #D9A91A;
    clip-path: polygon(100% 0, 100% 85%, 50% 100%, 0 85%, 0 0); */
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url(../images/front.webp);
    background-size: cover;
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita repeticiones */
    clip-path: polygon(100% 0, 100% 88%, 50% 100%, 0 88%, 0 0);
    z-index: -1;


}
/* Nav */
.nav {
    --padding-container: 0;
    height: 100%; 
    display: flex;
    align-items: center;
}
.nav__imagen{
    width: 20%;
    height: auto;
}
.nav__link {
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}
.nav__items {
    list-style: none;
}
.nav__links {
    color: #fff;
    text-decoration: none;
}
.nav__menu {
    margin-left: auto;
    cursor: pointer;
    display: none;
}
.nav__img {
    display: block;
    width: 30px;
}
.nav__close {
    display: var(--show, none);
}
/* Hero container */
.hero__container {
    max-width: 800px;
    --padding-container: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: center;
    gap: 1em;
    padding-bottom: 100px;
    text-align: center;
}
.hero__title {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
}
.hero__subtitle{
    font-size: 1.6rem;
    font-weight: 500;
}
.hero__paragraph {
    margin-bottom: 20px;
}
.pulse {
    width: 30px;
    height: 30px;
    position: relative;
    animation: move 2.5s ease-in-out infinite;
    }
  @keyframes move {
    from {
      transform: translateY(150px);
    }
    to {
      transform: translateY(300px);
    }
  }
/*animation texts*/
.subtitle {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 1s ease-out;
  }
.subtitle.show {
    opacity: 1;
    transform: translateY(0);
}
/*animation paragraph*/
.paragraph {
    opacity: 0;
    transform: translateY(5px);
    transition: all 2s ease-out;
    color: #555859;
    
  }
.paragraph.show {
    opacity: 1;
    transform: translateY(0);
}

/* About */
.about {
    text-align: center;
    /* position: relative;
    display: grid;
    max-width: 100%; */
}
.form-container {
    background-color: #fefefe;
    box-shadow: 0 2px 2px  rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 40px;
    max-width: 990px;
    margin: 5% auto; /* margin the component*/
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 80px;
    transition: all 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    &:hover {
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
        transition-duration: 1s;
    }
}
.left-section {
    text-align: right;
}
.left-section, .right-section {
    flex: 1;
    margin-top: 20px;
}
.left-section .info-item{
  margin: 12px 15px 10px;
}
.left-section img {
    width: 90px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #D9A91A;
    /* display: block; */
    margin: 2px 1em 0 auto;
}
.left-section p {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
}
.right-section {
    margin-right: 50px;
}
.skill {
    margin-bottom: 15px;
}
.skill .skill__title{
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: left;
}
.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.skill-header span {
    font-size: 14px;
    color: #333;
}
.skill-bar {
    position: relative;
    height: 10px;
    border-radius: 5px;
    background-color: #ddd;
    overflow: hidden;
    margin-top: 15px;
}
.skill-bar-fill {
    height: 100%;
    border-radius: 5px;
    background-color: #D9A91A;

    animation: bar;
    animation-duration: 5s;
    /* animation-iteration-count: inherit; */
    animation-timing-function: linear;
    /* animation-direction: reverse; */
}
@keyframes bar {
    from {
        transform: translateX(-340px);
    }
    to {
        transform: translateX(0);
    }
}
/* reponsive query form*/
@media (max-width: 1041px) {
    .form-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .left-section {
        text-align: center;
    }
    .left-section, .right-section {
        width: 100%;
        margin: 0;
    }
    .skill .skill__title {
        text-align: center;
    }
}

/* Experience */
.experience {
    text-align: center;
}
.experience__title {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}
.experience__main {
    padding-top: 40px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
}
.experience__icons {
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 290px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 2px 2px  rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    background-color: #fefefe;
    margin-bottom: 10px;
    transition: all 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Animation JS*/
    transform: translateX(-100px);
    transition: opacity 0.1s ease, transform .5s ease;
    &:hover {
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
        transition-duration: 1s;
    }
}
.experience__icons.show {
    opacity: 1;
    transform: translateX(0);
  }  
.experience__icon {
    width: 40px;
}
/* Testimony */
.testimony{
    overflow: hidden;
    box-shadow: 0 4px 6px  rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    background-color: #fefefe;
    margin-bottom: 10px;
    transition: all 1.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    &:hover {
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
        transition-duration: 1s;
    }
}
.testimony__container{
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    gap: 1em;
    align-items: center;
}
.testimony__body{
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
}
.testimony__body--show{
    pointer-events: unset;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}
.testimony__img{
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 30%;
}
.testimony__texts{
    max-width: 700px;
}
.testimony__course{
    background-color: #ffffff;
    color: #BF8211;
    display: inline-block;
    padding: 5px;
    font-size: 0.70em;
    cursor: pointer;
    text-transform:lowercase;
}
.testimony__arrow{
    width: 90%;
    cursor: pointer;
}
/* Knowledge */
.knowledge__texts{
    padding: 30px 20px;
    background-color: #fefefe;
    margin-bottom: 10px;
    transition: all 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    &:hover {
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
        transition-duration: 1s;
    }
}
.knowledge__container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    align-items: center;
}
.knowledge__picture{
    max-width: 500px;
}
.knowledge__img{
    width: 100%;
    display: block;
    animation-duration: 3s;
    animation-timing-function: ease-out;
}
/* portfolio*/
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }

  .portfolio-item {
    cursor: pointer;
    position: relative;
  }

  .portfolio-item img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s, opacity 0.3s;
  }

  .portfolio-item:hover img {
    transform: scale(1.05);
    opacity: 0.8;
  }

  /* Modal */
  /* .carousel {
    display: flex;
    overflow: hidden;
    max-width: 600px;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .carousel img {
    width: 100%;
    transition: transform 0.5s ease-in-out;
  }

  .carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
  }

  .arrow {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
  }

  .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }

  .lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
  }

  .lightbox-controls {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    font-size: 16px;
    border-radius: 5px;
  }

  .counter {
    color: white;
    position: absolute;
    bottom: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
  } */
/* Questions */
.questions{
    text-align: center;
}
.questions__container{
    display: grid;
    gap: 2em;
    padding-top: 50px;
    padding-bottom: 100px;
}
.questions__padding{
    padding: 0;
    transition: padding .3s;
    border: 1px solid #D9A91A;
    border-radius: 6px;
    background-color: #fefefe;
    margin-bottom: 10px;
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
    &:hover {
        transition-duration: 1s;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
    }
}
.questions__padding--add{
    padding-bottom: 30px;
}
.questions__answer{
    padding: 0 30px 0;
    overflow: hidden;
}
.questions__title{
    text-align: left;
    display: flex;
    font-size: 20px;
    padding: 30px 0 30px;
    cursor: pointer;
    color: var(--color-title);
    justify-content: space-between;
}
.questions__arrow{
    border-radius: 50%;
    background-color: #011826;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    margin-left: 10px;
    transition:  transform .3s;
}
.questions__arrow--rotate{
    transform: rotate(180deg);
}
.questions__show{
    text-align: left;
    height: 0;
    transition: height .3s;
}
.questions__img{
    display: block;
}
/* Contact Butom*/
.cta {
    position: relative;
    background-color: #011826;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 32px;
    margin-top: 1%;
    transition: all 200ms ease-in-out;
    &:hover {
        scale: 1;
        background: #D9A91A;
        color: #ffffff;
        box-shadow: 0 0 10px #D9A91A;
        transition-duration: 800ms;
    }
}
/* Footer */

.footer{
    background: #011826;
}
.footer__title{
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 30px;
}
.footer__title, .footer__newsletter{
    color: #fff;
}
.footer__container{
    /*Active 2 columns */
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fff;
    padding-bottom: 20px;
}
.navfoot {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
}
.nav--footer{
    padding-bottom: 20px;
    display: grid;
    gap: 1em;
    grid-auto-flow: row;
    height: 100%;
}
.nav__link--footer{
    display: flex;
    margin: 0;
    margin-right: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer__inputs{
    margin-top: 10px;
    display: flex;
    overflow: hidden;
}
.footer__input{
    background-color: #fff;
    height: 50px;
    display: block;
    padding-left: 10px;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    border: none;
    margin-right: 16px;
}
.footer__submit{
    margin-left: auto;
    display: inline-block;
    height: 50px;
    padding: 0 20px ;
    background-color: #2091F9;
    border: none;
    font-size: 1rem;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}
.footer__copy{
    --padding-container: 30px 0;
    text-align: center;
    color: #fff;
}
.footer__copyright{
    font-weight: 300;
}
.footer__icons{
    margin-bottom: 10px;
}
.footer__img{
    width: 30px;
}
/* Media queries */
@media (max-width:800px){
    .hero::before {

        background-size: cover; /* Mantiene la cobertura */
        background-position: center center; /* Centra horizontal y vertical */
        /* clip-path: none; */  /* Opcional: Quitar clip-path si causa problemas */
    }
    .nav__menu{
        display: block;
    }
    .nav__link--menu{
        position: fixed;
        background-color: rgba(73, 70, 70, 0.29);
        backdrop-filter: blur(12px);
        top: 0;
        right: 0;
        height: 100%;
        width: 40%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .7s opacity;
    }
    .nav__link--show{
        --show: block;
        opacity:1 ;
        pointer-events: unset;
    }
    .nav__close{
        position: absolute;
        top: 30px;
        left: 30px;
        width: 30px;
        cursor: pointer;
    }
    .hero__title{
        font-size: 2.5rem;
    }
    .about__main{
        gap: 2em;
    }
    .about__icons:last-of-type{
        grid-column: 1/-1;
    }
    .knowledge__container{
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap: 3em;
        text-align: center;
    }
    .knowledge__picture{
        grid-row: 1/2;
        justify-self: center;
        width: 320px;
        height: 150px;
    }
    .testimony__container{
        grid-template-columns: 30px 1fr 30px;
    }
    .testimony__body{
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        gap: 3em;
        justify-items:center ;
    }
    .testimony__img{
        width: 200px;
        height: 200px;
        
    }
    .questions__copy{
        width: 100%;
    }
    .footer__container{
        flex-wrap: wrap;
    }
    .footer__container img{
        width: auto;
        height: 20%;
    }
    .nav--footer{
        width: 100%;
        justify-items: center;
    }
    .nav__link--footer{
        width: 100%;
        justify-content: space-evenly;
        margin: 0;
    }
    .footer__form{
        width: 100%;
        justify-content: space-evenly;
    }
    .footer__input{
        flex: 1;
    }
}

@media (max-width:600px){
    .hero__title{
        font-size: 2rem;
    }
    .hero__paragraph{
        font-size: 1rem;
    }
    .subtitle{
        font-size: 1.8rem;
    }
    .price__element{
        width: 90%;
    }
    .price__element--best{
        width: 90%;
        /* padding: 40px; */
    }
    .price__price{
        font-size: 2rem;
    }
    .testimony{
        --padding-container: 60px 0;
    }
    .testimony__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }
    /* .form-container {
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;    
    } */
    .testimony__arrow{
        width: 100%;
    }
    .testimony__course{
        margin-top: 15px;
    }
    .questions__title{
        font-size: 1rem;
    }
    .footer__title{
        justify-self: start;
        margin-bottom: 15px;
    }
    .nav--footer{
        padding-bottom: 60px;
    }
    .nav__link--footer{
        justify-content: space-between;
    }
    .footer__inputs{
        flex-wrap: wrap;
    }
    .footer__input{
        flex-basis: 100%;
        margin: 0;
        margin-bottom: 16px;
    }
    .footer__submit{
        margin-right: auto;
        margin-left: 0;
    }
}
