@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root{
    --padding-container: 100px 0;
    --color-title: #001A49;
    --primary-color: #ffb6c1; 
    --secondary-color: #f8c8dc; 
    --accent-color: #ff69b4; 
    --text-color: #4a4a4a; 
    --bg-color: #fff0f5; 
    --btn-hover: #ff85a2;
}

body{
    font-family: 'Poppins', sans-serif;
}

.container{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 40px 0;  /* Reducido de 60px */

}

.hero{
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color: #fff;
    
}

.hero::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../images/header.webp');
    background-size: cover;
    clip-path: polygon(100% 0, 100% 81%, 50% 95%, 0 81%, 0 0);
    z-index: -1;
}

.nav{
    --padding-container:0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav__title{
    font-weight: 300;
}

.nav__items{
    list-style: none;
}

.nav__link{
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}
.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);
}

.nav__links:hover {
    color: #9b51e0;
}

.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;
    color: #fff;
}

.hero__paragraph{
    margin-bottom: 20px;
    width: 80%;
    margin: 0 auto;
    line-height: 1.5;
    font-size: 1.5rem;
    padding-bottom: 1rem;
}

.hero__title, .hero__paragraph {
    opacity: 0; 
    animation: fadeIn 2s forwards; 
  }
  
.hero__title {
    animation-delay: 0.5s; 
  }
  
  .hero__paragraph {
    animation-delay: 1.5s; 
  }
  
  @keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

.cta{
    display: inline-block;
    background-color: #9b51e0;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
    font-size: 1.2rem;
}

.cta:hover {
    background-color: #7905e6;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cta_inicio{
    display: inline-block;
    background-color: #9b51e0;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeIn 2s, slideIn 1s forwards;
    animation-delay: 1.5s;
}

.cta_inicio:hover {
    background-color: #7905e6;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    0% {
      transform: translateY(-30px);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

.about{
    text-align: center;

}

.subtitle{
    color: var(--color-title);
    font-size: 2.5rem;
    margin-bottom: 25px;  /* Reducido de 40px */
    font-weight: bold;
    position: relative;
    
}

.about__pragraph{
    line-height: 1.7;
}

.about__icons{
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto ;
}

.about__main{
    padding-top: 30px;  /* Reducido de 50px */
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1rem;  /* Reducido de 2rem */
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
}

.about__icon{
    margin: 0 auto;
    width: 50px;
    height: 50px;

}

.knowledge {
    background-color: #fcf6f8; 
    overflow: hidden;
    padding: 40px 0;  /* Reducido de 60px */
}

.knowledge__container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;  /* Reducido de 4rem */
    align-items: center;
    padding: 0 1rem;

}

.knowledge__picture {
    width: 100%;
    max-width: 450px; 
    height: 450px; 
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.knowledge__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.line {
    width: 100px;
    height: 3px;
    background-color: #9b51e0; 
    margin-bottom: 10px;
}

.highlight {
    color: #001A49; 
}

.knowledge__paragraph{
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.price{
    text-align: center;
    background-size: contain; 
    background-position: center; 
    background-repeat: no-repeat; 
    padding: 50px 20px;
    padding-bottom: 40px;  /* Reducido de 60px */
    
}

.price__promo {
    text-align: center;
    color: var(--color-title);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.price__table{
    padding-top: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;  /* Reducido de 3rem */
    justify-content: space-evenly;
    align-items: center;
}

.price__element{
    position: relative;
    overflow: hidden;
    background-color: #e5e5f7;
    text-align: center;
    border-radius: 10px;
    width: 330px;
    padding: 40px 20px;  /* Reducido de 60px 30px */
    --color-plan: #696871;
    --color-price: #1d293f;
    --bg-cta: #fff;
    --color-cta: #5454d4;
    --color-items:#696871;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}

.price__element:hover{
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s, box-shadow 0.3s;
}

.price__name{
    color: var(--color-plan);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.5rem;

}

.price__price{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 2.5rem;
    color: var(--color-price);
}

.discount__badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #ff4444;
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Animación para el badge de descuento */
@keyframes pulse {
    0% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.05); }
    100% { transform: rotate(45deg) scale(1); }
}

.discount__badge {
    animation: pulse 2s infinite;
}

.price__original {
    display: block;
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #666;
    margin-bottom: 0.5rem;
}

.price__note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 2rem;
    font-style: italic;
}

.price__items{
    margin-top: 35px;
    display: grid;
    gap: 1em;
    font-weight: 300;
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--color-items);
    
}

