/* Landing "Aprende" (/aprende) — port de mock-up-FD/conocimiento.html. Prefijo ap-, scope .ap-root */

.ap-root {
    --ap-azul: #155EEF;
    --ap-azul-oscuro: #0F172A;
    --ap-gris: #64748B;
    --ap-linea: rgba(15,23,42,0.10);
    font-family: "Sora", sans-serif;
    color: var(--ap-azul-oscuro);
}

/* Full-bleed dentro de la framecard (cancela mt-4 + gutters del MudContainer)
   y llena el alto restante del viewport bajo el topbar del shell. */
.ap-main {
    display: flex;
    width: auto;
    margin: -16px -16px 0;
    min-height: calc(100vh - var(--xs-content-offset, 176px));
}

@media (min-width: 600px) {
    .ap-main {
        margin: -16px -24px 0;
    }
}

.ap-root .ap-panel {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding: 64px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    overflow: hidden;
    transition: flex 0.55s cubic-bezier(.16,1,.3,1), background 0.4s ease;
    border: none;
}

    .ap-root .ap-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        transition: opacity 0.55s ease, transform 0.8s cubic-bezier(.16,1,.3,1);
        transform: scale(1.05);
        opacity: 0.9;
    }

    .ap-root .ap-panel:hover::before {
        transform: scale(1.0);
    }

.ap-panel-videos {
    background: #fff;
}

    .ap-panel-videos::before {
        background: radial-gradient(circle at 25% 15%, rgba(21,94,239,0.10), transparent 55%), repeating-linear-gradient(115deg, rgba(21,94,239,0.045) 0px, rgba(21,94,239,0.045) 1.5px, transparent 1.5px, transparent 34px);
    }

    .ap-panel-videos:hover {
        background: #F2F6FF;
    }

.ap-panel-cursos {
    background: var(--ap-azul-oscuro);
    color: #fff;
}

    .ap-panel-cursos::before {
        background: radial-gradient(circle at 75% 15%, rgba(21,94,239,0.30), transparent 55%), repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1.5px, transparent 1.5px, transparent 34px);
    }

    .ap-panel-cursos:hover {
        background: #13192C;
    }

.ap-root .ap-panel:hover {
    flex: 1.16;
}

.ap-main:has(.ap-panel:hover) .ap-panel:not(:hover) {
    flex: 0.84;
}

/* ── Divisor central ── */
.ap-divider {
    width: 1px;
    background: var(--ap-linea);
    position: relative;
    z-index: 2;
}

    .ap-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: var(--ap-azul);
        box-shadow: 0 4px 18px rgba(21,94,239,0.35);
    }

.ap-divider-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .ap-divider-icon svg {
        width: 20px;
        height: 20px;
    }

/* ── Contenido ── */
.ap-panel-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.ap-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.ap-panel-videos .ap-eyebrow {
    color: var(--ap-azul);
}

.ap-panel-cursos .ap-eyebrow {
    color: #7FA6FF;
}

.ap-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ap-root .ap-panel h2 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: clamp(46px, 6.8vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
}

.ap-panel-videos h2 {
    color: var(--ap-azul-oscuro);
}

.ap-panel-cursos h2 {
    color: #fff;
}

.ap-root .ap-panel p {
    font-weight: 300;
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 360px;
}

.ap-panel-videos p {
    color: var(--ap-gris);
}

.ap-panel-cursos p {
    color: #A8B3C7;
}

.ap-go-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Sora", sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 0.01em;
    padding: 14px 26px;
    border-radius: 10px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.ap-panel-videos .ap-go-btn {
    border: 1.5px solid var(--ap-azul);
    color: var(--ap-azul);
    background: transparent;
}

.ap-panel-videos:hover .ap-go-btn {
    background: var(--ap-azul);
    color: #fff;
    transform: translateX(4px);
}

.ap-panel-cursos .ap-go-btn {
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.ap-panel-cursos:hover .ap-go-btn {
    background: var(--ap-azul);
    border-color: var(--ap-azul);
    color: #fff;
    transform: translateX(4px);
}

.ap-go-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.ap-root .ap-panel:hover .ap-go-btn svg {
    transform: translateX(2px);
}

/* ── Contador ── */
.ap-count {
    position: absolute;
    top: 64px;
    right: 64px;
    z-index: 2;
    text-align: right;
    font-family: "Space Grotesk", sans-serif;
}

.ap-num {
    font-size: 38px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.ap-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: "Sora", sans-serif;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

.ap-panel-videos .ap-num {
    color: var(--ap-azul);
}

.ap-panel-videos .ap-label {
    color: var(--ap-gris);
}

.ap-panel-cursos .ap-num {
    color: #7FA6FF;
}

.ap-panel-cursos .ap-label {
    color: #A8B3C7;
}

@media (max-width: 760px) {
    .ap-main {
        flex-direction: column;
        height: auto;
    }

    .ap-root .ap-panel {
        padding: 40px 28px;
        min-height: 50vh;
    }

    .ap-divider {
        width: 100%;
        height: 1px;
    }

        .ap-divider::after {
            display: none;
        }

    .ap-divider-icon {
        display: none;
    }

    .ap-count {
        top: 40px;
        right: 28px;
    }

    .ap-num {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap-root .ap-panel, .ap-root .ap-panel::before, .ap-go-btn, .ap-go-btn svg {
        transition: none !important;
    }
}
