/* ============================================================
   ANIMATIONS — Enhanced Interactive System
   ============================================================ */

/* ---- Theme Toggle Button (en el nav) ---- */
.nav__item--theme {
    display: flex;
    align-items: center;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease,
                color 0.3s ease, transform 0.35s ease;
}

.theme-toggle:hover {
    background: rgba(137, 74, 129, 0.25);
    border-color: rgba(137, 74, 129, 0.55);
    color: #fff;
    transform: rotate(20deg);
}

/* En dark: mostrar luna | en light: mostrar sol */
.theme-toggle__icon { display: none; width: 16px; height: 16px; }
.theme-toggle__icon--moon { display: block; }

body.light-mode .theme-toggle__icon--moon { display: none; }
body.light-mode .theme-toggle__icon--sun  { display: block; width: 16px; height: 16px; }

body.light-mode .theme-toggle {
    border-color: rgba(137, 74, 129, 0.25);
    background: rgba(137, 74, 129, 0.1);
    color: var(--color-primary);
}

/* ---- Scroll Progress Bar ---- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg,
            var(--color-primary),
            var(--color-aurora-pink),
            var(--color-aurora-violet),
            var(--color-primary));
    background-size: 200% 100%;
    z-index: 10001;
    pointer-events: none;
    animation: progressShimmer 3s linear infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

/* ---- Custom Cursor ---- */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary-light);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
    mix-blend-mode: screen;
}

.cursor-ring {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(166, 91, 161, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease, border-radius 0.35s ease;
}

.cursor-dot.hovering {
    width: 12px;
    height: 12px;
    background: var(--color-primary);
}

.cursor-ring.hovering {
    width: 56px;
    height: 56px;
    border-color: rgba(137, 74, 129, 0.7);
}

.cursor-dot.clicking {
    width: 4px;
    height: 4px;
}

.cursor-ring.clicking {
    width: 30px;
    height: 30px;
    border-color: rgba(137, 74, 129, 1);
}

@media (hover: none),
(max-width: 1024px) {

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* ---- Neural Canvas ---- */
#neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.92;
}

/* ---- Hero Orbs ---- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.hero-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 59, 170, 0.5) 0%, transparent 70%);
    top: calc(-200px + var(--page-orb-shift-1, 0px));
    left: -150px;
    filter: blur(80px);
    animation: orbFloat1 22s ease-in-out infinite;
}

.hero-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 69, 126, 0.35) 0%, transparent 70%);
    bottom: calc(-100px - var(--page-orb-shift-2, 0px));
    right: 0%;
    filter: blur(90px);
    animation: orbFloat2 28s ease-in-out infinite;
}

.hero-orb--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 74, 170, 0.28) 0%, transparent 70%);
    top: calc(30% + var(--page-orb-shift-3, 0px));
    right: 15%;
    filter: blur(70px);
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(70px, -50px) scale(1.08);
    }

    66% {
        transform: translate(-40px, 70px) scale(0.95);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(-90px, -60px) scale(1.06);
    }

    70% {
        transform: translate(50px, 40px) scale(0.97);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(60px, -80px) scale(1.04);
    }
}

/* ---- Hero Grid Overlay ---- */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position:
        var(--page-grid-shift-x, 0px) var(--page-grid-shift, 0px),
        calc(var(--page-grid-shift-x, 0px) * -1) var(--page-grid-shift, 0px);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 0, 0, 0.8) 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 0, 0, 0.8) 20%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

/* ---- Hero Overline ---- */
.hero-overline {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInDown 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s forwards;
}

.hero-overline::before,
.hero-overline::after {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--color-primary-light);
    opacity: 0.55;
    flex-shrink: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Hero title ---- */
.hero-title {
    font-size: clamp(2rem, 4.5vw, 4rem) !important;
    letter-spacing: -0.03em !important;
    line-height: 1.0 !important;
    margin-bottom: 1.6rem !important;
    max-width: 720px !important;
}

/* ---- Word Reveal Animation ---- */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    margin-right: 0.22em;
}

.word-wrap:last-child {
    margin-right: 0;
}

.word-inner {
    display: inline-block;
    transform: translateY(110%);
    will-change: transform;
}

/* ---- Floating Particles ---- */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleRise linear infinite;
}

@keyframes particleRise {
    0% {
        transform: translateY(110vh) scale(0);
        opacity: 0;
    }

    6% {
        opacity: 0.8;
    }

    92% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ---- Pillars Section ---- */
.pillars-section {
    position: relative;
    z-index: 14;
    padding: 5rem 3rem;
    background: transparent;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.pillar-card {
    padding: 2.75rem 1.6rem 1.7rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    align-self: stretch;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease,
                background 0.4s ease;
    /* colores en dark-theme.css */
}

.pillar-card h3,
.pillar-card .pillar-title {
    margin: 0 0 0.7rem;
}

.pillar-card p {
    margin: 0;
}

/* Línea glow izquierda */
.pillar-card::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 0;
    width: 2px;
    height: 70%;
    background: linear-gradient(180deg, transparent, rgba(137, 74, 129, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 2px;
}

.pillar-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(196, 69, 126, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%);
    opacity: 0.8;
    pointer-events: none;
}

.pillar-card:nth-child(1)::before,
.pillar-card:nth-child(2)::before,
.pillar-card:nth-child(3)::before,
.pillar-card:nth-child(4)::before {
    opacity: 1;
}

.pillar-card:nth-child(1)::after,
.pillar-card:nth-child(2)::after,
.pillar-card:nth-child(3)::after,
.pillar-card:nth-child(4)::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%);
}