.price__cta{
    display: block;
    padding: 20px 0;
    border-radius: 10px;
    text-decoration: none;
    background-color: var(--bg-cta);
    font-weight: 600;
    color: var(--color-cta);
    box-shadow:  0 0 1px rgb(0, 0, 0, .5);
}

.price__element--best{

    width: 370px;
    padding: 60px 40px;
    background-color: #ff7143;
    --color-plan:rgb(255 255 255 / 75%);
    --color-price: #fff; 
    --bg-cta: #9f3919;
    --color-cta: #fff;
    --color-items: #fff;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: scalePulse 1.5s ease-in-out infinite;
}

.price__element--best:hover {
    animation-play-state: paused;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    transform: scale(1.05);
}

@keyframes scalePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.testimony{
    background-color: #ffffff;
    padding: 40px 0;  /* Reducido de 60px */
}

.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;
    background-color: #b8b2f5;
    border-radius: 20px; 
    padding: 1rem; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.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__review {
    font-size: 1rem;
    line-height: 1.6;
    color: #141414; 
    
}

.testimony__course{
    
    color:  #9b51e0;
    font-size: 0.5em;
    display:block;
    font-weight: 500;
    font-style: italic;
    padding: 5px;
}

.testimony__arrow{
    width: 80%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.testimony__arrow:hover {
    transform: scale(1.1);
}

.questions{
    text-align: center;
}

.questions__container{
    display: grid;
    gap: 2em;
    padding-top: 50px;
    padding-bottom: 50px;
}

.questions__paragraph{
    font-size: 1.2rem;
}

.questions__padding{
    padding: 20px 30px;  /* Reducido de 40px 60px */
    transition: padding .2s;
    border: 1px solid #5454d4;
    border-radius: 6px;
}

.questions__padding--add{
    padding-bottom: 30px;
}

.questions__answer{
    padding: 0 30px 0;
    overflow: hidden;
}

.questions__title{
    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: var(--color-title);
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    transition: transform .3s;

}

.questions__arrow--rotate{
    transform: rotate(180deg);
}

.questions__show{
    text-align: left;
    height: 0;
    transition: height .3s;
}

.questions__img{
    display: block;
}

.footer{
    background-color: #001a49;
    padding: 40px 0;  /* Reducido de 60px */
}

.footer__title{
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 30px;
}

.footer__title, .footer__newsletter{
    color: #fff;
}

.footer__container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;  /* Reducido de 3rem */
    border-bottom: 1px solid #fff;
    padding-bottom: 60px;
}

.nav--footer{
    padding: 1rem;
    display: grid;
    gap: 1em;
    grid-auto-flow: row;
    height: 100%;
}

.nav__link--footer{
    display: flex;
    margin: 0;
    margin-right: 20px;
    flex-wrap: wrap;
}

.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__copy{
    --padding--container: 30px 0;
    text-align: center;
    color: #fff;
}

.footer__copyright{
    font-weight: 300;
}

.footer__social {
    display: flex;
    justify-content: center; 
    gap: 1rem; 
    padding: 1rem 
}

.footer__icons {
    display: inline-block;
    transition: transform 0.3s ease; 
}

.footer__img {
    width: 24px; 
    height: 24px; 
}

.footer__icons:hover {
    transform: scale(1.1); 
}

.footer__img{
    width: 30px;
}

/* Timeline styles */
.timeline {
    position: relative;
    margin: 1.5rem 0;  /* Reducido de 2rem */
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--color-title);
    border-radius: 12px;
}

.timeline__item {
    position: relative;
    margin-bottom: 1.5rem;  /* Reducido de 2rem */
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: -2.3rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--color-title);
    border-radius: 50%;
}

.timeline__content {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline__content h3 {
    margin: 0;
    color: var(--color-title);
    font-size: 1.1rem;
}

.timeline__content p {
    margin: 0.5rem 0;
    color: #666;
}

.timeline__date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-title);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline__item::before {
        left: -1.8rem;
    }
}

