@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --padding-container: 100px 0;

    /* New Color Palette */
    --color-primary: #1e3a8a;
    /* Deep Royal Blue */
    --color-secondary: #0ea5e9;
    /* Sky Blue */
    --color-accent: #f59e0b;
    /* Amber */
    --color-accent-hover: #d97706;

    --color-bg-light: #f8fafc;
    /* Light Slate */
    --color-bg-white: #ffffff;

    --color-text-main: #334155;
    /* Slate 700 */
    --color-text-heading: #0f172a;
    /* Slate 900 */
    --color-text-light: #f1f5f9;

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(189, 183, 183, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    margin: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--color-text-heading);
}

/* Nav */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    color: rgb(13, 13, 216);
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav__title {
    font-size: 1.2rem;
    margin: auto;
    font-weight: 700;
    line-height: 1.2;
}

.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: rgb(23, 23, 179);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.nav__links:hover {
    color: var(--color-accent);
}

.nav__menu {
    margin-left: auto;
    cursor: pointer;
    display: none;
}

.nav__img {
    display: block;
    width: 30px;
    filter: invert(1);
    /* Make white if icon is black */
}

.nav__close {
    display: var(--show, none);
}

.nav__logo {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.Linea {
    background: var(--color-accent);
    height: 35px;
    width: 3px;
    border-radius: 30px;
}

.logo-img img {
    height: 40px;
    width: auto;
}

/* Hero container */

.hero__container {
    padding: 10rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    gap: 1.5rem;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url(../imagenes/foto_grupal_portada.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: white;
    text-align: center;
}

.hero__title {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
}

.hero__paragraph {
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text-heading);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
    color: white;
}

/* About */

.about {
    padding: 7rem 2rem;
    text-align: center;
    background-color: var(--color-bg-white);
}

.subtitle {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about__main {
    padding-top: 3rem;
    display: grid;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.about__icons {
    padding: 2rem;
    background: var(--color-bg-light);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__icons:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about__icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.about__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.about__paragrah {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Knowledge */

.knowledge {
    padding: 5rem 2rem;
    background-color: var(--color-bg-light);
    /* Subtle pattern */
    background-image: radial-gradient(var(--color-primary) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 1;
}

.knowledge__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.knowledge__paragraph {
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

.knowledge__img {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.btn-secundary {
    background: var(--color-secondary);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
    display: inline-block;
}

.btn-secundary:hover {
    background: #0284c7;
    /* Darker sky blue */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.5);
}

/* Price */

.price {
    padding: 5rem 2rem;
    text-align: center;
    background-color: var(--color-bg-white);
}

.price__table {
    padding-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.price__element {
    background-color: var(--color-bg-light);
    text-align: center;
    border-radius: 20px;
    width: 300px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
    border: 1px solid #e2e8f0;
}

.price__element:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.price__element--best {
    width: 340px;
    padding: 4rem 2rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    position: relative;
    z-index: 10;
}

.price__element--best .price__name,
.price__element--best .price__price,
.price__element--best .price__items {
    color: white;
}

.price__name {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price__price {
    font-size: 2.5rem;
    color: var(--color-text-heading);
    margin: 0 0 1.5rem 0;
}

.price__items {
    margin-bottom: 2rem;
    display: grid;
    gap: 1rem;
    font-size: 1rem;
    color: var(--color-text-main);
}

.price__cta {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    background-color: var(--color-secondary);
    font-weight: 600;
    color: white;
    transition: background 0.3s;
}

.price__element--best .price__cta {
    background-color: var(--color-accent);
    color: var(--color-text-heading);
}

.price__cta:hover {
    filter: brightness(1.1);
}

/* Testimony */

.testimony {
    padding: 5rem 2rem;
    background-color: #f1f5f9;
}

.testimony__container {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.testimony__body {
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
}

.testimony__body--show {
    pointer-events: unset;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.testimony__img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-secondary);
    box-shadow: var(--shadow-card);
}

.testimony__course {
    color: var(--color-secondary);
    font-weight: 600;
}

.testimony__review {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-main);
}

.testimony__arrow {
    width: 40px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.testimony__arrow:hover {
    opacity: 1;
}

/* Questions */

.questions {
    padding: 5rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.questions__container {
    display: grid;
    gap: 1.5rem;
    padding-top: 2rem;
}

.questions__padding {
    padding: 0;
    transition: padding .3s;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.questions__padding--add {
    padding-bottom: 20px;
    border-color: var(--color-secondary);
}

.questions__answer {
    padding: 0 2rem;
    overflow: hidden;
}

.questions__title {
    text-align: left;
    display: flex;
    font-size: 1.1rem;
    padding: 1.5rem 0;
    cursor: pointer;
    color: var(--color-text-heading);
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.questions__arrow {
    border-radius: 50%;
    background-color: var(--color-secondary);
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .3s;
}

.questions__arrow img {
    width: 12px;
    filter: brightness(0) invert(1);
}

.questions__arrow--rotate {
    transform: rotate(180deg);
}

.questions__show {
    text-align: left;
    height: 0;
    transition: height .3s;
    color: var(--color-text-main);
    line-height: 1.6;
}

/* Contacto */

.contact-section {
    padding: 5rem 2rem;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url(../imagenes/Contacto-section.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    color: white;
    text-align: center;
    max-width: 1000px;
    margin: 3rem auto;
}

.contact-section h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: white;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--color-secondary);
    background: white;
}

#contact-form button {
    background: var(--color-accent);
    border: none;
    color: var(--color-text-heading);
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
}

#contact-form button:hover {
    background: var(--color-accent-hover);
    color: white;
    transform: translateY(-2px);
}

/* Sobre nosotros */

.about-section {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--color-bg-white);
    color: var(--color-text-main);
}

.about-section h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

.about-img {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.about__img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
    border: 4px solid white;
}

.about__img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* Footer */

.footer {
    padding: 3rem 2rem;
    background-color: var(--color-primary);
    color: white;
    margin-top: 3rem;
}

.footer__copy {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer__copy p {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.footer__icons {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__icons:hover {
    background: var(--color-secondary);
}

.footer__img {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.footer__copyright {
    font-size: 0.9rem;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 2rem;
}

/* Media queries */

@media (max-width: 800px) {
    .nav__menu {
        display: block;
    }

    .nav__link--menu {
        position: fixed;
        background-color: var(--color-text-heading);
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .5s opacity;
    }

    .nav__link--show {
        --show: block;
        opacity: 1;
        pointer-events: unset;
    }

    .nav__close {
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        cursor: pointer;
        filter: invert(1);
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .knowledge__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .knowledge__paragraph {
        text-align: center;
    }

    .testimony__container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimony__arrow {
        display: none;
        /* Hide arrows on mobile if swipe not implemented, or adjust layout */
    }

    .testimony__body {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}

@media (max-width: 600px) {
    .hero__title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 2rem;
    }

    .price__element,
    .price__element--best {
        width: 100%;
    }
}