/**
 * ConlineWeb — Hub de demos interactivas y precios referencia
 */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', sans-serif; }

:root {
    --deep-space: #0a0a0f;
    --neon-blue: #00f3ff;
    --neon-purple: #b967ff;
    --matrix-green: #00ff9d;
    --stardust: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.12);
    --hub-pad: clamp(1.35rem, 8vw, 8%);
    --hub-gap: clamp(3rem, 6vw, 5rem);
    --hub-max: 1180px;
    --hub-max-wide: 1360px;
}

body.demos-hub-page {
    background: var(--deep-space);
    color: var(--stardust);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 6rem;
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.55;
    pointer-events: none;
}

.demos-hub-hero,
.demos-hub-band {
    position: relative;
    z-index: 2;
}

.demos-hub-band__inner {
    max-width: var(--hub-max);
    margin: 0 auto;
    padding: 0 var(--hub-pad);
}

.demos-hub-band__inner--wide {
    max-width: var(--hub-max-wide);
}

.demos-hub-band {
    padding: var(--hub-gap) 0;
}

.demos-hub-band--pricing {
    padding-top: calc(var(--hub-gap) * 0.65);
}

.demos-hub-band--nav {
    padding-top: 0;
    padding-bottom: 2rem;
}

.demos-hub-band--showcase {
    padding-top: clamp(2.5rem, 6vw, 4rem);
}

.demos-hub-band--cta {
    padding-bottom: calc(var(--hub-gap) + 1rem);
}

/* Hero */
.demos-hub-hero {
    padding: calc(var(--hub-gap) * 0.75) 0 calc(var(--hub-gap) * 0.5);
}

.demos-hub-hero__inner {
    max-width: var(--hub-max);
    margin: 0 auto;
    padding: 0 var(--hub-pad);
    text-align: center;
}

.demos-hub-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.demos-hub-back:hover {
    color: var(--neon-blue);
    border-color: rgba(0, 243, 255, 0.4);
    background: rgba(0, 243, 255, 0.06);
}

.demos-hub-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neon-blue);
    border: 1px solid rgba(0, 243, 255, 0.35);
    background: rgba(0, 243, 255, 0.08);
}

.demos-hub-hero__title {
    font-family: 'Poiret One', sans-serif;
    font-size: clamp(2.35rem, 5.5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.28;
    padding-block: 0.05em 0.12em;
    margin-bottom: 1.1rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--matrix-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.demos-hub-hero__lead {
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

.demos-hub-eyebrow {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 243, 255, 0.82);
    text-align: center;
}

.demos-hub-section-title {
    font-family: 'Poiret One', sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 400;
    line-height: 1.28;
    padding-block: 0.05em 0.1em;
    text-align: center;
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.96);
}

.demos-hub-section-lead {
    max-width: 680px;
    margin: 0 auto 2.25rem;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
}

/* Pricing grid */
.demos-pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.demos-price-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 1.25rem 1.15rem;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.demos-price-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--card-accent) 55%, transparent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.demos-price-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--card-accent);
    background: color-mix(in srgb, var(--card-accent) 14%, transparent);
    margin-bottom: 0.25rem;
}

.demos-price-card h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.94);
}

.demos-price-card__amount {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--card-accent);
    line-height: 1.2;
}

.demos-price-card__note {
    flex: 1;
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.5);
}

.demos-price-card__jump {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: color 0.2s ease;
}

.demos-price-card__jump:hover {
    color: var(--card-accent);
}

.demos-pricing-disclaimer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    max-width: 720px;
    margin: 0 auto;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.demos-pricing-disclaimer i {
    margin-top: 0.12rem;
    flex-shrink: 0;
    color: rgba(0, 243, 255, 0.65);
}

/* Nav cards */
.demos-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.demos-nav-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.demos-nav-card:hover,
.demos-nav-card.is-active {
    border-color: color-mix(in srgb, var(--card-accent) 50%, transparent);
    background: color-mix(in srgb, var(--card-accent) 6%, rgba(255, 255, 255, 0.03));
}

.demos-nav-card.is-active {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.demos-nav-card__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--card-accent);
    background: color-mix(in srgb, var(--card-accent) 14%, transparent);
}

.demos-nav-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.demos-nav-card__body strong {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

.demos-nav-card__body span {
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
}

.demos-nav-card__chevron {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, background 0.2s ease;
}

.demos-nav-card.is-active .demos-nav-card__chevron {
    transform: rotate(180deg);
    background: color-mix(in srgb, var(--card-accent) 18%, transparent);
    color: var(--card-accent);
}

/* Demo panels */
.demos-panel {
    margin-bottom: 1.25rem;
    border-radius: 22px;
    border: 1px solid var(--glass-border);
    background: rgba(10, 10, 15, 0.72);
    backdrop-filter: blur(14px);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.demos-panel[hidden] {
    display: none;
}

.demos-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.35rem var(--hub-pad);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.demos-panel__eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(0, 243, 255, 0.75);
}

.demos-panel__head-copy h3 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.96);
}