@media (max-width:800px){
    .nav__menu{
        display: block;
    }
    .nav__link--menu{
        position: fixed;
        background-color: rgba(0, 0, 0, 0.95);
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        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;
        right: 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{
        text-align: center;
    }

    
    
    .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;
    }

    .nav--footer{
        width: 100%;
        justify-items: center;
        justify-content: center;
    }

    .footer__container{
        justify-content: 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%;
    }

    .price__price{
        font-size: 2rem;
    }
    
    .testimony{
        --padding-container: 60px 0;
    }

    .testimony__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .8em;
    }

    .testimony__arrow{
        width: 100%;
    }

    .testimony__course{
        margin-top: 15px;
    }
    
    .questions__title{
        font-size: 1rem;
    }

    .footer__title{
        justify-self: center;
        margin-bottom: 15px;
    }

    .nav--footer{
        padding-bottom: 60px;
        justify-items: center;
        justify-content: center;
    }

    .nav__link--footer{
        justify-content: center;
    }

    .footer__container{
        justify-content: center;
    }

    .footer__inputs{
        flex-wrap: wrap;
    }

    .footer__input{
        flex-basis: 100%;
        margin: 0;
        margin-bottom: 16px;
    }

    .footer__submit{
        margin-right: auto;
        margin-left: 0;
    }
}
    .about__paragraph{
        font-size: 1.4rem;
    }
    .hero__paragraph{
        font-size: 1.4rem;
        
    }
    /* Boton Whatsapp */
    .logo-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 75px;
        height: 75px;
        background-color: #25D366; 
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); 
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        cursor: pointer;
    }
    
    .logo-container:hover {
        transform: scale(1.1); 
        box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
    }
    
    .logo-container svg {
        width: 50px;
        height: 50px;
        fill: white; 
    }

    .contact {
        padding: 2rem;
        text-align: center;
    }
    
    .contact__paragraph {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .contact__form {
        max-width: 600px;
        margin: 0 auto;
        padding: 1rem;
        background: #fcf6f8;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .contact__input-group {
        margin-bottom: 1rem;  /* Reducido de 1.5rem */
        text-align: left;
    }
    
    .contact__label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: bold;
        color: #001A49;
        font-size: 1.2rem;
    }
    
    .contact__input, .contact__textarea {
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #9b51e0;
        border-radius: 5px;
        font-size: 1rem;
    }

    .contact__input:focus, .contact__textarea:focus {
        border-color: #007BFF; 
        outline: none; 
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }
    
    .contact__textarea {
        resize: vertical;
        min-height: 150px;
    }
    
    .contact__button {
        background-color: #9b51e0;
        color: white;
        padding: 1rem 2rem;
        border: none;
        border-radius: 32px;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
        font-size: 1.2rem;
    }
    
    .contact__button:hover {
        background-color: #7905e6;

    }

    /*Pruebas*/
   
    @media (max-width: 1024px) {
        .knowledge__container {
            grid-template-columns: 1fr; 
            gap: 2rem; 
        }
    
        .knowledge__picture {
            height: 400px;
            max-width: 400px; 
        }
    }
    
    @media (max-width: 768px) {
        .knowledge__picture {
            height: 300px;
            max-width: 300px; 
        }
        .line{
            margin: 0 auto 10px;
        }
    }
    
    @media (max-width: 480px) {
        .knowledge__picture {
            height: 250px;
            max-width: 250px; 
        }
    }

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-50px); 
    transition: all 1s;
  }
  
.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0); 
  }

.contact__wrapper {
    display: flex;
    gap: 1.5rem;  /* Reducido de 2rem */
    margin-top: 1.5rem;  /* Reducido de 2rem */
}

.contact__form {
    flex: 1;
}

.contact__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.contact__details {
    background-color: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
}

.contact__details h3 {
    margin-bottom: 1rem;
    color: var(--color-title);
}

.contact__details p {
    margin-bottom: 0.5rem;
}

.contact__details ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 1rem 0;
}

.contact__details li {
    margin-bottom: 0.25rem;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .contact__wrapper {
        flex-direction: column;
    }

    .contact__info {
        margin-top: 2rem;
    }
}