.pillar-card:nth-child(1) .pillar-title::before,
.pillar-card:nth-child(2) .pillar-title::before,
.pillar-card:nth-child(3) .pillar-title::before,
.pillar-card:nth-child(4) .pillar-title::before {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.95rem;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    font-family: var(--font-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(137, 74, 129, 0.12);
    border: 1px solid rgba(196, 69, 126, 0.18);
    color: rgba(255, 220, 242, 0.74);
}

.pillar-card:nth-child(1) .pillar-title::before { content: 'Dispositivos'; }
.pillar-card:nth-child(2) .pillar-title::before { content: 'Monitoreo'; }
.pillar-card:nth-child(3) .pillar-title::before { content: 'Inteligencia'; }
.pillar-card:nth-child(4) .pillar-title::before { content: 'Plataforma'; }

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card:hover {
    transform: none;
}

.pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    background: rgba(137, 74, 129, 0.14);
    border: 1px solid rgba(137, 74, 129, 0.25);
    color: var(--color-primary-light, #a65ba1);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.pillar-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 65%);
    opacity: 0.8;
    pointer-events: none;
}

.pillar-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    position: relative;
    z-index: 1;
}

.pillar-card:hover .pillar-icon {
    background: rgba(137, 74, 129, 0.22);
    border-color: rgba(196, 69, 126, 0.38);
    box-shadow: 0 0 22px rgba(137, 74, 129, 0.22);
    transform: translateY(-1px);
}

.pillar-title {
    font-family: var(--font-secondary);
    font-size: 1.14rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
    letter-spacing: 0;
    text-wrap: balance;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pillar-desc {
    font-family: var(--font-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 26ch;
}

@media (max-width: 900px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pillars-section {
        padding: 3rem 1.5rem;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ---- Section Banner (dramatic dividers) ---- */
.section-banner {
    width: 100%;
    padding: 3.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.section-banner__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(137, 74, 129, 0.4));
}

.section-banner__line--right {
    background: linear-gradient(90deg, rgba(137, 74, 129, 0.4), transparent);
}

.section-banner__label {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: clamp(0.7rem, 1.5vw, 0.82rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-banner__label i {
    color: var(--color-primary-light);
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(137, 74, 129, 0.6));
}

.section-banner__label .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary-light);
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .section-banner {
        padding: 2.5rem 1.5rem;
        gap: 1rem;
    }
}

/* ---- "Próximamente" banner: variante realzada ---- */
#coming-soon.section-banner {
    padding: 3rem 3rem 2.75rem;
    margin-top: 1.5rem;
}

.section-banner--premium {
    gap: 2rem !important;
    justify-content: center !important;
    position: relative;
}

.section-banner--premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 90% at 50% 50%,
            rgba(166, 91, 161, 0.12) 0%,
            rgba(108, 59, 170, 0.06) 45%,
            transparent 80%);
    pointer-events: none;
    z-index: -1;
}

/* Líneas finas con highlight viajero */
.section-banner--premium .section-banner__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(166, 91, 161, 0.35) 50%,
        rgba(196, 69, 126, 0.85) 100%);
    position: relative;
    overflow: visible;
}

.section-banner--premium .section-banner__line--right {
    background: linear-gradient(90deg,
        rgba(196, 69, 126, 0.85) 0%,
        rgba(166, 91, 161, 0.35) 50%,
        transparent 100%);
}

/* Highlight que recorre la línea */
.section-banner--premium .section-banner__line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 210, 230, 0.9),
        transparent);
    filter: blur(1px);
    animation: comingSoonTravel 4.5s ease-in-out infinite;
}

.section-banner--premium .section-banner__line--right::before {
    animation: comingSoonTravelReverse 4.5s ease-in-out infinite;
}

@keyframes comingSoonTravel {
    0%   { transform: translateX(-100%); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(350%); opacity: 0; }
}

@keyframes comingSoonTravelReverse {
    0%   { transform: translateX(350%); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
}

/* Puntos luminosos en los extremos junto al pill */
.section-banner--premium .section-banner__line::after,
.section-banner--premium .section-banner__line--right ~ * {
    /* no-op placeholder */
}

.section-banner--premium .section-banner__line::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffe0ee;
    box-shadow:
        0 0 6px rgba(255, 180, 215, 1),
        0 0 14px rgba(196, 69, 126, 0.8),
        0 0 28px rgba(166, 91, 161, 0.45);
    transform: translateY(-50%);
    animation: comingSoonDot 2.8s ease-in-out infinite;
}