.demos-panel__head-copy p {
    max-width: 52ch;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
}

.demos-panel__head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.demos-panel__link,
.demos-panel__wa {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demos-panel__link {
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
}

.demos-panel__link:hover {
    color: var(--neon-blue);
    border-color: rgba(0, 243, 255, 0.35);
}

.demos-panel__wa {
    color: #fff;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25);
}

.demos-panel__wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

.demos-panel__stage {
    padding: clamp(1.5rem, 4vw, 2.25rem) var(--hub-pad) var(--hub-pad);
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.015);
}

/* Ajustes de demos embebidas dentro del hub */
body.demos-hub-page .demos-panel__stage :is(
    .visual-section,
    .web-sim-section,
    .seo-sim-section,
    .shop-demo-section
) {
    width: 100%;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    align-items: flex-start;
    justify-content: flex-start;
}

body.demos-hub-page .demos-panel__stage :is(
    .visual-section,
    .web-sim-section,
    .seo-sim-section,
    .shop-demo-section
)::before {
    display: none !important;
}

body.demos-hub-page .demos-panel__stage :is(
    .ia-wa-sim__glow,
    .seo-search-sim__glow,
    .web-device-sim__glow
) {
    display: none !important;
}

body.demos-hub-page .demos-panel__visual {
    display: block;
}

body.demos-hub-page .sw-cloud-flow {
    max-width: 100%;
    margin: 0 auto;
}

body.demos-hub-page .sw-cloud-flow__stage {
    min-height: 0 !important;
}

body.demos-hub-page .ia-wa-sim,
body.demos-hub-page .seo-search-sim,
body.demos-hub-page .web-device-sim {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.demos-hub-page .shop-demo-section__head {
    padding-top: 0;
}

body.demos-hub-page .ia-wa-demo-cta {
    margin-bottom: 1rem;
}

body.demos-hub-page .shop-demo-frame {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

body.demos-hub-page .shop-demo-frame__chrome {
    background: rgba(30, 30, 40, 0.85);
}

body.demos-hub-page .web-browser,
body.demos-hub-page .web-tablet,
body.demos-hub-page .web-phone {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

/* CTA final */
.demos-hub-cta-panel {
    padding: calc(var(--hub-pad) + 0.5rem);
    border-radius: 22px;
    border: 1px solid rgba(0, 243, 255, 0.22);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.06), rgba(185, 103, 255, 0.08));
    text-align: center;
}

.demos-hub-cta-panel .demos-hub-section-lead {
    margin-bottom: 1.75rem;
}

.demos-hub-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.demos-hub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demos-hub-btn--wa {
    color: #fff;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28);
}

.demos-hub-btn--wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.38);
}

.demos-hub-btn--ghost {
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
}

.demos-hub-btn--ghost:hover {
    border-color: rgba(0, 243, 255, 0.35);
    color: var(--neon-blue);
}

/* Responsive */
@media (max-width: 1100px) {
    .demos-pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .demos-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .demos-panel__head {
        flex-direction: column;
    }

    .demos-panel__head-actions {
        width: 100%;
    }

    .demos-panel__link,
    .demos-panel__wa {
        flex: 1 1 auto;
        justify-content: center;
    }

    .demos-hub-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .demos-hub-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .demos-pricing-grid {
        grid-template-columns: 1fr;
    }

    .demos-nav-card {
        flex-wrap: wrap;
    }

    .demos-nav-card__chevron {
        margin-left: auto;
    }
}

/* Demos embebidas en móvil */
@media (max-width: 768px) {
    body.demos-hub-page .demos-panel__stage {
        padding: 1.25rem 0.65rem 0.65rem;
        overflow-x: hidden;
    }

    body.demos-hub-page .web-device-sim__stage {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 1.25rem;
    }

    body.demos-hub-page .web-mock--mobile {
        grid-column: 1;
        max-width: 200px;
        margin: 0 auto;
    }

    body.demos-hub-page .web-mock--desktop .web-scroll-vp {
        height: 260px;
    }

    body.demos-hub-page .shop-demo-frame[data-device="mobile"] {
        max-width: 100%;
        padding: 0;
    }

    body.demos-hub-page .shop-demo-frame__viewport {
        min-height: 400px;
        max-height: min(62vh, 640px);
    }

    body.demos-hub-page .ia-wa-sim,
    body.demos-hub-page .seo-search-sim {
        transform: scale(1);
        max-width: 100%;
    }

    body.demos-hub-page .sw-cloud-flow {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    body.demos-hub-page .web-mock--mobile {
        max-width: 168px;
    }

    body.demos-hub-page .shop-demo-frame__viewport {
        min-height: 360px;
        max-height: 58vh;
    }
}
