/* Fondo / blobs */
.grid-tech {
    background-image: linear-gradient(transparent 96%, rgba(15, 23, 42, .04) 97%), linear-gradient(90deg, transparent 96%, rgba(15, 23, 42, .04) 97%);
    background-size: 30px 30px;
}

.mesh-blob {
    background: radial-gradient(60% 60% at 50% 50%, rgba(59, 130, 246, .25), rgba(99, 102, 241, .12) 60%, transparent 70%);
    filter: blur(12px);
}

/* Badges + glass */
.glass {
    backdrop-filter: blur(6px);
    border: 1px solid rgba(148, 163, 184, .25)
}

.badge-float {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .75rem;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #e6ebf3;
}

/* Trustbar */
.trustbar {
    border: 1px solid #e6ebf3;
    border-radius: 1rem;
    background: #fff;
}

.trust-track {
    display: flex;
    gap: 16px;
    padding: 8px 12px;
    width: max-content;
    animation: trust 28s linear infinite;
}

.trustbar:hover .trust-track {
    animation-play-state: paused;
}

.trust-item {
    font-size: .85rem;
    color: #475569;
    border: 1px solid #e6ebf3;
    border-radius: 9999px;
    padding: .35rem .6rem;
    background: #fff
}

@keyframes trust {
    to {
        transform: translateX(-50%);
    }
}

/* Device / laptop */
.mockup-wrap {
    border: 1px solid #e6ebf3;
    border-radius: 1.25rem;
    background: #fff
}

.laptop {
    border-radius: .9rem;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    border: 1px solid #e5e7eb
}

.laptop-top {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
    border-bottom: 1px solid #e5e7eb
}

.laptop-top .dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #cbd5e1
}

.laptop-top .tabs {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.tab {
    font-size: .75rem;
    padding: .25rem .5rem;
    border-radius: .5rem;
    color: #475569
}

.tab.active {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #0f172a
}

.sidebar-skel .line {
    height: 8px;
    background: #e2e8f0;
    border-radius: .4rem
}

.card-skel {
    border: 1px solid #e6ebf3;
    background: #fff;
    border-radius: .8rem
}

.chart-skel {
    position: relative;
    height: 140px;
    border: 1px dashed #e2e8f0;
    border-radius: .6rem;
    background: linear-gradient(180deg, #f8fafc, #fff)
}

.spark,
.spark:before {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(37, 99, 235, .08));
    mask: linear-gradient(90deg, transparent 0, #000 20%, #000 80%, transparent 100%);
}

.spark {
    animation: glide 3.2s ease-in-out infinite;
}

.spark.d2 {
    animation-duration: 4s;
    animation-delay: .8s;
}

@keyframes glide {
    0% {
        transform: translateX(-100%)
    }

    100% {
        transform: translateX(100%)
    }
}

.table-skel .row {
    height: 18px;
    border-radius: .35rem;
    background: linear-gradient(90deg, #eef2f7, #f7fafc 40%, #eef2f7 80%);
    background-size: 200% 100%;
    animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: -200% 0
    }
}

.btn-pulse {
    position: relative;
}

.btn-pulse:after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: .6rem;
    border: 2px solid rgba(37, 99, 235, .45);
    animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
    0% {
        opacity: .7;
        transform: scale(.98)
    }

    100% {
        opacity: 0;
        transform: scale(1.2)
    }
}

.cursor-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #0ea5e9;
    box-shadow: 0 0 0 6px rgba(14, 165, 233, .25);
    left: 60%;
    top: 40%;
    animation: clicky 2.6s ease-in-out infinite;
}

@keyframes clicky {

    0%,
    70% {
        transform: translate(0, 0) scale(1)
    }

    10% {
        transform: translate(6px, 4px) scale(.9)
    }

    12% {
        transform: translate(6px, 4px) scale(1)
    }
}

/* Notificación */
.hero-bell {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1d4ed8;
    color: #fff;
    border-radius: 9999px;
    padding: .25rem .5rem;
    font-size: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    box-shadow: 0 10px 24px rgba(29, 78, 216, .25);
}

.hero-bell i {
    animation: ring .9s ease-in-out infinite;
    transform-origin: 50% 0;
}

@keyframes ring {

    0%,
    100% {
        transform: rotate(0)
    }

    30% {
        transform: rotate(12deg)
    }

    60% {
        transform: rotate(-10deg)
    }
}

.reflection {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .24) 50%, transparent 60%);
    opacity: .35;
    mix-blend-mode: screen
}

/* Phone */
.phone {
    position: absolute;
    right: -22px;
    bottom: -22px;
    width: 220px;
    height: 420px;
    border-radius: 1.4rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 20px 50px rgba(2, 6, 23, .12);
}

.progress-shimmer {
    animation: shimmer 1.8s linear infinite
}

/* KPIs */
.kpi .val {
    letter-spacing: -.02em
}

/* Tech marquee */
.tech-carousel .tech-track {
    animation: tech 26s linear infinite;
    width: max-content
}

.tech-carousel:hover .tech-track {
    animation-play-state: paused;
}

.tech-item {
    font-size: .9rem;
    color: #475569;
    border: 1px solid #e6ebf3;
    border-radius: 9999px;
    padding: .35rem .7rem;
    background: #fff
}

@keyframes tech {
    to {
        transform: translateX(-50%);
    }
}

/* Scroll cue */
.scroll-cue {
    animation: bounce 1.4s ease-in-out infinite
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(3px)
    }
}

/* Accesibilidad motion */
@media (prefers-reduced-motion: reduce) {

    .trust-track,
    .tech-track,
    .spark,
    .spark.d2,
    .scroll-cue,
    .cursor-dot,
    .btn-pulse:after,
    .hero-bell i {
        animation: none !important
    }
}