.section-banner--premium .section-banner__line--right::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffe0ee;
    box-shadow:
        0 0 6px rgba(255, 180, 215, 1),
        0 0 14px rgba(196, 69, 126, 0.8),
        0 0 28px rgba(166, 91, 161, 0.45);
    transform: translateY(-50%);
    animation: comingSoonDot 2.8s ease-in-out infinite 0.4s;
}

@keyframes comingSoonDot {
    0%, 100% { transform: translateY(-50%) scale(1);    opacity: 0.9; }
    50%      { transform: translateY(-50%) scale(1.4);  opacity: 1; }
}

/* Pill refinado */
.section-banner--premium .section-banner__label {
    position: relative;
    font-size: clamp(0.7rem, 1.3vw, 0.82rem);
    font-weight: 500;
    letter-spacing: 0.38em;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 0 14px rgba(166, 91, 161, 0.45);
    padding: 0.65rem 1.8rem 0.65rem 1.5rem;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(135deg,
            rgba(20, 14, 32, 0.72) 0%,
            rgba(32, 18, 48, 0.55) 100%) padding-box,
        linear-gradient(135deg,
            rgba(196, 69, 126, 0.55) 0%,
            rgba(166, 91, 161, 0.35) 50%,
            rgba(108, 59, 170, 0.55) 100%) border-box;
    box-shadow:
        inset 0 0 20px rgba(166, 91, 161, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 22px rgba(108, 59, 170, 0.25),
        0 0 32px rgba(196, 69, 126, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
}

/* Sheen que barre el pill */
.section-banner--premium .section-banner__label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 45%;
    height: 100%;
    background: linear-gradient(110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 210, 230, 0.18) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 100%);
    transform: skewX(-18deg);
    animation: comingSoonSheen 5.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes comingSoonSheen {
    0%, 20%  { left: -60%; opacity: 0; }
    35%      { opacity: 1; }
    65%      { opacity: 1; }
    80%, 100% { left: 160%; opacity: 0; }
}

.section-banner--premium .section-banner__label i {
    color: var(--color-primary-light);
    font-size: 0.92rem;
    filter: drop-shadow(0 0 8px rgba(166, 91, 161, 0.75));
    animation: comingSoonIcon 3.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.section-banner--premium .section-banner__label > *:not(i) {
    position: relative;
    z-index: 1;
}

@keyframes comingSoonIcon {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(166, 91, 161, 0.7)); }
    50%      { filter: drop-shadow(0 0 14px rgba(196, 69, 126, 0.95)); }
}

@media (max-width: 600px) {
    #coming-soon.section-banner {
        padding: 3rem 1.5rem;
        margin-top: 1.5rem;
        gap: 1rem;
    }
    .section-banner--premium .section-banner__label {
        padding: 0.6rem 1rem;
        letter-spacing: 0.22em;
    }
}

/* ---- Motus-R top image variante "wide" (para Fortis Smart landscape) ---- */
.motus-r__top-image--wide {
    width: 380px;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motus-r__top-image--wide .motus-r__img-glow {
    inset: -42% -34%;
    z-index: 0;
    opacity: 1;
    background:
        radial-gradient(ellipse at center,
            rgba(137, 74, 129, 0.46) 0%,
            rgba(137, 74, 129, 0.26) 34%,
            rgba(108, 59, 170, 0.13) 56%,
            transparent 74%);
    filter: blur(38px);
}

.motus-r__top-image--wide::before {
    inset: -10% -4%;
    z-index: 0;
    background:
        radial-gradient(ellipse at center,
            rgba(196, 69, 126, 0.24) 0%,
            rgba(137, 74, 129, 0.16) 38%,
            transparent 68%);
    filter: blur(30px);
}

.motus-r__top-image--wide .motus-r__img {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.motus-r__top-image--wide .motus-r__img img {
    width: 100%;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

@media (max-width: 900px) {
    .motus-r__top-image--wide {
        width: 100%;
        max-width: 340px;
    }
}

/* ---- Product Divider (entre productos en desarrollo) ---- */
.product-divider {
    width: 100%;
    height: 2.5px;
    position: relative;
    margin: 1rem 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(137, 74, 129, 0.22) 30%,
        rgba(166, 91, 161, 0.4) 50%,
        rgba(137, 74, 129, 0.22) 70%,
        transparent 100%);
    box-shadow: 0 0 10px rgba(166, 91, 161, 0.18);
}

/* ---- Glow Separator ---- */
.glow-separator {
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(137, 74, 129, 0.55) 20%,
            rgba(196, 69, 126, 0.85) 50%,
            rgba(137, 74, 129, 0.55) 80%,
            transparent 100%);
    box-shadow:
        0 0 12px rgba(196, 69, 126, 0.45),
        0 0 28px rgba(108, 59, 170, 0.28);
    position: relative;
    z-index: 5;
    margin: 0;
}

/* ---- App Showcase ---- */
.app-showcase {
    position: relative;
    background: linear-gradient(180deg, #04040d 0%, #080818 50%, #04040d 100%);
    overflow: hidden;
    padding: 0 3rem 8rem;
}

/* Banner integrado dentro del showcase */
.app-showcase__banner {
    width: 100%;
    padding: 3rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.app-showcase__banner .section-banner__line {
    background: linear-gradient(90deg, transparent, rgba(137, 74, 129, 0.4));
}
.app-showcase__banner .section-banner__line--right {
    background: linear-gradient(90deg, rgba(137, 74, 129, 0.4), transparent);
}

/* Botón demo — cierre centrado de la sección Neuralia */
.neuralia-demo-cta {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-top: 0.4rem;
}

.app-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 auto;
    width: max-content;
}

.app-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 85% 45%, rgba(108, 59, 170, 0.3) 0%, transparent 65%),
        radial-gradient(ellipse 55% 45% at 15% 65%, rgba(137, 74, 129, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 50% 20%, rgba(59, 74, 170, 0.18) 0%, transparent 60%);
    background-position:
        0 var(--page-showcase-shift, 0px),
        0 calc(var(--page-showcase-shift, 0px) * 0.6),
        0 calc(var(--page-showcase-shift, 0px) * 0.32);
    filter: blur(70px);
    opacity: var(--page-showcase-opacity, 0.92);
    z-index: 0;
    animation: auroraShift2 25s ease-in-out infinite;
    will-change: background-position, opacity;
}

.app-showcase__container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.app-showcase__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.app-showcase__title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.04em;
    line-height: 1;
}

