/* ==========================================================
   ANTES DE QUE PASE — LANDING MLDATA
   Estilos aislados mediante el prefijo .adqp
   ========================================================== */

.adqp {
    --adqp-navy: #071a2d;
    --adqp-blue: #0d6efd;
    --adqp-blue-dark: #084298;
    --adqp-red: #c73545;
    --adqp-cream: #f7f4ee;
    --adqp-warm: #e9d9c5;
    --adqp-ink: #17212b;
    --adqp-muted: #5d6873;
    --adqp-line: rgba(7, 26, 45, 0.13);
    --adqp-white: #ffffff;

    color: var(--adqp-ink);
    background: var(--adqp-white);
    font-family: "Montserrat", sans-serif;
    overflow: clip;
}

.adqp *,
.adqp *::before,
.adqp *::after {
    box-sizing: border-box;
}

.adqp section {
    position: relative;
    padding: 6rem 0;
}

.adqp-container-narrow {
    max-width: 850px;
}

.adqp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    color: var(--adqp-red);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.adqp-eyebrow::before {
    width: 2rem;
    height: 2px;
    background: currentColor;
    content: "";
}

.adqp-heading {
    max-width: 850px;
    margin: 0 0 1.25rem;
    color: var(--adqp-navy);
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.adqp-copy {
    color: var(--adqp-muted);
    font-family: "Roboto Slab", serif;
    font-size: 1.08rem;
    line-height: 1.85;
}

.adqp-btn {
    display: inline-flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 0.4rem;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.adqp-btn:hover {
    transform: translateY(-2px);
}

.adqp-btn:focus-visible {
    outline: 3px solid #ffca2c;
    outline-offset: 4px;
}

.adqp-btn-primary {
    border-color: var(--adqp-red);
    background: var(--adqp-red);
    color: var(--adqp-white);
}

.adqp-btn-primary:hover {
    border-color: #a92735;
    background: #a92735;
    color: var(--adqp-white);
}

.adqp-btn-light {
    border-color: rgba(255, 255, 255, 0.7);
    background: transparent;
    color: var(--adqp-white);
}

.adqp-btn-light:hover {
    border-color: var(--adqp-white);
    background: var(--adqp-white);
    color: var(--adqp-navy);
}


/* HERO ==================================================== */

.adqp-hero {
    min-height: 760px;
    display: flex;
    align-items: center;
    padding: 9rem 0 6rem;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(54, 120, 184, 0.28),
            transparent 32%
        ),
        linear-gradient(135deg, #061727 0%, #0a2944 62%, #123f62 100%);
    color: var(--adqp-white);
}

.adqp-hero::after {
    position: absolute;
    right: -10rem;
    bottom: -14rem;
    width: 32rem;
    height: 32rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

.adqp-hero .adqp-eyebrow {
    color: #f3bdc3;
}

.adqp-hero-title {
    max-width: 760px;
    margin-bottom: 1.25rem;
    color: var(--adqp-white);
    font-size: clamp(3.2rem, 7vw, 6.4rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.92;
}

.adqp-hero-subtitle {
    max-width: 700px;
    margin-bottom: 1.35rem;
    color: var(--adqp-white);
    font-family: "Roboto Slab", serif;
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
    line-height: 1.45;
}

.adqp-topics {
    max-width: 720px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.8;
}

.adqp-hero-description {
    max-width: 690px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.83);
    font-family: "Roboto Slab", serif;
    font-size: 1.04rem;
    line-height: 1.75;
}

.adqp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.adqp-hero-visual {
    position: relative;
    max-width: 440px;
    min-height: 500px;
    margin-left: auto;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.5rem;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.035)
        );
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.adqp-hero-visual::before {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    content: "";
}

.adqp-visual-small {
    margin-top: 5rem;
    color: #f3bdc3;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.adqp-visual-quote {
    margin: 2rem 0;
    color: var(--adqp-white);
    font-family: "Roboto Slab", serif;
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    font-weight: 300;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.adqp-visual-line {
    width: 4rem;
    height: 3px;
    margin: 2rem 0;
    background: var(--adqp-red);
}

.adqp-visual-closing {
    max-width: 280px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.7;
}


/* PROBLEMA Y PAUSA ======================================== */

.adqp-problem {
    background: var(--adqp-cream);
}

.adqp-problem-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.adqp-problem-statement {
    padding-left: 2rem;
    border-left: 4px solid var(--adqp-red);
}

.adqp-hook {
    background: var(--adqp-white);
    text-align: center;
}

.adqp-hook-card {
    max-width: 960px;
    margin: auto;
    padding: clamp(2.5rem, 6vw, 5rem);
    border: 1px solid var(--adqp-line);
    border-radius: 1.5rem;
}

.adqp-hook-quote {
    margin-bottom: 0.6rem;
    color: var(--adqp-navy);
    font-family: "Roboto Slab", serif;
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    font-weight: 300;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.adqp-hook-followup {
    color: var(--adqp-red);
    font-family: "Roboto Slab", serif;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.5;
}

.adqp-hook-question {
    max-width: 650px;
    margin: 2.5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--adqp-line);
    color: var(--adqp-navy);
    font-weight: 700;
}


/* APRENDIZAJE ============================================= */

.adqp-learning {
    background: #f8fafc;
}

.adqp-learning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.adqp-learning-item {
    position: relative;
    min-height: 150px;
    padding: 1.65rem 1.65rem 1.65rem 4rem;
    border: 1px solid var(--adqp-line);
    border-radius: 0.9rem;
    background: var(--adqp-white);
    color: var(--adqp-ink);
    line-height: 1.7;
}

.adqp-learning-number {
    position: absolute;
    top: 1.55rem;
    left: 1.45rem;
    color: var(--adqp-red);
    font-weight: 700;
}


/* ESCALADA ================================================ */

.adqp-escalation {
    background: var(--adqp-navy);
    color: var(--adqp-white);
}

.adqp-escalation .adqp-heading {
    color: var(--adqp-white);
}

.adqp-escalation .adqp-copy {
    color: rgba(255, 255, 255, 0.7);
}

.adqp-sequence {
    display: grid;
    grid-template-columns: repeat(9, minmax(90px, 1fr));
    margin: 3rem 0;
    overflow-x: auto;
    padding: 0.4rem 0 1.25rem;
}

.adqp-sequence-step {
    position: relative;
    min-width: 108px;
    padding: 2.7rem 0.6rem 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.73rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.adqp-sequence-step::before {
    position: absolute;
    top: -0.55rem;
    left: calc(50% - 0.5rem);
    width: 1rem;
    height: 1rem;
    border: 3px solid var(--adqp-navy);
    border-radius: 50%;
    background: var(--adqp-red);
    content: "";
}

.adqp-escalation-closing {
    max-width: 760px;
    margin: auto;
    color: var(--adqp-white);
    font-family: "Roboto Slab", serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.5;
    text-align: center;
}


/* RECURSO Y REGISTRO ====================================== */

.adqp-resource {
    background: var(--adqp-cream);
}

.adqp-resource-card {
    padding: clamp(2rem, 4vw, 4rem);
    border-radius: 1.25rem;
    background: var(--adqp-white);
    box-shadow: 0 1.5rem 4rem rgba(7, 26, 45, 0.08);
}

.adqp-resource-cover {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.2rem;
    border-radius: 0.75rem;
    background:
        linear-gradient(
            155deg,
            var(--adqp-navy),
            #164f75
        );
    box-shadow: 1rem 1.25rem 0 var(--adqp-warm);
    color: var(--adqp-white);
}

.adqp-resource-brand {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.adqp-resource-title {
    font-family: "Roboto Slab", serif;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.18;
}

.adqp-resource-count {
    color: #f3bdc3;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.adqp-registration {
    background: #edf2f6;
}

.adqp-form-card {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--adqp-line);
    border-radius: 1.25rem;
    background: var(--adqp-white);
    box-shadow: 0 1.5rem 4rem rgba(7, 26, 45, 0.08);
}

.adqp .form-control {
    min-height: 3.55rem;
    border: 1px solid #b8c2cc;
    border-radius: 0.4rem;
}

.adqp .form-control:focus,
.adqp .form-check-input:focus {
    border-color: var(--adqp-blue);
    box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.18);
}

.adqp .form-check-input {
    margin-top: 0.28rem;
}

.adqp-consent {
    color: var(--adqp-muted);
    font-size: 0.87rem;
    line-height: 1.55;
}

.adqp-event-card {
    height: 100%;
    padding: 2rem;
    border-radius: 1.25rem;
    background: var(--adqp-navy);
    color: var(--adqp-white);
}

.adqp-event-row {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.adqp-event-row:last-child {
    border-bottom: 0;
}

.adqp-event-label {
    display: block;
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* FILOSOFÍA Y PRINCIPIOS ================================== */

.adqp-philosophy {
    background: var(--adqp-white);
}

.adqp-philosophy-highlight {
    padding: 2rem;
    border-left: 4px solid var(--adqp-red);
    background: var(--adqp-cream);
    color: var(--adqp-navy);
    font-family: "Roboto Slab", serif;
    font-size: 1.35rem;
    line-height: 1.6;
}

.adqp-principles {
    background: var(--adqp-navy);
}

.adqp-principles .adqp-heading {
    color: var(--adqp-white);
}

.adqp-principles-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.16);
}

.adqp-principle {
    min-height: 220px;
    padding: 2rem 1.4rem;
    background: var(--adqp-navy);
}

.adqp-principle-number {
    color: #f3bdc3;
    font-size: 0.75rem;
    font-weight: 700;
}

.adqp-principle h3 {
    margin: 2.5rem 0 0.8rem;
    color: var(--adqp-white);
    font-size: 1.2rem;
}

.adqp-principle p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-family: "Roboto Slab", serif;
    font-size: 0.92rem;
    line-height: 1.65;
}


/* GUÍA, FAQ Y CIERRE ====================================== */

.adqp-guide {
    background: var(--adqp-cream);
}

.adqp-guide-panel {
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--adqp-line);
    border-radius: 1.25rem;
    background: var(--adqp-white);
}

.adqp-guide-name {
    color: var(--adqp-navy);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.adqp-faq {
    background: var(--adqp-white);
}

.adqp .accordion-item {
    border-color: var(--adqp-line);
}

.adqp .accordion-button {
    padding: 1.35rem;
    color: var(--adqp-navy);
    font-weight: 700;
}

.adqp .accordion-button:not(.collapsed) {
    background: var(--adqp-cream);
    color: var(--adqp-navy);
    box-shadow: none;
}

.adqp .accordion-body {
    color: var(--adqp-muted);
    font-family: "Roboto Slab", serif;
    line-height: 1.75;
}

.adqp-final {
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(54, 120, 184, 0.26),
            transparent 32%
        ),
        var(--adqp-navy);
    color: var(--adqp-white);
    text-align: center;
}

.adqp-final .adqp-heading {
    margin-right: auto;
    margin-left: auto;
    color: var(--adqp-white);
}

.adqp-final-copy {
    max-width: 720px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Roboto Slab", serif;
    font-size: 1.1rem;
    line-height: 1.75;
}

.adqp-master-phrase {
    margin-top: 3rem;
    color: #f3bdc3;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* RESPONSIVE ============================================== */

@media (max-width: 991.98px) {
    .adqp section {
        padding: 5rem 0;
    }

    .adqp-hero {
        min-height: auto;
        padding-top: 8.5rem;
    }

    .adqp-hero-visual {
        max-width: none;
        min-height: 390px;
        margin-top: 3rem;
    }

    .adqp-problem-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .adqp-principles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adqp-principle:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .adqp section {
        padding: 4rem 0;
    }

    .adqp-hero-title {
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

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

    .adqp-btn {
        width: 100%;
    }

    .adqp-learning-grid {
        grid-template-columns: 1fr;
    }

    .adqp-learning-item {
        min-height: auto;
    }

    .adqp-resource-cover {
        min-height: 330px;
        margin-bottom: 3rem;
        box-shadow: 0.65rem 0.8rem 0 var(--adqp-warm);
    }
}

@media (max-width: 575.98px) {
    .adqp section {
        padding: 3.5rem 0;
    }

    .adqp-hero {
        padding-top: 7.5rem;
    }

    .adqp-hero-visual {
        min-height: 340px;
        padding: 2rem;
    }

    .adqp-visual-small {
        margin-top: 3.5rem;
    }

    .adqp-hook-card {
        padding: 2.25rem 1.3rem;
    }

    .adqp-problem-statement {
        padding-left: 1.25rem;
    }

    .adqp-principles-grid {
        grid-template-columns: 1fr;
    }

    .adqp-principle:last-child {
        grid-column: auto;
    }

    /* Ajuste del encabezado de la landing */
    .adqp .adqp-hero {
        position: relative;
        isolation: isolate;
    }

    .adqp .adqp-hero::after {
        pointer-events: none;
        z-index: -1;
    }

    .adqp #registro,
    .adqp #aprendizajes {
        scroll-margin-top: 110px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .adqp *,
    .adqp *::before,
    .adqp *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
