
/* =========================================
   PREPARATUENSAYO
   IDENTIDAD VISUAL COLOR2
========================================= */

:root {
    --color1: #12316B;
    --color2: #1D4ED8;
    --color3: #60A5FA;
    --color4: #EFF6FF;
    --color5: #F8FAFC;

    --text-primary: #172033;
    --text-secondary: #64748B;

    --white: #FFFFFF;
    --border: #E2E8F0;

    --success: #16A34A;

    --font-main: "Inter", sans-serif;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-card: 0 12px 35px rgba(18, 49, 107, 0.07);
    --shadow-hover: 0 18px 45px rgba(18, 49, 107, 0.12);

    --container: 1160px;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-main);
    background: var(--white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}


/* HEADER */

.header {
    width: 100%;
    height: 78px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
}

.navbar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--color1);
    white-space: nowrap;
}

.brand > span:last-child > span {
    color: var(--color2);
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--color4);
    color: var(--color2);
}

.brand-icon svg {
    width: 22px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color2);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--color1);
    cursor: pointer;
}


/* BUTTONS */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 21px;
    border-radius: var(--radius-sm);
    background: var(--color2);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--color2);
    transition: 0.2s ease;
    cursor: pointer;
}

.button:hover {
    background: var(--color1);
    border-color: var(--color1);
    transform: translateY(-2px);
}

.button svg {
    width: 16px;
}

.button-small {
    padding: 10px 16px;
}

.button-outline {
    color: var(--color1);
    background: var(--white);
    border-color: var(--border);
}

.button-outline:hover {
    color: var(--color2);
    background: var(--color4);
    border-color: var(--color3);
}


/* HERO */

.hero {
    position: relative;
    padding: 95px 0 105px;
    background:
        radial-gradient(circle at 85% 20%, #DBEAFE 0, transparent 28%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 65px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--color2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px #DCFCE7;
}

.hero h1 {
    max-width: 650px;
    margin: 22px 0;
    font-size: clamp(38px, 5vw, 59px);
    line-height: 1.13;
    letter-spacing: -2.8px;
    font-weight: 800;
    color: var(--color1);
}

.hero h1 span {
    color: var(--color2);
}

.hero-description {
    max-width: 510px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 27px;
    font-size: 12px;
    color: var(--text-secondary);
}

.hero-note svg {
    width: 17px;
    color: var(--success);
}


/* HERO VISUAL */

.hero-visual {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.study-card {
    position: relative;
    z-index: 2;
    width: min(100%, 400px);
    padding: 27px;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(18, 49, 107, 0.12);
}

.study-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.small-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
}

.study-card h3 {
    margin-top: 5px;
    color: var(--color1);
    font-size: 19px;
}

.study-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    color: var(--color2);
    background: var(--color4);
}

.study-illustration {
    height: 220px;
    margin: 24px 0;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background:
        radial-gradient(circle, #FFFFFF 0 25%, transparent 26%),
        linear-gradient(135deg, #EFF6FF, #DBEAFE);
}

.illustration-circle {
    width: 125px;
    height: 125px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color2);
    color: white;
    box-shadow: 0 15px 35px rgba(29, 78, 216, 0.25);
}

.illustration-circle svg {
    width: 65px;
    height: 65px;
}

.study-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.study-card-bottom strong,
.study-card-bottom span {
    display: block;
}

.study-card-bottom strong {
    font-size: 12px;
    color: var(--color1);
}

.study-card-bottom span {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.study-card-bottom > svg {
    color: var(--color2);
}

.visual-decoration {
    position: absolute;
    border-radius: 50%;
    background: #BFDBFE;
    opacity: 0.7;
}

.decoration-one {
    width: 190px;
    height: 190px;
    top: 10px;
    right: 0;
}

.decoration-two {
    width: 100px;
    height: 100px;
    bottom: 10px;
    left: 0;
}

.floating-tag {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    color: var(--color1);
    font-size: 11px;
    font-weight: 700;
}

.floating-tag svg {
    width: 17px;
    color: var(--color2);
}

.tag-top {
    top: 48px;
    right: -12px;
}

.tag-bottom {
    bottom: 38px;
    left: -22px;
}


/* BENEFITS */

.benefits {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--color4);
    color: var(--color2);
    flex-shrink: 0;
}

.benefit h3 {
    font-size: 13px;
    color: var(--color1);
}

.benefit p {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 11px;
}


/* GENERAL SECTIONS */

.section {
    padding: 95px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 38px;
}

.section-heading h2 {
    margin-top: 12px;
    color: var(--color1);
    font-size: clamp(25px, 3vw, 35px);
    letter-spacing: -1.2px;
    line-height: 1.25;
}

.section-heading p {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 13px;
}


/* RESOURCE CARDS */

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.resource-card {
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: 0.25s ease;
}

.resource-card:hover,
.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #BFDBFE;
}

.resource-icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    margin-bottom: 22px;
}

.resource-icon.blue {
    color: var(--color2);
    background: var(--color4);
}

.resource-icon.purple {
    color: #7C3AED;
    background: #F3E8FF;
}

.resource-icon.cyan {
    color: #0891B2;
    background: #CFFAFE;
}

.card-label {
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.resource-card h3 {
    margin: 9px 0;
    color: var(--color1);
    font-size: 17px;
}

.resource-card p {
    min-height: 70px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--color2);
    font-size: 12px;
    font-weight: 700;
}

.text-link svg {
    width: 15px;
}


/* EXAMS */

.exams-section {
    background: var(--color5);
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.exam-card {
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: 0.25s ease;
}

.exam-card.featured {
    border: 1px solid var(--color3);
    background: linear-gradient(145deg, #FFFFFF, #EFF6FF);
}

.exam-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.exam-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--color4);
    color: var(--color2);
}