.app-showcase__subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.48);
    font-weight: 300;
    max-width: 500px;
    line-height: 1.75;
}

.app-showcase__content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: center;
}

.neuralia-advanced {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.8rem;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015) 42%, rgba(74, 222, 128, 0.025)),
        linear-gradient(180deg, rgba(8, 8, 24, 0.88), rgba(4, 4, 13, 0.94));
    overflow: hidden;
    box-shadow:
        0 38px 90px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.neuralia-advanced::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(166, 91, 161, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(166, 91, 161, 0.07) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.65;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 84%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 84%);
    pointer-events: none;
}

.neuralia-advanced::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 0%,
            transparent 38%,
            rgba(255, 255, 255, 0.09) 48%,
            transparent 58%,
            transparent 100%);
    transform: translateX(-115%);
    animation: neuraliaPanelScan 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes neuraliaPanelScan {
    0%, 18% { transform: translateX(-115%); opacity: 0; }
    28% { opacity: 0.8; }
    48%, 100% { transform: translateX(115%); opacity: 0; }
}

.neuralia-advanced__header,
.neuralia-advanced__grid {
    position: relative;
    z-index: 1;
}

.neuralia-advanced__header {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 1rem 1rem 0;
}

.neuralia-advanced__heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.neuralia-advanced__eyebrow {
    display: inline-flex;
    width: max-content;
    font-family: var(--font-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(255, 220, 242, 0.72);
    padding: 0.38rem 0.68rem;
    border: 1px solid rgba(196, 69, 126, 0.2);
    border-radius: 999px;
    background: rgba(137, 74, 129, 0.13);
}

.neuralia-advanced__title {
    max-width: 520px;
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(1.45rem, 2.4vw, 2.15rem);
    line-height: 1.02;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.94);
    text-wrap: balance;
}

.neuralia-signal {
    position: relative;
    min-height: 168px;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    border: 1px solid rgba(166, 91, 161, 0.22);
    background:
        linear-gradient(180deg, rgba(2, 2, 12, 0.78), rgba(8, 8, 24, 0.52)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 26px);
    overflow: hidden;
    box-shadow: inset 0 0 34px rgba(166, 91, 161, 0.08);
}

.neuralia-signal::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 26%;
    left: -30%;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.1), rgba(255, 107, 203, 0.16), transparent);
    animation: neuraliaSignalSweep 3.8s linear infinite;
}

@keyframes neuraliaSignalSweep {
    to { left: 105%; }
}

.neuralia-signal__label,
.neuralia-signal__readouts {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-secondary);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.44);
}

.neuralia-signal__label strong {
    color: rgba(255, 255, 255, 0.84);
    font-weight: 700;
}

.neuralia-signal__wave {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 92px;
    margin: 0.4rem 0 0.1rem;
}

.neuralia-signal__ghost,
.neuralia-signal__pulse {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.neuralia-signal__ghost {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 2;
}

.neuralia-signal__pulse {
    stroke: url(#neuraliaSignalGradient);
    stroke-width: 3;
    stroke-dasharray: 92 520;
    animation: neuraliaPulseFlow 2.7s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 107, 203, 0.48));
}

@keyframes neuraliaPulseFlow {
    to { stroke-dashoffset: -612; }
}

.neuralia-signal__readouts span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.58);
}

.neuralia-signal__readouts span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.8);
}

.neuralia-signal__readouts span:nth-child(2)::before {
    background: #a65ba1;
    box-shadow: 0 0 12px rgba(166, 91, 161, 0.8);
}

.neuralia-signal__readouts span:nth-child(3)::before {
    background: #ff6bcb;
    box-shadow: 0 0 12px rgba(255, 107, 203, 0.8);
}

.neuralia-advanced__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 0 1rem 1rem;
}

