/**
 * EduIA · landing pública (marketing). Sin Bootstrap: layout propio, CLS acotado.
 */

:root {
    --el-bg: #030712;
    --el-panel: #0f172a;
    --el-text: #f8fafc;
    --el-muted: #94a3b8;
    --el-blue: #1877f2;
    --el-blue-soft: #4da3ff;
    --el-violet: #8b5cf6;
    --el-radius: 18px;
    --el-max: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body.eduia-landing {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--el-bg);
    color: var(--el-text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eduia-landing-skip {
    position: absolute;
    left: -9999px;
    top: auto;
    z-index: 10000;
    padding: 12px 16px;
    background: #fff;
    color: #0f172a;
    font-weight: 600;
}

.eduia-landing-skip:focus {
    left: 12px;
    top: 12px;
}

/* —— Hero —— */
.eduia-landing-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: var(--el-bg);
    color: var(--el-text);
}

.eduia-landing-hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.eduia-landing-hero__video {
    position: absolute;
    left: 50%;
    top: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: none;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05) brightness(0.85);
}

.eduia-landing-hero__fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgb(24 119 242 / 0.25), transparent 55%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgb(139 92 246 / 0.2), transparent 50%),
        linear-gradient(165deg, #020617, #0f172a);
}

.eduia-landing-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgb(3 7 18 / 0.35) 0%, rgb(3 7 18 / 0.75) 55%, rgb(3 7 18 / 0.92) 100%);
}

.eduia-landing-hero__inner {
    position: relative;
    z-index: 2;
    padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) max(28px, env(safe-area-inset-bottom));
    max-width: var(--el-max);
    margin: 0 auto;
    width: 100%;
}

.eduia-landing-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: clamp(24px, 5vh, 56px);
}

.eduia-landing-logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.eduia-landing-hero__micro {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.eduia-landing-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--el-text);
    background: rgb(255 255 255 / 0.1);
    border: 1px solid rgb(255 255 255 / 0.18);
    text-decoration: none;
}

.eduia-landing-hero__copy h1 {
    margin: 0 0 12px;
    font-weight: 800;
    font-size: clamp(1.55rem, 4.2vw, 2.75rem);
    line-height: 1.12;
    max-width: 22ch;
    text-wrap: balance;
}

.eduia-landing-hero__sub {
    margin: 0 0 22px;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgb(226 232 240 / 0.92);
    max-width: 42ch;
}

.eduia-landing-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.eduia-landing-hero__note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--el-muted);
}

.eduia-landing-link {
    color: var(--el-blue-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.eduia-landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.eduia-landing-btn:focus-visible {
    outline: 3px solid var(--el-blue-soft);
    outline-offset: 2px;
}

.eduia-landing-btn--primary {
    background: linear-gradient(180deg, var(--el-blue-soft), var(--el-blue));
    color: #fff;
    box-shadow: 0 8px 28px rgb(24 119 242 / 0.35);
}

.eduia-landing-btn--secondary {
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    border-color: rgb(255 255 255 / 0.25);
}

.eduia-landing-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgb(255 255 255 / 0.45);
}

.eduia-landing-btn--ghost {
    background: rgb(0 0 0 / 0.25);
    color: #e2e8f0;
    border-color: rgb(255 255 255 / 0.15);
}

.eduia-landing-btn:hover {
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .eduia-landing-btn:hover {
        transform: none;
    }
}

/* —— Secciones —— */
.eduia-landing-section {
    padding: clamp(48px, 8vw, 88px) 16px;
    border-top: 1px solid rgb(148 163 184 / 0.12);
}

.eduia-landing-wrap {
    max-width: var(--el-max);
    margin: 0 auto;
}

.eduia-landing-h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.eduia-landing-lead {
    margin: 0 0 28px;
    color: var(--el-muted);
    font-size: 1.05rem;
    max-width: 60ch;
}

.eduia-landing-muted {
    color: var(--el-muted);
    font-size: 0.9rem;
}

/* —— Carousel demo —— */
.eduia-landing-carousel {
    background: rgb(15 23 42 / 0.65);
    border: 1px solid rgb(148 163 184 / 0.15);
    border-radius: var(--el-radius);
    padding: clamp(20px, 3vw, 32px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.eduia-landing-carousel__slides {
    position: relative;
    min-height: 220px;
}

.eduia-landing-slide {
    display: none;
    animation: el-fade 0.55s ease both;
}

.eduia-landing-slide.is-active {
    display: block;
}

@keyframes el-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .eduia-landing-slide {
        animation: none !important;
    }
}

.eduia-landing-slide__mock {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgb(30 41 59 / 0.9), rgb(15 23 42 / 0.95));
    border: 1px solid rgb(148 163 184 / 0.12);
}

.eduia-landing-slide__mock--vizion .eduia-landing-slide__vizion {
    max-width: 55%;
    height: auto;
}

.eduia-landing-slide__mock--evidence .fa-camera,
.eduia-landing-slide__mock--brujula .fa-compass,
.eduia-landing-slide__mock--pdf .fa-file-pdf {
    font-size: 3.5rem;
    color: var(--el-blue-soft);
    opacity: 0.85;
}

.eduia-landing-slide__txt {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    max-width: 52ch;
}

.eduia-landing-hotspot {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgb(77 163 255 / 0.7);
    right: 12%;
    top: 18%;
    box-shadow: 0 0 0 0 rgb(24 119 242 / 0.35);
    animation: el-pulse 2.2s ease-in-out infinite;
}

.eduia-landing-hotspot--2 {
    left: 14%;
    top: 55%;
    right: auto;
}

@keyframes el-pulse {
    70% {
        box-shadow: 0 0 0 14px transparent;
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eduia-landing-hotspot {
        animation: none !important;
    }
}

.eduia-landing-carousel__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
}

.eduia-landing-carousel__dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgb(148 163 184 / 0.35);
    cursor: pointer;
}