/* ===== Mockup compacto en PC ===== */
:root {
    --mockup-scale: .92;
}

/* ajusta .85 – .95 si quieres */
@media (min-width: 1024px) {
    #deviceWrap.compact-pc {
        transform-origin: top center;
    }

    /* Opción A (recomendada): escalar suavemente todo el mockup */
    #deviceWrap.compact-pc {
        transform: scale(var(--mockup-scale));
    }

    /* Teléfono superpuesto más pequeño y menos invadente */
    .phone {
        width: 190px;
        height: 360px;
        right: -10px;
        bottom: -10px;
    }

    /* Badge y reflejo un poco más sutiles */
    .hero-bell {
        top: 10px;
        right: 10px;
        transform: scale(.9);
    }

    .reflection {
        opacity: .25;
    }
}

/* Si además quieres “compactarlo” ligeramente en tablets */
@media (min-width: 768px) and (max-width: 1023.98px) {
    :root {
        --mockup-scale: .96;
    }

    #deviceWrap.compact-pc {
        transform-origin: top center;
        transform: scale(var(--mockup-scale));
    }
}


/* Chips filtro */
.srvx-chip {
    border: 1px solid #e6ebf3;
    background: #fff;
    color: #334155;
    padding: .45rem .8rem;
    border-radius: 9999px;
    font-size: .9rem;
    transition: all .2s ease;
}

.srvx-chip[aria-selected="true"] {
    background: #e8f0ff;
    color: #1d4ed8;
    border-color: #cfe0ff;
}

.srvx-chip:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px
}

/* Card base */
.srvx-card {
    background: #fff;
    border: 1px solid #e6ebf3;
    border-radius: 1.1rem;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    min-width: 88%;
    position: relative;
    isolation: isolate;
}

@media (min-width:1024px) {
    .srvx-card {
        min-width: 0
    }
}

.srvx-card:hover {
    transform: translateY(-6px);
    border-color: #dbe5f1;
    box-shadow: 0 18px 60px rgba(2, 6, 23, .10)
}

/* Borde animado (glow discreto) */
.srvx-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    background: conic-gradient(from 180deg, rgba(37, 99, 235, .15), rgba(99, 102, 241, .12), rgba(37, 99, 235, .15));
    filter: blur(8px);
    transition: opacity .35s ease;
}

.srvx-card:hover::before {
    opacity: 1
}

/* Media */
.srvx-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f8fafc
}

.srvx-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .6s ease
}

.srvx-card:hover .srvx-media img {
    transform: scale(1.07)
}

.srvx-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .0) 40%, rgba(15, 23, 42, .18) 100%)
}

.srvx-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .22) 40%, transparent 60%);
    transform: translateX(-120%)
}

.srvx-card:hover .srvx-sheen {
    transform: translateX(120%);
    transition: transform .9s ease
}

/* Ribbon */
.srvx-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: .75rem;
    padding: .25rem .5rem;
    border-radius: .6rem;
    background: #1d4ed8;
    color: #fff;
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    box-shadow: 0 10px 24px rgba(29, 78, 216, .22);
}

/* Body */
.srvx-body {
    padding: 1rem 1rem 1.1rem
}

.srvx-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    color: #0f172a
}

.srvx-meta {
    margin-top: .35rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem .8rem;
    font-size: .8rem;
    color: #64748b
}

.srvx-feats {
    margin-top: .6rem;
    display: grid;
    gap: .35rem;
    color: #334155;
    font-size: .92rem
}

.srvx-feats li {
    display: flex;
    gap: .5rem
}

.srvx-feats i {
    color: #16a34a
}

/* CTA */
.srvx-cta {
    margin-top: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem
}

.srvx-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: .75rem;
    padding: .55rem .9rem;
}

.srvx-btn--primary {
    background: #2563eb;
    color: #fff
}

.srvx-btn--primary:hover {
    background: #1d4ed8
}

.srvx-link {
    color: #1d4ed8;
    font-weight: 600
}

.srvx-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

    .srvx-card,
    .srvx-media img,
    .srvx-sheen {
        transition: none !important;
        transform: none !important
    }
}

/* Proyectos: cards */
.pcard {
    background: #fff;
    border: 1px solid #e6ebf3;
    border-radius: 1.1rem;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    min-width: 88%;
}

@media (min-width:1024px) {
    .pcard {
        min-width: 0
    }
}

.pcard:hover {
    transform: translateY(-6px);
    border-color: #dbe5f1;
    box-shadow: 0 18px 60px rgba(2, 6, 23, .10)
}

.p-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f8fafc
}

.p-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .6s ease
}

.pcard:hover .p-media img {
    transform: scale(1.07)
}

.p-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .0) 40%, rgba(15, 23, 42, .2) 100%)
}

.p-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .22) 40%, transparent 60%);
    transform: translateX(-120%)
}

.pcard:hover .p-sheen {
    transform: translateX(120%);
    transition: transform .9s ease
}

.p-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: .75rem;
    padding: .25rem .5rem;
    border-radius: .6rem;
    background: #1d4ed8;
    color: #fff;
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    box-shadow: 0 10px 24px rgba(29, 78, 216, .22);
}

.p-body {
    padding: 1rem 1rem 1.1rem
}

.p-title {
    font-weight: 800;
    color: #0f172a
}

.p-text {
    margin-top: .25rem;
    color: #475569;
    font-size: .95rem
}

.p-tags {
    margin-top: .5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .6rem;
    font-size: .8rem;
    color: #64748b
}

.p-cta {
    margin-top: .8rem;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.p-link {
    color: #1d4ed8;
    font-weight: 600
}

.p-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

    .pcard,
    .p-media img,
    .p-sheen {
        transition: none !important;
        transform: none !important
    }
}