/* =====================================================
   HERO SPNEXT
===================================================== */

#inicio.hero {
    position: relative;
    isolation: isolate;

    min-height: 100vh;
    min-height: 100svh;

    padding: calc(var(--navbar-height) + 35px) 0 45px;

    overflow: hidden;

    background:
        radial-gradient(circle at 12% 18%,
            rgba(37, 99, 235, 0.28),
            transparent 30%),
        radial-gradient(circle at 88% 82%,
            rgba(139, 92, 246, 0.22),
            transparent 32%),
        linear-gradient(135deg,
            #020617 0%,
            #0f172a 52%,
            #172033 100%);

    color: var(--white);
}


/* =====================================================
   CUADRÍCULA DECORATIVA
===================================================== */

#inicio.hero::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -2;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px);

    background-size: 50px 50px;

    mask-image:
        linear-gradient(to bottom,
            transparent,
            black 18%,
            black 82%,
            transparent);

    -webkit-mask-image:
        linear-gradient(to bottom,
            transparent,
            black 18%,
            black 82%,
            transparent);

    pointer-events: none;
}


/* Oscurecimiento sutil para mejorar la lectura */

#inicio.hero::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(90deg,
            rgba(2, 6, 23, 0.25),
            transparent 55%);

    pointer-events: none;
}


/* =====================================================
   CONTENEDOR
===================================================== */

#inicio.hero .container {
    position: relative;
    z-index: 2;
}

#inicio .hero-row {
    min-height: calc(100svh - var(--navbar-height) - 35px);
}


/* =====================================================
   FORMAS DECORATIVAS
===================================================== */

.hero-shape {
    position: absolute;
    z-index: -1;

    border-radius: 50%;

    filter: blur(105px);

    pointer-events: none;
}

.hero-shape-1 {
    top: -130px;
    left: -110px;

    width: 380px;
    height: 380px;

    background: rgba(37, 99, 235, 0.25);
}

.hero-shape-2 {
    right: -130px;
    bottom: -150px;

    width: 440px;
    height: 440px;

    background: rgba(139, 92, 246, 0.2);
}


/* =====================================================
   BADGE
===================================================== */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 25px;
    padding: 9px 17px;

    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-pill);

    background: rgba(6, 182, 212, 0.1);
    color: #a5f3fc;

    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-badge i {
    color: var(--secondary);
}


/* =====================================================
   TÍTULO Y DESCRIPCIÓN
===================================================== */

.hero-title {
    max-width: 760px;

    margin-bottom: 25px;

    color: var(--white);

    font-size: clamp(2.65rem, 5vw, 4.65rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero-title .text-gradient {
    display: inline;

    background:
        linear-gradient(90deg,
            #60a5fa,
            var(--secondary),
            #c4b5fd);

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;

    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 660px;

    margin: 0;

    color: #a8b3c7;

    font-size: clamp(0.98rem, 1.5vw, 1.08rem);
    line-height: 1.85;
}


/* =====================================================
   ACCIONES
===================================================== */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 34px;
}

#inicio .hero-actions .btn {
    min-width: 190px;
}

#inicio .btn-outline-custom {
    background: rgba(255, 255, 255, 0.035);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* =====================================================
   CARACTERÍSTICAS DEL SERVICIO
===================================================== */

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;

    max-width: 720px;

    margin-top: 42px;
    padding-top: 26px;

    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    min-width: 0;
    padding: 13px 12px;

    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.035);

    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal),
        background-color var(--transition-normal);
}

.hero-feature:hover {
    border-color: rgba(6, 182, 212, 0.28);

    background: rgba(255, 255, 255, 0.055);

    transform: translateY(-3px);
}

.hero-feature>i {
    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: rgba(6, 182, 212, 0.11);
    color: var(--secondary);

    font-size: 0.82rem;
}

.hero-feature div {
    min-width: 0;
}

.hero-feature strong {
    display: block;

    margin-bottom: 4px;

    color: var(--white);

    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
}

.hero-feature span {
    display: block;

    color: #94a3b8;

    font-size: 0.62rem;
    line-height: 1.5;
}


/* =====================================================
   COMPOSICIÓN VISUAL
===================================================== */

.hero-visual {
    position: relative;

    width: 100%;
    max-width: 620px;

    margin: 0 auto;
    padding: 45px 20px;
}


/* =====================================================
   VENTANA PRINCIPAL
===================================================== */

.hero-dashboard {
    position: relative;
    z-index: 2;

    overflow: hidden;

    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;

    background: rgba(15, 23, 42, 0.92);

    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.42),
        0 0 70px rgba(37, 99, 235, 0.14);

    transform:
        perspective(1200px) rotateY(-5deg) rotateX(2deg);

    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.hero-dashboard:hover {
    transform:
        perspective(1200px) rotateY(0) rotateX(0) translateY(-5px);

    box-shadow:
        0 42px 90px rgba(0, 0, 0, 0.46),
        0 0 80px rgba(37, 99, 235, 0.18);
}


