@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --padding-container: 100px 0;
    --color-title: #001A49;
    --color-primary: #6C63FF;
    --color-secondary: #FF6584;
    --color-background: #f5f5f5;
    --color-text: #333; 
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px;
}

.hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../Imagenes/portada.jpg');
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
    z-index: -1;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Nav */
.nav {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    box-shadow: var(--box-shadow);
}

.nav__title {
    margin-left: 20px;
    font-weight: 300;
    font-size: 1.5rem;
    color: #fff;
}

.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;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav__links:hover {
    color: var(--color-primary);
}

.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;
    animation: slideUp 1.5s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
}

.hero__paragraph {
    margin-bottom: 20px;
    font-size: 1.2rem;
    animation: fadeIn 2.5s ease-in-out;
}

/* About */
.about {
    width: 100%; /* Aseguramos que ocupe todo el ancho disponible */
    box-sizing: border-box; /* Esto asegura que el padding y los borders no afecten el ancho */
    text-align: center;
    padding: var(--padding-container);
    background-color: #fff;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: var(--box-shadow);
    animation: slideIn 1.5s ease-in-out;
    overflow: hidden; /* Para que no sobresalga nada del borde */
}


@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.subtitle {
    color: var(--color-title);
    font-size: 3rem;
    margin-bottom: 25px;
    margin-bottom: 0px;
}

.about__paragraph {
    font-size: 1.25rem;
    line-height: 1.7;
    padding: 0;
}

.about__main {
    padding-top: 40px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
}



.about__icons {
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.about__icons:hover {
    transform: translateY(-10px);
}

.about__icons img {
    width: 100%;  
    max-width: 200px; 
    height: auto; 
    object-fit: cover; 
}


.about__link {
    text-decoration: none; 
    color: inherit; 
}



/* Knowledge */
.knowledge {
    background-color: #e5e5f7;
    background-image: radial-gradient(#444cf7 0.5px, transparent 0.5px), radial-gradient(#444cf7 0.5px, #e5e5f7 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    overflow: hidden;
    padding: var(--padding-container);
    border-radius: 20px;
    margin: 20px 50px;
    box-shadow: var(--box-shadow);
    animation: slideIn 1.5s ease-in-out;
}

.knowledge__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    align-items: center;
}

.knowledege__texts{
    margin: 0px 50px;


}
.knowledge__picture {
    max-width: 500px;
    padding: 20px;
    animation: fadeIn 2s ease-in-out;
}

.knowledge__paragraph {
    line-height: 1.7;
    margin-bottom: 15px;
}

.knowledge__img {
    width: 100%;
    display: block;
    border-radius: 30px;
    transition: transform 0.3s ease;
}

.knowledge__img:hover {
    transform: scale(1.05);
}

/* Questions */
.questions {
    text-align: center;
    padding: var(--padding-container);
    background-color: #fff;
    border-radius: 20px;
    margin: 10px 0px;
    box-shadow: var(--box-shadow);
    animation: slideIn 1.5s ease-in-out;
    padding-bottom: 0px;
}

.questions__container {
    margin: 0 20px;
    padding: 10px;
    display: grid;
    gap: 2em;
    padding-top: 50px;
    padding-bottom: 100px;
}

.questions__padding {
    padding: 0;
    transition: padding .3s;
    border: 1px solid #5454D4;
    border-radius: 6px;
}

.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: var(--color-title);
    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;
    display: flex;
    flex-direction: column;
}

.questions__img {
    display: block;
}

.questions__copy {
    width: 60%;
    margin: 0 auto;
    margin-bottom: 30px;
}

/* Bot¨Žn de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button img {
    width: 35px;
    height: 35px;
}

/* Media queries */
@media (max-width: 800px) {
    .nav__menu {
        display: block;
    }

    .nav__link--menu {
        position: fixed;
        background-color: #000;
        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{
        padding: 30px 0px;


        
    }
    .about__main {
        gap: 2em;
        margin: 0px;
        margin-left: 20px;
        justify-items: center;
    }

    .about__icons:last-of-type {
        grid-column: 1/-1;
    }

    .knowledge{
        padding: 25px 0px;
        margin: 20px 10px
    }

    .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;
    }

    .questions__copy {
        width: 100%;
    }

    .knowledege__texts {
        margin: 0px;


    }

    .questions {
        padding: 40px 0px;

    }

    .map{
    height: 350px;
    }
}

@media (max-width: 600px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__paragraph {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 1.8rem;
    }

    .questions__title {
        font-size: 1rem;
    }
}