
/* =========================================
   GUÍA DE MATEMÁTICA M2
   PreparaTuEnsayo
========================================= */

.m2-guide-page {
    min-height: 70vh;
    background: #F8FAFC;
    color: #172033;
    font-family: 'Inter', sans-serif;
}

.m2-guide-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* HERO */

.m2-guide-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 0 76px;
    background: linear-gradient(125deg, #12316B 0%, #1D4ED8 65%, #2563EB 100%);
    color: #FFFFFF;
}

.m2-guide-hero::before,
.m2-guide-hero::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.m2-guide-hero::before {
    width: 420px;
    height: 420px;
    top: -220px;
    right: -110px;
}

.m2-guide-hero::after {
    width: 300px;
    height: 300px;
    right: 80px;
    bottom: -230px;
}

.m2-guide-breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.m2-guide-breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

.m2-guide-breadcrumb a:hover {
    color: #FFFFFF;
}

.m2-guide-breadcrumb span:last-child {
    color: #FFFFFF;
    font-weight: 600;
}

.m2-guide-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.m2-guide-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 23px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.13);
}

.m2-guide-icon svg {
    width: 27px;
    height: 27px;
}

.m2-guide-eyebrow,
.m2-guide-section-label {
    display: inline-block;
    color: #BFDBFE;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.m2-guide-hero h1 {
    margin: 12px 0 15px;
    color: #FFFFFF;
    font-size: clamp(30px, 5vw, 45px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.m2-guide-hero-content > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.8;
}

.m2-guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.m2-guide-tags span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
}

.m2-guide-tags svg {
    width: 14px;
    height: 14px;
}

/* CONTENIDO GENERAL */

.m2-guide-content {
    padding: 55px 0 75px;
}

/* INTRODUCCIÓN */

.m2-guide-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 55px;
}

.m2-guide-intro > div:first-child {
    max-width: 750px;
}

.m2-guide-intro .m2-guide-section-label,
.m2-guide-section-heading .m2-guide-section-label,
.m2-guide-method-heading .m2-guide-section-label,
.m2-guide-tips .m2-guide-section-label {
    color: #2563EB;
}

.m2-guide-intro h2,
.m2-guide-section-heading h2 {
    margin: 9px 0 9px;
    color: #172033;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.m2-guide-intro p,
.m2-guide-section-heading p {
    margin: 0;
    color: #64748B;
    font-size: 13px;
    line-height: 1.8;
}

.m2-guide-intro-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border: 1px solid #DBEAFE;
    border-radius: 20px;
    background: #EFF6FF;
    color: #2563EB;
}

.m2-guide-intro-icon svg {
    width: 34px;
    height: 34px;
}

/* ENCABEZADOS */

.m2-guide-section-heading {
    margin-bottom: 23px;
}

.m2-guide-section-heading h2 {
    margin-top: 8px;
}

.m2-guide-section-heading p {
    max-width: 650px;
}

/* TARJETAS DE CONTENIDO */

.m2-guide-topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.m2-guide-topic {
    min-width: 0;
    padding: 23px;
    border: 1px solid #E2E8F0;
    border-radius: 13px;
    background: #FFFFFF;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.m2-guide-topic:hover {
    transform: translateY(-3px);
    border-color: #BFDBFE;
    box-shadow: 0 9px 25px rgba(15, 23, 42, 0.05);
}

.m2-guide-topic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.m2-guide-topic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: #EFF6FF;
    color: #2563EB;
}

.m2-guide-topic-icon svg {
    width: 21px;
    height: 21px;
}

.m2-guide-topic-number {
    color: #CBD5E1;
    font-size: 22px;
    font-weight: 800;
}

.m2-guide-topic h3 {
    margin: 0 0 9px;
    color: #172033;
    font-size: 17px;
    font-weight: 800;
}

.m2-guide-topic > p {
    min-height: 66px;
    margin: 0;
    color: #64748B;
    font-size: 12px;
    line-height: 1.8;
}

.m2-guide-topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 19px;
}

.m2-guide-topic-tags span {
    padding: 7px 9px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    background: #F8FAFC;
    color: #64748B;
    font-size: 10px;
    font-weight: 600;
}