/* =====================================================
   CABECERA DE LA VENTANA
===================================================== */

.hero-dashboard-header {
    display: flex;
    align-items: center;
    gap: 18px;

    min-height: 49px;
    padding: 0 17px;

    border-bottom: 1px solid rgba(148, 163, 184, 0.13);

    background: rgba(255, 255, 255, 0.035);
}

.window-controls {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.window-controls span {
    width: 9px;
    height: 9px;

    border-radius: 50%;
}

.window-controls span:nth-child(1) {
    background: #ef4444;
}

.window-controls span:nth-child(2) {
    background: #f59e0b;
}

.window-controls span:nth-child(3) {
    background: #10b981;
}

.dashboard-url {
    flex: 1;

    max-width: 325px;
    min-width: 0;

    padding: 6px 13px;

    overflow: hidden;

    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;

    background: rgba(2, 6, 23, 0.45);
    color: #64748b;

    font-size: 0.62rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-url i {
    margin-right: 6px;

    color: var(--success);
}


/* =====================================================
   CUERPO DEL DASHBOARD
===================================================== */

.hero-dashboard-body {
    display: flex;

    min-height: 380px;
}


/* =====================================================
   SIDEBAR
===================================================== */

.dashboard-sidebar {
    width: 68px;

    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 18px;

    padding: 19px 13px;

    border-right: 1px solid rgba(148, 163, 184, 0.11);

    background: rgba(2, 6, 23, 0.34);
}

.dashboard-brand {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    margin-bottom: 12px;

    border-radius: 11px;

    background:
        linear-gradient(135deg,
            var(--primary),
            var(--accent));

    color: var(--white);
}

.dashboard-sidebar>span {
    width: 29px;
    height: 7px;

    border-radius: var(--radius-pill);

    background: rgba(148, 163, 184, 0.14);
}

.dashboard-sidebar>span.active {
    background: var(--secondary);
}


/* =====================================================
   CONTENIDO INTERNO
===================================================== */

.dashboard-content {
    flex: 1;
    min-width: 0;

    padding: 25px;
}

.dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

.dashboard-top>div:first-child {
    display: grid;
    gap: 8px;
}

.dashboard-small-line {
    width: 65px;
    height: 6px;

    border-radius: var(--radius-pill);

    background: rgba(6, 182, 212, 0.4);
}

.dashboard-title-line {
    width: 150px;
    height: 13px;

    border-radius: var(--radius-pill);

    background: rgba(255, 255, 255, 0.18);
}

.dashboard-avatar {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    background:
        linear-gradient(135deg,
            var(--primary),
            var(--secondary));
}


/* =====================================================
   TARJETAS INTERNAS
===================================================== */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.dashboard-card {
    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 0;
    padding: 13px 10px;

    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.04);
}

.dashboard-card i {
    flex: 0 0 auto;

    color: var(--secondary);

    font-size: 0.95rem;
}

.dashboard-card div {
    min-width: 0;
}

.dashboard-card strong,
.dashboard-card span {
    display: block;
}

.dashboard-card strong {
    overflow: hidden;

    color: var(--white);

    font-size: 0.64rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-card span {
    overflow: hidden;

    color: #64748b;

    font-size: 0.54rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =====================================================
   GRÁFICO DECORATIVO
===================================================== */

.dashboard-chart {
    margin-top: 20px;
    padding: 18px;

    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.035);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.chart-header span {
    color: #cbd5e1;

    font-size: 0.67rem;
    font-weight: 600;
}

.chart-header small {
    color: #64748b;

    font-size: 0.55rem;
}

.chart-bars {
    height: 145px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;

    margin-top: 20px;
    padding-top: 10px;

    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.chart-bars span {
    flex: 1;

    height: var(--height);
    min-width: 10px;

    border-radius: 7px 7px 2px 2px;

    background:
        linear-gradient(to top,
            var(--primary),
            var(--secondary));

    opacity: 0.82;

    animation: hero-chart-grow 1.2s ease both;
}


/* =====================================================
   TARJETAS FLOTANTES
===================================================== */

.hero-floating-card {
    position: absolute;
    z-index: 4;

    display: flex;
    align-items: center;

    border: 1px solid rgba(255, 255, 255, 0.13);

    background: rgba(15, 23, 42, 0.92);
    color: var(--white);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.hero-floating-card-1 {
    left: -15px;
    bottom: 5px;

    gap: 12px;

    padding: 14px 17px;

    border-radius: 15px;
}

.hero-floating-card-2 {
    top: 10px;
    right: -5px;

    gap: 9px;

    padding: 11px 15px;

    border-radius: var(--radius-pill);

    color: #a5f3fc;

    font-size: 0.68rem;
    font-weight: 600;
}

.hero-floating-icon {
    width: 37px;
    height: 37px;

    display: grid;
    place-items: center;
    flex: 0 0 auto;

    border-radius: 11px;

    background: rgba(16, 185, 129, 0.13);
    color: #6ee7b7;
}

.hero-floating-card strong,
.hero-floating-card span {
    display: block;
}

.hero-floating-card strong {
    font-size: 0.72rem;
}

.hero-floating-card-1 span {
    margin-top: 2px;

    color: #64748b;

    font-size: 0.57rem;
}


/* =====================================================
   TECNOLOGÍAS
===================================================== */

.hero-tech-stack {
    position: absolute;
    right: 10px;
    bottom: 5px;
    z-index: 4;

    display: flex;
    gap: 7px;
}

.hero-tech-stack span {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;

    background: rgba(15, 23, 42, 0.92);
    color: #cbd5e1;

    font-size: 0.9rem;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);

    transition:
        color var(--transition-normal),
        transform var(--transition-normal),
        border-color var(--transition-normal);
}

.hero-tech-stack span:hover {
    border-color: rgba(6, 182, 212, 0.35);

    color: var(--secondary);

    transform: translateY(-4px);
}


/* =====================================================
   ANIMACIONES
===================================================== */

@keyframes hero-chart-grow {

    from {
        height: 0;
    }

    to {
        height: var(--height);
    }

}


/* =====================================================
   RESPONSIVE: ESCRITORIO MEDIANO
===================================================== */

@media (max-width: 1199.98px) {

    .hero-features {
        grid-template-columns: 1fr;
        gap: 9px;

        max-width: 650px;
    }

    .hero-feature {
        padding: 11px 12px;
    }

}


/* =====================================================
   RESPONSIVE: TABLET
===================================================== */

@media (max-width: 991.98px) {

    #inicio.hero {
        min-height: auto;

        padding-top: calc(var(--navbar-height) + 55px);
        padding-bottom: 85px;
    }

    #inicio .hero-row {
        min-height: auto;
    }

    .hero-title,
    .hero-description {
        max-width: 780px;
    }

    .hero-title {
        font-size: clamp(2.6rem, 8vw, 4rem);
    }

    .hero-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        max-width: none;
    }

    .hero-visual {
        max-width: 680px;

        margin-top: 20px;
    }

    .hero-dashboard {
        transform: none;
    }

    .hero-dashboard:hover {
        transform: translateY(-4px);
    }

}


/* =====================================================
   RESPONSIVE: MÓVIL
===================================================== */

@media (max-width: 767.98px) {

    #inicio.hero {
        padding-top: 115px;
        padding-bottom: 75px;
    }

    .hero-title {
        font-size: clamp(2.35rem, 10vw, 3.4rem);
    }

    .hero-description {
        line-height: 1.75;
    }

    .hero-features {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .hero-feature {
        padding: 13px;
    }

    .hero-feature strong {
        font-size: 0.78rem;
    }

    .hero-feature span {
        font-size: 0.68rem;
    }

    .hero-dashboard-body {
        min-height: 410px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-card strong,
    .dashboard-card span {
        white-space: normal;
    }

    .hero-floating-card-2,
    .hero-tech-stack {
        display: none;
    }

    .hero-floating-card-1 {
        position: relative;
        left: auto;
        bottom: auto;

        width: calc(100% - 35px);

        margin: -20px auto 0;
    }

}


/* =====================================================
   RESPONSIVE: CELULARES PEQUEÑOS
===================================================== */

@media (max-width: 575.98px) {

    #inicio.hero {
        padding-top: 105px;
        padding-bottom: 65px;
    }

    .hero-badge {
        max-width: 100%;

        font-size: 0.67rem;
        line-height: 1.4;
    }

    .hero-title {
        margin-bottom: 21px;

        font-size: clamp(2.15rem, 11vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;

        margin-top: 29px;
    }

    #inicio .hero-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .hero-features {
        margin-top: 34px;
        padding-top: 22px;
    }

    .hero-visual {
        padding-right: 0;
        padding-left: 0;
    }

    .hero-dashboard-header {
        gap: 10px;

        padding: 0 12px;
    }

    .dashboard-url {
        padding: 6px 8px;

        font-size: 0.56rem;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-content {
        padding: 20px 16px;
    }

    .dashboard-title-line {
        width: 120px;
    }

    .dashboard-chart {
        padding: 15px;
    }

    .chart-bars {
        gap: 7px;
    }

}


/* =====================================================
   CELULARES MUY PEQUEÑOS
===================================================== */

@media (max-width: 359.98px) {

    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        align-items: flex-start;

        border-radius: 16px;
    }

    .dashboard-url {
        max-width: 210px;
    }

    .hero-floating-card-1 {
        width: calc(100% - 20px);

        padding: 12px 14px;
    }

}