.exam-tag {
    padding: 6px 9px;
    border-radius: 6px;
    background: var(--color4);
    color: var(--color2);
    font-size: 9px;
    font-weight: 800;
}

.exam-card h3 {
    color: var(--color1);
    font-size: 17px;
}

.exam-card p {
    min-height: 65px;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.8;
}

.exam-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 17px;
    margin-top: 15px;
    border-top: 1px solid var(--border);
    color: var(--color2);
    font-size: 12px;
    font-weight: 700;
}

.exam-link svg {
    width: 16px;
}


/* ABOUT */

.about-section {
    padding: 90px 24px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, #DBEAFE, transparent 45%),
        var(--white);
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
}

.about-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    background: var(--color2);
    color: white;
}

.about-icon svg {
    width: 32px;
    height: 32px;
}

.about-content h2 {
    margin: 15px 0;
    color: var(--color1);
    font-size: clamp(26px, 4vw, 39px);
    line-height: 1.25;
    letter-spacing: -1.5px;
}

.about-content p {
    max-width: 570px;
    margin: 0 auto 25px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.9;
}



/* =========================================
   FOOTER - PREPARATUENSAYO
========================================= */

.footer {
    position: relative;
    padding: 75px 0 25px;
    background: #12316B;
    color: #FFFFFF;
    overflow: hidden;
}

/* Decoración */

.footer::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -300px;
    right: 5%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
}

.footer::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -240px;
    left: 10%;
    border-radius: 50%;
    background: rgba(96,165,250,0.08);
    pointer-events: none;
}


/* CONTENIDO PRINCIPAL */

.footer-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 55px;
    padding-bottom: 55px;
}


/* MARCA */

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.footer-logo > span:last-child > span {
    color: #93C5FD;
}

.footer-logo-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    color: #BFDBFE;
}

.footer-logo-icon svg {
    width: 23px;
    height: 23px;
}

.footer-description {
    max-width: 300px;
    margin-top: 19px;
    color: #B9CBE7;
    font-size: 12px;
    line-height: 1.9;
}


/* REDES SOCIALES */

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.footer-socials a {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.17);
    border-radius: 10px;
    color: #DCEBFF;
    background: rgba(255,255,255,0.06);
    transition: 0.2s ease;
}

.footer-socials a:hover {
    background: #1D4ED8;
    border-color: #60A5FA;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.footer-socials svg {
    width: 17px;
    height: 17px;
}


/* COLUMNAS */

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.footer-column h3 {
    margin-bottom: 8px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
}

.footer-column a {
    color: #B9CBE7;
    font-size: 11px;
    line-height: 1.6;
    transition: 0.2s ease;
}

.footer-column a:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}


/* SEPARADOR */

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.14);
}


/* PARTE INFERIOR */

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 23px;
}

.footer-bottom p {
    color: #AFC2DF;
    font-size: 10px;
}

.footer-bottom strong {
    color: #FFFFFF;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-bottom-right > span {
    color: #AFC2DF;
    font-size: 10px;
}

.footer-back-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
    transition: 0.2s ease;
}

.footer-back-top:hover {
    color: #93C5FD;
}

.footer-back-top svg {
    width: 15px;
    height: 15px;
}


/* TABLETS */

@media (max-width: 900px) {

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 45px 35px;
    }

}


/* MÓVILES */

@media (max-width: 600px) {

    .footer {
        padding: 55px 0 25px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 22px;
        padding-bottom: 38px;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 340px;
    }

    .footer-column h3 {
        font-size: 12px;
    }

    .footer-column a {
        font-size: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-bottom-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .footer-bottom-right > span {
        max-width: 190px;
        line-height: 1.6;
    }

}


/* MÓVILES PEQUEÑOS */

@media (max-width: 360px) {

    .footer-main {
        gap: 32px 15px;
    }

    .footer-logo {
        font-size: 17px;
    }

    .footer-column a {
        font-size: 9px;
    }

}


.back-top {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--color4);
    color: var(--color2);
}

.back-top svg {
    width: 17px;
}


/* RESPONSIVE: TABLETS */

@media (max-width: 900px) {

    .hero-grid {
        gap: 25px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .tag-top {
        right: -5px;
    }

    .tag-bottom {
        left: -5px;
    }

    .resource-grid,
    .exam-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        gap: 18px;
    }
}


/* RESPONSIVE: MOBILE */

@media (max-width: 650px) {

    .container {
        width: calc(100% - 36px);
    }

    .header {
        height: 68px;
    }

    .brand {
        font-size: 17px;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
    }

    .menu-toggle svg {
        width: 23px;
        height: 23px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        padding: 22px 25px;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        background: white;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-card);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        font-size: 14px;
    }

    .nav-links .button {
        width: 100%;
    }

    .hero {
        padding: 65px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: clamp(37px, 10vw, 48px);
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 350px;
    }

    .study-card {
        width: 90%;
        padding: 20px;
    }

    .study-illustration {
        height: 175px;
    }

    .illustration-circle {
        width: 105px;
        height: 105px;
    }

    .tag-top {
        top: 5px;
        right: -2px;
    }

    .tag-bottom {
        bottom: 5px;
        left: -2px;
    }

    .benefits {
        padding: 27px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .section {
        padding: 65px 0;
    }

    .section-heading {
        margin-bottom: 27px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .resource-grid,
    .exam-grid {
        grid-template-columns: 1fr;
    }

    .resource-card,
    .exam-card {
        padding: 23px;
    }

    .resource-card p,
    .exam-card p {
        min-height: auto;
    }

    .about-section {
        padding: 70px 18px;
    }


    .back-top {
        margin-top: 5px;
    }

}


/* ACCESSIBILITY */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color3);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