/* MÉTODO DE ESTUDIO */

.m2-guide-method {
    margin-top: 55px;
    padding: 30px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: #FFFFFF;
}

.m2-guide-method-heading {
    max-width: 700px;
    margin-bottom: 28px;
}

.m2-guide-method-heading h2 {
    margin: 9px 0;
    color: #172033;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.m2-guide-method-heading p {
    margin: 0;
    color: #64748B;
    font-size: 12px;
    line-height: 1.8;
}

.m2-guide-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px;
}

.m2-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.m2-guide-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #EFF6FF;
    color: #1D4ED8;
    font-size: 11px;
    font-weight: 800;
}

.m2-guide-step h3 {
    margin: 2px 0 6px;
    color: #172033;
    font-size: 13px;
    font-weight: 750;
}

.m2-guide-step p {
    margin: 0;
    color: #64748B;
    font-size: 11px;
    line-height: 1.75;
}

/* RECOMENDACIÓN */

.m2-guide-tips {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-top: 20px;
    padding: 24px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
}

.m2-guide-tips-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #EFF6FF;
    color: #2563EB;
}

.m2-guide-tips-icon svg {
    width: 21px;
    height: 21px;
}

.m2-guide-tips h2 {
    margin: 6px 0 7px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.m2-guide-tips p {
    max-width: 750px;
    margin: 0;
    color: #64748B;
    font-size: 12px;
    line-height: 1.8;
}

/* AVISO */

.m2-guide-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    background: #EFF6FF;
}

.m2-guide-notice > svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #2563EB;
}

.m2-guide-notice p {
    margin: 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.8;
}

/* CTA */

.m2-guide-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 35px;
    padding: 30px;
    border-radius: 14px;
    background: linear-gradient(115deg, #12316B 0%, #1D4ED8 100%);
    color: #FFFFFF;
}

.m2-guide-cta-content {
    max-width: 590px;
}

.m2-guide-cta-content > span {
    color: #BFDBFE;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.m2-guide-cta h2 {
    margin: 9px 0;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.m2-guide-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.8;
}

.m2-guide-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    flex-shrink: 0;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #FFFFFF;
    color: #1D4ED8;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.m2-guide-cta-button:hover {
    transform: translateY(-2px);
    background: #EFF6FF;
}

.m2-guide-cta-button svg {
    width: 15px;
    height: 15px;
}

/* VOLVER */

.m2-guide-back {
    margin-top: 30px;
}

.m2-guide-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1D4ED8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.m2-guide-back a:hover {
    color: #12316B;
}

.m2-guide-back svg {
    width: 16px;
    height: 16px;
}

/* RESPONSIVE */

@media (max-width: 760px) {
    .m2-guide-hero {
        padding: 23px 0 58px;
    }

    .m2-guide-breadcrumb {
        margin-bottom: 35px;
        font-size: 10px;
    }

    .m2-guide-content {
        padding: 40px 0 55px;
    }

    .m2-guide-topics {
        grid-template-columns: 1fr;
    }

    .m2-guide-topic > p {
        min-height: auto;
    }

    .m2-guide-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .m2-guide-steps {
        gap: 20px;
    }
}

@media (max-width: 520px) {
    .m2-guide-container {
        width: min(100% - 30px, 1120px);
    }

    .m2-guide-hero h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .m2-guide-hero-content > p {
        font-size: 13px;
    }

    .m2-guide-intro {
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 40px;
    }

    .m2-guide-intro h2,
    .m2-guide-section-heading h2 {
        font-size: 21px;
    }

    .m2-guide-intro-icon {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    .m2-guide-intro-icon svg {
        width: 23px;
        height: 23px;
    }

    .m2-guide-topic {
        padding: 19px;
    }

    .m2-guide-method {
        margin-top: 40px;
        padding: 20px;
    }

    .m2-guide-method-heading h2 {
        font-size: 20px;
    }

    .m2-guide-steps {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .m2-guide-tips {
        padding: 18px;
        gap: 12px;
    }

    .m2-guide-cta {
        padding: 23px;
    }

    .m2-guide-cta h2 {
        font-size: 20px;
    }

    .m2-guide-cta-button {
        width: 100%;
    }
}
