﻿:root {
    --bg: #0b1020;
    --bg2: #0e1326;
    --card: rgba(255,255,255,0.06);
    --text: #e9ecf1;
    --muted: #b7c0cd;
    --accent: #7c5cff;
    --accent-2: #30e7e2;
    --ok: #0dd3a2;
    --shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f6f7fb;
        --bg2: #ffffff;
        --card: rgba(255,255,255,0.9);
        --text: #0e1326;
        --muted: #415066;
        --accent: #5a3df0;
        --accent-2: #10c6c1;
        --ok: #0fb58e;
        --shadow: 0 20px 60px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255,255,255,.9);
    }
}


.wrap {
    position: relative;
    margin: 6vh auto; /* centrado horizontal */
    padding: clamp(24px, 4vw, 40px);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,.12);
    isolation: isolate;
    max-width: 920px; /* límite en desktop */
    width: calc(100% - 32px); /* respiración en móviles */
}


.halo {
    position: absolute;
    inset: -40% -20% auto auto;
    width: 70vmin;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.7), transparent 60%);
    filter: blur(40px);
    opacity: .25;
    pointer-events: none;
    z-index: -1;
    animation: float 18s ease-in-out infinite;
}

.halo2 {
    inset: auto auto -40% -10%;
    background: radial-gradient(circle at 70% 70%, rgba(48,231,226,.7), transparent 60%);
}

@keyframes float {
    0% {
        transform: translate3d(0,0,0) scale(1);
    }

    50% {
        transform: translate3d(0,-14px,0) scale(1.03);
    }

    100% {
        transform: translate3d(0,0,0) scale(1);
    }
}

.grid {
    display: grid;
    gap: clamp(16px, 3vw, 28px);
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .wrap {
        margin: 4vh 12px; /* menos margen */
        padding: 20px; /* más compacto */
    }
}


h1 {
    font-size: clamp(28px, 4.8vw, 48px);
    line-height: 1.05;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 18px 0;
    color: var(--muted);
    font-size: clamp(14px, 1.6vw, 18px);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px dashed rgba(255,255,255,.25);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 6px rgba(13,211,162,.12);
}

.cta {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 14px 28px rgba(0,0,0,.25);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    will-change: transform;
}

    .cta:hover {
        transform: translateY(-2px);
        filter: brightness(1.05);
        box-shadow: 0 18px 40px rgba(0,0,0,.3);
    }

    .cta:active {
        transform: translateY(0);
    }

.illus {
    position: relative;
    aspect-ratio: 4/3;
    width: 100%;
    max-width: 520px;
    justify-self: center;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(120% 100% at 100% 0%, rgba(255,255,255,.08), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow);
}

.wires {
    position: absolute;
    inset: 0;
}

    .wires svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.badge {
    position: absolute;
    right: 10%;
    top: 12%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    padding: 10px 14px;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    animation: float 16s ease-in-out -6s infinite;
}

    .badge .mini-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 30px var(--accent);
    }

.code {
    position: absolute;
    left: 8%;
    bottom: 10%;
    right: 8%;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: var(--muted);
}

.line {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 10px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .line strong {
        color: var(--text);
    }

.footer-note {
    margin-top: 22px;
    font-size: 12px;
    color: var(--muted);
    opacity: .9;
}
