/* =============================================================
   DOXEN – demo.css
   ============================================================= */

/* ── Hero ───────────────────────────────────────────────────── */
.demo-hero {
    padding: calc(var(--navbar-h) + 2rem) 0 1.5rem;
    text-align: center;
}

.demo-hero__eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: .1rem;
}

.demo-hero__title {
    font-family: var(--font-recoleta);
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: .9rem;
}

.demo-hero__brand { color: var(--dark); }
.demo-hero__brand--accent { color: var(--accent); }

.demo-hero__subtitle {
    font-size: .97rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Main: pasos + video ────────────────────────────────────── */
.demo-main {
    padding-bottom: 1.5rem;
}

.demo-main__grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ── Sidebar de pasos ───────────────────────────────────────── */
.demo-steps {
    border: 2px solid var(--dark);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.demo-step {
    display: grid;
    grid-template-columns: 48px 1fr 12px;
    align-items: start;
    gap: .5rem .75rem;
}

.demo-step__icon-wrap {
    width: 48px;
    height: 48px;
    border: 2px solid var(--dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    flex-shrink: 0;
}

.demo-step__icon-wrap img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.demo-step__content { padding-top: .2rem; }

.demo-step__title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .2rem;
}

.demo-step__desc {
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.demo-step__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: .6rem;
    justify-self: center;
}

.demo-step__connector {
    width: 2px;
    height: 24px;
    background: var(--border);
    margin: .25rem 0 .25rem 23px;
    transition: background .35s;
}
.demo-step__connector.is-done { background: var(--accent); }

/* ── Step active / done states ── */
.demo-step { transition: opacity .3s; opacity: .45; }
.demo-step.is-active,
.demo-step.is-done   { opacity: 1; }

.demo-step.is-active .demo-step__icon-wrap {
    border-color: var(--accent);
    background: #fef9ec;
    box-shadow: 0 0 0 4px rgba(212,175,55,.18);
}
.demo-step.is-active .demo-step__title { color: var(--accent); }

.demo-step.is-done .demo-step__icon-wrap {
    border-color: #15803d;
    background: #edfaf3;
}
.demo-step.is-done .demo-step__dot { background: #15803d; }

.demo-step.is-active .demo-step__dot {
    animation: stepPulse 1.2s infinite;
}
@keyframes stepPulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.5); opacity: .6; }
}

/* ── Video ──────────────────────────────────────────────────── */
.demo-video__player {
    border: 2px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #d0cdc8;
    aspect-ratio: 16/9;
}

.demo-video__player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Barra de confianza ─────────────────────────────────────── */
.demo-trust {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: .25rem 0;
    margin-bottom: 0;
}

.demo-trust__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    text-align: center;
}

.demo-trust__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.demo-trust__headline {
    font-size: .95rem;
    font-weight: 700;
    color: var(--dark);
}

.demo-trust__sub {
    font-size: .82rem;
    color: var(--text-muted);
}

/* ── Features ───────────────────────────────────────────────── */
.demo-features {
    padding: 0.5rem 0;
    background: var(--bg);
}

.demo-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.demo-feature {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1.5rem 1.25rem;
    border-right: 1px solid var(--border);
}

.demo-feature:last-child {
    border-right: none;
}

.demo-feature__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-top: .1rem;
}

.demo-feature__title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .25rem;
}

.demo-feature__desc {
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ── CTA final ──────────────────────────────────────────────── */
.demo-cta {
    padding: 1.5rem 0;
}

.demo-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.demo-cta__title {
    font-family: var(--font-recoleta);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: var(--dark);
    margin-bottom: .25rem;
}

.demo-cta__sub {
    font-size: .87rem;
    color: var(--text-muted);
}

.demo-cta__btn {
    padding: .75rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
    border-radius: 50px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .demo-main__grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 600px) {
    .demo-features__grid {
        grid-template-columns: 1fr;
    }

    .demo-cta__inner {
        flex-direction: column;
        text-align: center;
    }
}