.neuralia-advanced__card {
    min-height: 202px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.15rem 1.05rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        rgba(5, 5, 16, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 28px rgba(0, 0, 0, 0.16);
    transform: translateY(0);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    animation: neuraliaCardGlow 4.8s ease-in-out infinite;
    animation-delay: calc(var(--i, 1) * 0.24s);
}

@keyframes neuraliaCardGlow {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.075);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(0, 0, 0, 0.16);
    }
    50% {
        border-color: rgba(196, 69, 126, 0.24);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 34px rgba(137, 74, 129, 0.14);
    }
}

.neuralia-advanced__card:hover {
    border-color: rgba(196, 69, 126, 0.28);
    background:
        linear-gradient(180deg, rgba(166, 91, 161, 0.12), rgba(255, 255, 255, 0.018)),
        rgba(5, 5, 16, 0.7);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.neuralia-advanced__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--color-primary-light, #a65ba1);
    background: rgba(137, 74, 129, 0.16);
    border: 1px solid rgba(166, 91, 161, 0.22);
    box-shadow: 0 0 18px rgba(166, 91, 161, 0.12);
}

.neuralia-advanced__icon svg {
    width: 21px;
    height: 21px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(166, 91, 161, 0.4));
}

.neuralia-advanced__card h4 {
    margin: 0.2rem 0 0;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.22;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.9);
}

.neuralia-advanced__card p {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: 0.79rem;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.52);
}

/* Feature list */
.app-showcase__features {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.85rem;
    width: 100%;
}

.app-feature {
    display: flex;
    align-items: center;       /* centrado vertical */
    gap: 1.2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    cursor: default;
    transition:
        background  0.35s ease,
        border-color 0.35s ease,
        box-shadow   0.35s ease,
        transform    0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Línea izquierda que se desliza hacia adentro en hover */
.app-feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12%;
    height: 76%;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, rgba(137, 74, 129, 0.9), transparent);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.app-feature:hover {
    background: rgba(137, 74, 129, 0.07);
    border-color: rgba(137, 74, 129, 0.22);
    box-shadow: 0 4px 24px rgba(137, 74, 129, 0.1);
    transform: translateX(6px);
}

.app-feature:hover::before {
    transform: scaleY(1);
}