.eduia-landing-carousel__dots button.is-active {
    background: var(--el-blue-soft);
    transform: scale(1.15);
}

/* —— Cards problemas —— */
.eduia-landing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.eduia-landing-card {
    padding: 22px;
    border-radius: var(--el-radius);
    background: rgb(15 23 42 / 0.55);
    border: 1px solid rgb(148 163 184 / 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eduia-landing-card:hover {
    border-color: rgb(24 119 242 / 0.35);
    box-shadow: 0 12px 40px rgb(0 0 0 / 0.25);
}

.eduia-landing-card__ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(24 119 242 / 0.15);
    color: var(--el-blue-soft);
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.eduia-landing-card__h {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.eduia-landing-card p {
    margin: 0;
    color: var(--el-muted);
    font-size: 0.92rem;
}

/* —— Mosaic —— */
.eduia-landing-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .eduia-landing-mosaic {
        grid-template-columns: repeat(4, 1fr);
    }
}

.eduia-landing-tile {
    border-radius: 14px;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgb(255 255 255 / 0.08);
    background: linear-gradient(160deg, rgb(30 41 59 / 0.95), rgb(15 23 42 / 0.9));
}

.eduia-landing-tile span {
    text-shadow: 0 2px 12px rgb(0 0 0 / 0.5);
}

.eduia-landing-tile--a {
    background: linear-gradient(135deg, rgb(24 119 242 / 0.35), rgb(15 23 42 / 0.9));
}
.eduia-landing-tile--b {
    background: linear-gradient(135deg, rgb(139 92 246 / 0.3), rgb(15 23 42 / 0.9));
}
.eduia-landing-tile--c {
    background: linear-gradient(135deg, rgb(14 165 233 / 0.28), rgb(15 23 42 / 0.9));
}
.eduia-landing-tile--d {
    background: linear-gradient(135deg, rgb(251 191 36 / 0.2), rgb(15 23 42 / 0.9));
}

.eduia-landing-evidence__cta {
    margin-top: 24px;
}

/* —— Brújula + Vizion —— */
.eduia-landing-diff__grid {
    display: grid;
    gap: 32px;
    align-items: start;
}

@media (min-width: 900px) {
    .eduia-landing-diff__grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.eduia-landing-brujula-wrap {
    max-width: 420px;
}

.eduia-landing-brujula-wrap .eduia-brujula-avatar--large {
    --eba-size: 56px;
}

.eduia-landing-diff__viz {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 20px 0;
}

.eduia-landing-diff__bubble {
    flex: 1;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgb(24 119 242 / 0.12);
    border: 1px solid rgb(24 119 242 / 0.25);
    font-size: 0.95rem;
}

.eduia-landing-diff__bubble strong {
    display: block;
    margin-bottom: 6px;
    color: var(--el-blue-soft);
}

.eduia-landing-diff__bubble p {
    margin: 0;
    color: var(--el-muted);
}

.eduia-landing-bullets {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--el-muted);
}

.eduia-landing-bullets li {
    margin-bottom: 8px;
}

.eduia-landing-bullets--cols {
    columns: 1;
}

@media (min-width: 720px) {
    .eduia-landing-bullets--cols {
        columns: 2;
        column-gap: 32px;
    }
}

/* —— CTA final —— */
.eduia-landing-final {
    background: radial-gradient(ellipse 80% 80% at 50% 0%, rgb(24 119 242 / 0.12), transparent 55%), var(--el-bg);
}

.eduia-landing-final__inner {
    text-align: center;
}

.eduia-landing-final__h {
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
}

.eduia-landing-final .eduia-landing-hero__cta {
    justify-content: center;
}

.eduia-landing-footer {
    padding: 24px 16px 40px;
    border-top: 1px solid rgb(148 163 184 / 0.1);
}

.eduia-landing-footer__inner {
    text-align: center;
    color: var(--el-muted);
    font-size: 0.85rem;
}

.eduia-landing-footer p {
    margin: 0;
}

/* —— Modal —— */
.eduia-landing-modal[hidden] {
    display: none !important;
}

.eduia-landing-modal:not([hidden]) {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.eduia-landing-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.65);
    backdrop-filter: blur(4px);
}

.eduia-landing-modal__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(90vh, 640px);
    overflow: auto;
    padding: 28px 24px 24px;
    border-radius: var(--el-radius);
    background: var(--el-panel);
    border: 1px solid rgb(148 163 184 / 0.18);
    box-shadow: 0 24px 80px rgb(0 0 0 / 0.45);
}

.eduia-landing-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgb(255 255 255 / 0.08);
    color: #fff;
    cursor: pointer;
}

.eduia-landing-modal__slide {
    display: none;
    text-align: center;
    margin: 0;
}

.eduia-landing-modal__slide.is-active {
    display: block;
}

.eduia-landing-modal__slide figcaption {
    margin-top: 12px;
    color: var(--el-muted);
    font-size: 0.95rem;
}

.eduia-landing-modal__ico {
    font-size: 4rem;
    color: var(--el-blue-soft);
    margin: 20px 0;
}

.eduia-landing-modal__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.eduia-landing-modal__dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgb(148 163 184 / 0.35);
    cursor: pointer;
}

.eduia-landing-modal__dots button.is-active {
    background: var(--el-blue-soft);
}