.app-feature__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(137, 74, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    font-size: 1.1rem;
    border: 1px solid rgba(137, 74, 129, 0.22);
    flex-shrink: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.app-feature__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.app-feature:hover .app-feature__icon {
    background: rgba(137, 74, 129, 0.28);
    box-shadow: 0 0 16px rgba(137, 74, 129, 0.3);
}

.app-feature__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-feature__text h3 {
    font-family: var(--font-secondary);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

.app-feature__text p {
    font-family: var(--font-secondary);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
}

/* Dashboard Mockup */
.app-showcase__mockup {
    position: relative;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-showcase__mockup > .mockup-stack,
.app-showcase__mockup > .mockup-dots {
    width: 100%;
}

/* 3D stack that holds peeking frames */
.mockup-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.92;
    perspective: 1800px;
    transform-style: preserve-3d;
}

.mockup-frame {
    background: #080818;
    border-radius: 18px;
    border: 1px solid rgba(137, 74, 129, 0.22);
    box-shadow:
        0 0 0 1px rgba(137, 74, 129, 0.08),
        0 60px 120px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(108, 59, 170, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Each slide-frame positioned absolutely within stack */
.mockup-frame.mockup-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translate3d(0, 0, -420px) scale(0.78);
    filter: blur(6px) saturate(0.7);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

.mockup-frame.mockup-slide.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0) saturate(1);
    pointer-events: auto;
    z-index: 5;
    box-shadow:
        0 0 0 1px rgba(166, 91, 161, 0.15),
        0 60px 120px rgba(0, 0, 0, 0.65),
        0 0 140px rgba(108, 59, 170, 0.22);
}

.mockup-frame.mockup-slide.is-prev {
    opacity: 0.38;
    transform: translate3d(-38%, 0, -180px) scale(0.84) rotateY(20deg);
    filter: blur(1.5px) saturate(0.75);
    z-index: 2;
}

.mockup-frame.mockup-slide.is-next {
    opacity: 0.38;
    transform: translate3d(38%, 0, -180px) scale(0.84) rotateY(-20deg);
    filter: blur(1.5px) saturate(0.75);
    z-index: 2;
}

.mockup-frame.mockup-slide.is-active:hover {
    transform: translate3d(0, -4px, 10px) scale(1.005);
}

@keyframes mockupFloat {

    0%,
    100% {
        transform: perspective(1400px) rotateY(-8deg) rotateX(4deg) translateY(0px);
    }

    50% {
        transform: perspective(1400px) rotateY(-8deg) rotateX(4deg) translateY(-14px);
    }
}

.mockup-topbar {
    background: #050510;
    padding: 0.75rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(137, 74, 129, 0.1);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot--red {
    background: #ff5f57;
}

.mockup-dot--yellow {
    background: #febc2e;
}

.mockup-dot--green {
    background: #28c840;
}

.mockup-title {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    margin-left: auto;
    letter-spacing: 0.07em;
}

/* ---- Mockup body (per-frame content area) ---- */
.mockup-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
    overflow: hidden;
}

/* ---- Slide 2: Predicción IA ---- */
.mockup-ai-summary {
    background: linear-gradient(135deg, rgba(137, 74, 129, 0.1), rgba(108, 59, 170, 0.06));
    border: 1px solid rgba(166, 91, 161, 0.2);
    border-radius: 12px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mockup-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-ai-badge {
    font-size: 0.56rem;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mockup-ai-badge i {
    color: #a65ba1;
}

.mockup-ai-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: aiPulse 1.8s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.mockup-ai-text {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.mockup-ai-line {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
}

.mockup-ai-reco {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    padding: 0.55rem 0.7rem;
    background: rgba(137, 74, 129, 0.12);
    border-radius: 8px;
}

.mockup-ai-reco-bar {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(to bottom, #a65ba1, #6c3baa);
}

.mockup-ai-reco-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
}

.mockup-metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.mockup-metric {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    padding: 0.6rem 0.7rem;
    position: relative;
    overflow: hidden;
}

.mockup-metric::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: currentColor;
    opacity: 0.55;
}

.mockup-metric--up { color: #4ade80; }
.mockup-metric--down { color: #a65ba1; }
.mockup-metric--warn { color: #c4457e; }

.mockup-metric__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.mockup-metric__label {
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mockup-metric__trend {
    font-size: 0.52rem;
    color: currentColor;
    font-family: var(--font-secondary);
}

.mockup-metric__value {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: currentColor;
    font-weight: 700;
    line-height: 1;
}

.mockup-metric__value span {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    margin-left: 0.25rem;
}

.mockup-metric__proj {
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.25rem;
}

/* ---- Slide 3: Gemelo Digital ---- */
.mockup-gauges {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.4rem;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.mockup-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    color: #4ade80;
}

.mockup-gauge--hot { color: #c4457e; }

.mockup-gauge svg {
    width: 38px;
    height: 38px;
    transform: rotate(-90deg);
}

.mockup-gauge .g-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 3;
}

.mockup-gauge .g-arc {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 113;
    stroke-dashoffset: calc(113 - (113 * var(--p) / 100));
    filter: drop-shadow(0 0 4px currentColor);
}

.mockup-gauge__val {
    font-family: var(--font-primary);
    font-size: 0.66rem;
    color: currentColor;
    font-weight: 700;
    line-height: 1;
}

.mockup-gauge__val span {
    font-size: 0.45rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    margin-left: 0.15rem;
}

.mockup-gauge__lbl {
    font-size: 0.45rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mockup-twin {
    flex: 1;
    background: linear-gradient(180deg, rgba(7, 7, 15, 0.6), rgba(0, 0, 0, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mockup-twin__label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mockup-twin__stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    background:
        radial-gradient(ellipse at center 60%, rgba(108, 59, 170, 0.18), transparent 70%),
        linear-gradient(180deg, rgba(7, 7, 15, 0.3), rgba(0, 0, 0, 0.5));
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
}

/* Subtle floor grid */
.mockup-twin__grid {
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background-image:
        linear-gradient(to right, rgba(166, 91, 161, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(166, 91, 161, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    transform: perspective(400px) rotateX(58deg);
    transform-origin: bottom center;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
}

.mockup-twin__hand {
    position: relative;
    width: 140px;
    height: 210px;
    animation: twinFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(166, 91, 161, 0.4));
}

.mockup-twin__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0.9) saturate(1.1);
}

@keyframes twinFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

/* ---- Heatmap blobs positioned over anatomical zones ---- */
.mockup-heat {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: heatPulse 2.8s ease-in-out infinite;
}

/* Z. Carpiana (palm center) — HOT */
.mockup-heat--carpiana {
    width: 52px; height: 52px;
    top: 46%; left: 44%;
    background: radial-gradient(circle,
        rgba(255, 80, 80, 0.9) 0%,
        rgba(255, 120, 60, 0.65) 35%,
        rgba(196, 69, 126, 0.35) 60%,
        transparent 80%);
    filter: blur(4px);
}

/* Antebrazo (forearm) — VERY HOT */
.mockup-heat--antebrazo {
    width: 44px; height: 44px;
    bottom: 14%; left: 50%;
    background: radial-gradient(circle,
        rgba(255, 60, 60, 0.95) 0%,
        rgba(251, 188, 36, 0.6) 40%,
        rgba(196, 69, 126, 0.3) 65%,
        transparent 85%);
    filter: blur(5px);
    animation-delay: 0.6s;
}

/* Tenar (thumb base) — cool */
.mockup-heat--tenar {
    width: 30px; height: 30px;
    top: 30%; left: 24%;
    background: radial-gradient(circle,
        rgba(74, 222, 128, 0.7) 0%,
        rgba(108, 59, 170, 0.35) 55%,
        transparent 80%);
    filter: blur(6px);
    animation-delay: 1.2s;
}

/* Hipotenar (pinky base) — warm */
.mockup-heat--hipotenar {
    width: 34px; height: 34px;
    top: 38%; right: 20%;
    background: radial-gradient(circle,
        rgba(251, 188, 36, 0.75) 0%,
        rgba(196, 69, 126, 0.4) 55%,
        transparent 80%);
    filter: blur(5px);
    animation-delay: 0.9s;
}

/* Est. Radial (wrist outer) — cool-warm */
.mockup-heat--radial {
    width: 26px; height: 26px;
    top: 68%; left: 30%;
    background: radial-gradient(circle,
        rgba(166, 91, 161, 0.7) 0%,
        rgba(108, 59, 170, 0.35) 60%,
        transparent 85%);
    filter: blur(5px);
    animation-delay: 1.5s;
}

@keyframes heatPulse {
    0%, 100% { opacity: 0.55; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ---- Twin pins ---- */
.mockup-twin__pin {
    position: absolute;
    font-family: var(--font-secondary);
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(7, 7, 15, 0.78);
    border: 1px solid rgba(166, 91, 161, 0.4);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.mockup-twin__pin em {
    font-style: normal;
    font-size: 0.42rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mockup-twin__pin strong {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-primary);
}

.mockup-twin__pin strong span {
    font-size: 0.45rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.2rem;
}

/* Connector dot + line effect via border-left bar */
.mockup-twin__pin::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    transform: translateY(-50%);
}

.mockup-twin__pin--carpiana {
    top: 44%; right: 12%;
    color: #ff6b6b;
}
.mockup-twin__pin--carpiana::before { left: -14px; }
.mockup-twin__pin--carpiana strong { color: #ff6b6b; }

.mockup-twin__pin--antebrazo {
    bottom: 16%; left: 10%;
    color: #fbbf24;
}
.mockup-twin__pin--antebrazo::before { right: -14px; left: auto; }
.mockup-twin__pin--antebrazo strong { color: #fbbf24; }

.mockup-twin__pin--tenar {
    top: 22%; left: 10%;
    color: #4ade80;
}
.mockup-twin__pin--tenar::before { right: -14px; left: auto; }
.mockup-twin__pin--tenar strong { color: #4ade80; }

/* ---- Slide 4: Historial ---- */
.mockup-history {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.mockup-history--compact { flex: 0 0 auto; }

.mockup-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-history__label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mockup-history__tabs {
    display: flex;
    gap: 0.25rem;
}

.mockup-history__tabs span {
    font-family: var(--font-secondary);
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
}

.mockup-history__tabs span.is-active {
    background: rgba(166, 91, 161, 0.3);
    color: #fff;
}

.mockup-history__chart {
    width: 100%;
    height: 100px;
}

.mockup-history__chart--sm { height: 48px; }

.mh-line {
    fill: none;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 2.5s ease-out forwards;
}

.mh-line--1 { stroke: #4ade80; animation-delay: 0.1s; }
.mh-line--2 { stroke: #fbbf24; animation-delay: 0.3s; }
.mh-line--3 { stroke: #a65ba1; animation-delay: 0.5s; }
.mh-line--pink { stroke: #c4457e; stroke-width: 1; }
.mh-line--orange { stroke: #fb923c; stroke-width: 1.2; }

.mockup-slide.is-active .mh-line {
    animation: drawLine 2.5s ease-out forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.mockup-history__legend {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    font-family: var(--font-secondary);
    font-size: 0.48rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.05em;
}

.mockup-history__legend i {
    display: inline-block;
    width: 8px;
    height: 2px;
    border-radius: 1px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

/* ---- Carousel dots ---- */
.mockup-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0 0.9rem;
    background: linear-gradient(to top, rgba(7, 7, 15, 0.6), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mockup-dot-btn {
    width: 18px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    padding: 0;
    transition: background 0.35s ease, width 0.35s ease;
}

.mockup-dot-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mockup-dot-btn.is-active {
    background: linear-gradient(90deg, #a65ba1, #c4457e);
    width: 28px;
    box-shadow: 0 0 10px rgba(166, 91, 161, 0.5);
}

.mockup-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.mockup-stat {
    background: rgba(137, 74, 129, 0.1);
    border: 1px solid rgba(137, 74, 129, 0.16);
    border-radius: 10px;
    padding: 0.75rem;
}

.mockup-stat__label {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-secondary);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.mockup-stat__value {
    font-size: 1.3rem;
    font-family: var(--font-primary);
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mockup-stat__trend {
    font-size: 0.58rem;
    color: #4ade80;
    font-family: var(--font-secondary);
    margin-top: 0.1rem;
}

.mockup-stat__trend--warn {
    color: #fbbf24;
}

.mockup-chart {
    background: rgba(137, 74, 129, 0.05);
    border: 1px solid rgba(137, 74, 129, 0.11);
    border-radius: 10px;
    padding: 0.85rem;
}

.mockup-chart__label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.28);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.55rem;
}

.mockup-chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 50px;
}

.mockup-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    opacity: 0.9;
}

.mockup-bar--primary {
    background: linear-gradient(to top, var(--color-primary), rgba(108, 59, 170, 0.6));
}

.mockup-bar--accent {
    background: linear-gradient(to top, var(--color-aurora-pink), rgba(108, 59, 170, 0.5));
}

.mockup-patients {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.mockup-patient-row {
    background: rgba(255, 255, 255, 0.025);
    border-radius: 7px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.mockup-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mockup-avatar--1 {
    background: linear-gradient(135deg, #894a81, #6c3baa);
}

.mockup-avatar--2 {
    background: linear-gradient(135deg, #c4457e, #894a81);
}

.mockup-avatar--3 {
    background: linear-gradient(135deg, #3b4aaa, #6c3baa);
}

.mockup-patient-info {
    flex: 1;
}

.mockup-patient-name {
    width: 70px;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin-bottom: 4px;
}

.mockup-patient-sub {
    width: 46px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.mockup-status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mockup-status--green {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
    animation: pulseDot 2.2s ease-in-out infinite;
}

.mockup-status--yellow {
    background: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

@media (max-width: 1024px) {
    .app-showcase__content {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .app-showcase__features {
        max-width: 640px;
        margin: 0 auto;
        justify-self: center;
        width: 100%;
    }

    .app-showcase__mockup {
        justify-self: stretch;
        width: 100%;
    }

    .neuralia-advanced__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .neuralia-advanced__header {
        grid-template-columns: 1fr;
    }

    .neuralia-advanced__card {
        min-height: 170px;
    }

    .mockup-stack {
        aspect-ratio: 1 / 1.1;
    }

    .mockup-frame.mockup-slide.is-prev,
    .mockup-frame.mockup-slide.is-next {
        opacity: 0.22;
    }
}

@media (max-width: 720px) {
    .app-showcase__mockup {
        padding: 0 2%;
    }
    .mockup-stack {
        aspect-ratio: 1 / 1.25;
    }
    .mockup-frame.mockup-slide.is-prev {
        transform: translate3d(-50%, 0, -220px) scale(0.78) rotateY(24deg);
    }
    .mockup-frame.mockup-slide.is-next {
        transform: translate3d(50%, 0, -220px) scale(0.78) rotateY(-24deg);
    }
}

@media (max-width: 600px) {
    .app-showcase {
        padding: 5rem 1.25rem;
    }

    .app-showcase__container {
        gap: 3.5rem;
        width: 100%;
    }

    .app-showcase__content {
        width: 100%;
        justify-items: center;
    }

    .app-showcase__features {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
    }

    .neuralia-advanced {
        width: 100%;
        padding: 1.25rem;
    }

    .neuralia-advanced__header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding: 0;
    }

    .neuralia-signal {
        min-height: 138px;
        padding: 0.8rem;
    }

    .neuralia-signal__wave {
        height: 70px;
    }

    .neuralia-signal__label,
    .neuralia-signal__readouts {
        font-size: 0.56rem;
        letter-spacing: 0.1em;
    }

    .neuralia-signal__readouts {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .neuralia-advanced__grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .neuralia-advanced__card {
        min-height: auto;
    }

    .app-feature {
        padding: 1rem 1.1rem;
        gap: 0.9rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Neutraliza hover pegado en touch que corría la card hacia la derecha */
    .app-feature:hover {
        transform: none;
    }

    .app-feature__text {
        min-width: 0;
        flex: 1;
    }

    .app-feature__text h3 {
        white-space: normal;
        font-size: 0.92rem;
        line-height: 1.25;
    }

    .app-feature__text p {
        font-size: 0.82rem;
    }
}

/* ---- Contact CTA Section ---- */
.contact-cta {
    position: relative;
    padding: 7rem 3rem 8rem;
    overflow: hidden;
    background: linear-gradient(180deg, #04040d 0%, #0a0a18 50%, #030308 100%);
    isolation: isolate;
}

.contact-cta__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
    opacity: 0.55;
}

.contact-cta__orb--1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(108, 59, 170, 0.5), transparent 70%);
    top: -180px;
    left: -120px;
    animation: orbFloat1 24s ease-in-out infinite;
}

.contact-cta__orb--2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(196, 69, 126, 0.4), transparent 70%);
    bottom: -150px;
    right: -80px;
    animation: orbFloat2 28s ease-in-out infinite;
}

.contact-cta__container {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.contact-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-primary-light, #a65ba1);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(166, 91, 161, 0.1);
    border: 1px solid rgba(166, 91, 161, 0.25);
}

.contact-cta__eyebrow .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary-light, #a65ba1);
    animation: pulseDot 2s ease-in-out infinite;
}

.contact-cta__title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin: 0.4rem 0 0.2rem;
    text-wrap: balance;
}

.contact-cta__subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    max-width: 580px;
    margin: 0 auto;
    font-weight: 300;
}

.contact-cta__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.contact-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.7rem;
    font-size: 0.95rem;
}

.contact-cta__btn i {
    font-size: 1.05rem;
}

.contact-cta__meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    font-family: var(--font-secondary);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.04em;
}

.contact-cta__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-cta__meta i {
    color: var(--color-primary-light, #a65ba1);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .contact-cta {
        padding: 5rem 1.5rem 6rem;
    }

    .contact-cta__actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .contact-cta__btn {
        justify-content: center;
        width: 100%;
    }

    .contact-cta__meta {
        gap: 1rem;
        flex-direction: column;
        margin-top: 1.5rem;
    }
}
