/* ════════════════════════════════════════
   SOFTWARE.CSS — Portafolio de proyectos
   Tema oscuro: negro profundo, blanco y
   gris claro como acento.
   ════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
    --accent:          #d4d4d8;
    --accent-hover:    #e8e8ec;
    --sw-bg:           #0a0a0a;
    --sw-panel:        #131313;
    --sw-border:       rgba(255,255,255,0.09);
    --sw-border-strong:rgba(255,255,255,0.2);
    --sw-text-muted:   rgba(255,255,255,0.55);
    --sw-text-muted-2: rgba(255,255,255,0.4);
}

body[data-page="software"] { background: var(--sw-bg); }
body[data-page="software"] h1,
body[data-page="software"] h2,
body[data-page="software"] h3,
body[data-page="software"] .section-title,
body[data-page="software"] .navbar-brand,
body[data-page="software"] .sw-stat .num,
body[data-page="software"] .price-amount .val {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}
body[data-page="software"] .section-title { color: #fff; }
body[data-page="software"] .section-subtitle { color: var(--sw-text-muted); }
body[data-page="software"] .section-chip {
    background: rgba(255,255,255,0.06);
    color: var(--accent);
    border: 1px solid rgba(255,255,255,0.14);
}

/* La animación de entrada la controla Motion (JS) directamente,
   así que se anula la transición CSS de .fade-in para que no compita
   con la animación de Motion y la deje a medio camino. */
body[data-page="software"] .fade-in {
    transition: none;
}

/* Grupos con entrada escalonada (stagger) controlada por Motion (JS).
   .stagger-item empieza oculto; si el CDN de Motion falla, el respaldo
   en JS le agrega la clase .visible y aquí sí se anima por CSS. */
body[data-page="software"] .stagger-item {
    opacity: 0;
    transform: translateY(24px);
}
body[data-page="software"] .stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ── Encabezado (Glassmorphism) ── */
body[data-page="software"] .navbar {
    background: rgba(10,10,10,0.45) !important;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* ── Hero ── */
.software-hero {
    position: relative;
    background: #050505;
    padding: 120px 0 96px;
    color: white;
    overflow: hidden;
    isolation: isolate;
}

/* Fondo aurora animado */
.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}
.hero-aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.32;
    will-change: transform;
    animation: auroraFloat 18s ease-in-out infinite;
}
.hero-aurora span:nth-child(1) {
    width: 520px; height: 520px;
    background: #d4d4d8;
    top: -200px; left: -140px;
}
.hero-aurora span:nth-child(2) {
    width: 440px; height: 440px;
    background: #0575e6;
    top: 30%; right: -160px;
    opacity: 0.22;
    animation-delay: -6s;
}
.hero-aurora span:nth-child(3) {
    width: 380px; height: 380px;
    background: #d4d4d8;
    bottom: -220px; left: 28%;
    opacity: 0.16;
    animation-delay: -11s;
}
@keyframes auroraFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(40px,-50px) scale(1.12); }
}

/* Grid técnico de fondo */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 28% 32%, #000 40%, transparent 88%);
            mask-image: radial-gradient(ellipse 75% 65% at 28% 32%, #000 40%, transparent 88%);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(212,212,216,0.6);
    animation: dotPulse 2s ease-out infinite;
}
@keyframes dotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(212,212,216,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(212,212,216,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,212,216,0); }
}

.software-hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.7px;
    line-height: 1.1;
}
.grad-text {
    background: linear-gradient(90deg, #d4d4d8, #f2f2f4 55%, #d4d4d8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradShift 5s linear infinite;
}
@keyframes gradShift {
    to { background-position: 200% center; }
}
.software-hero p {
    color: rgba(255,255,255,0.65);
    font-size: 1.08rem;
    max-width: 540px;
}

/* ── Showcase del hero: módulos que se acoplan al sistema ── */
.hero-showcase {
    transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.6s ease;
}
.hero-code-wrap:hover .hero-showcase {
    transform: perspective(1600px) rotateY(-2deg) rotateX(1deg);
}
.hero-showcase svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Anillos y resplandor */
.as-ring {
    fill: none;
    stroke: rgba(255,255,255,0.12);
    stroke-width: 1.3;
    stroke-dasharray: 2 9;
    transform-box: fill-box;
    transform-origin: center;
    animation: asSpin 28s linear infinite;
}
.as-ring-2 { stroke-dasharray: 2 6; animation: asSpin 20s linear infinite reverse; opacity: 0.7; }
@keyframes asSpin { to { transform: rotate(360deg); } }
.as-glow {
    transform-box: fill-box;
    transform-origin: center;
    animation: asGlow 4.5s ease-in-out infinite;
}
@keyframes asGlow {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50%      { opacity: 1;   transform: scale(1.08); }
}
.as-dust { fill: rgba(212,212,216,0.7); animation: asTwinkle 3s ease-in-out infinite; }
.as-d1 { animation-delay: 0s; } .as-d2 { animation-delay: .7s; }
.as-d3 { animation-delay: 1.4s; } .as-d4 { animation-delay: 2.1s; }
@keyframes asTwinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.7); }
    50%      { opacity: 1;    transform: scale(1); }
}

/* Núcleo */
.as-core { transform-box: fill-box; transform-origin: center; animation: asCore 3.4s ease-in-out infinite; }
@keyframes asCore {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}
.as-core-box {
    fill: rgba(212,212,216,0.07);
    stroke: rgba(255,255,255,0.4);
    stroke-width: 1.6;
}
.as-core-mark {
    stroke: var(--accent);
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Módulos: cajas + glifos */
.as-mod-box { fill: #121214; stroke: rgba(255,255,255,0.34); stroke-width: 1.5; }
.as-g   { fill: rgba(212,212,216,0.5); }
.as-g-on { fill: var(--accent); }
.as-g2  { fill: rgba(212,212,216,0.14); stroke: rgba(255,255,255,0.4); stroke-width: 1.3; }
.as-g-dot { fill: var(--accent); }
.as-g-line { stroke: rgba(255,255,255,0.45); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.as-g-ring { fill: none; stroke: var(--accent); stroke-width: 1.6; }

/* Acople: cada módulo entra hacia el núcleo, se queda y vuelve a salir */
.as-mod { transform-box: fill-box; }
.as-top    { animation: asDockDown  4.6s ease-in-out infinite; }
.as-right  { animation: asDockLeft  4.6s ease-in-out infinite; animation-delay: -1.15s; }
.as-bottom { animation: asDockUp    4.6s ease-in-out infinite; animation-delay: -2.3s; }
.as-left   { animation: asDockRight 4.6s ease-in-out infinite; animation-delay: -3.45s; }
@keyframes asDockDown {
    0%, 8%   { transform: translateY(-34px); opacity: 0; }
    22%      { opacity: 1; }
    32%, 74% { transform: translateY(0);     opacity: 1; }
    88%      { opacity: 1; }
    100%     { transform: translateY(-34px); opacity: 0; }
}
@keyframes asDockUp {
    0%, 8%   { transform: translateY(34px); opacity: 0; }
    22%      { opacity: 1; }
    32%, 74% { transform: translateY(0);    opacity: 1; }
    88%      { opacity: 1; }
    100%     { transform: translateY(34px); opacity: 0; }
}
@keyframes asDockLeft {
    0%, 8%   { transform: translateX(34px); opacity: 0; }
    22%      { opacity: 1; }
    32%, 74% { transform: translateX(0);    opacity: 1; }
    88%      { opacity: 1; }
    100%     { transform: translateX(34px); opacity: 0; }
}
@keyframes asDockRight {
    0%, 8%   { transform: translateX(-34px); opacity: 0; }
    22%      { opacity: 1; }
    32%, 74% { transform: translateX(0);     opacity: 1; }
    88%      { opacity: 1; }
    100%     { transform: translateX(-34px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-showcase *, .hero-showcase { animation: none !important; transition: none !important; }
    .as-mod { transform: none !important; opacity: 1 !important; }
    .as-glow { opacity: 0.7; }
}

.hero-code-float,
.hero-code-float-2 {
    position: absolute;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.14);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(0,0,0,0.4);
    opacity: 0;
    animation: floatIn 0.5s ease forwards, floatBob 4s ease-in-out infinite;
}
.hero-code-float {
    bottom: -16px;
    right: 22px;
    animation-delay: 1.9s, 2.4s;
}
.hero-code-float-2 {
    top: -16px;
    left: 26px;
    animation-delay: 0.1s, 0.6s;
}
.hero-code-float i { color: var(--accent); font-size: 0.95rem; }
@keyframes floatIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

/* ── Planes y precios ── */
.price-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 36px 32px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--sw-border-strong); background: rgba(255,255,255,0.08); }
.price-card.featured {
    border: 1px solid rgba(212,212,216,0.35);
    background: linear-gradient(180deg, rgba(212,212,216,0.12), rgba(255,255,255,0.04) 45%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 0 0 1px rgba(212,212,216,0.12), 0 20px 50px rgba(212,212,216,0.08);
}
.price-card.featured::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 3px;
    background: var(--accent);
    border-radius: 20px 20px 0 0;
}
.price-badge {
    position: absolute;
    top: 22px; right: 22px;
    background: var(--accent);
    color: #04140c;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
}
.price-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--sw-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
}
.price-card.featured .price-icon { background: var(--accent); color: #04140c; border-color: transparent; }
.price-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.price-tagline { font-size: 0.82rem; color: var(--sw-text-muted); margin-bottom: 22px; }
.price-amount { display: flex; align-items: baseline; gap: 7px; }
.price-amount .val { font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -1px; }
.price-amount .period { font-size: 0.82rem; color: var(--sw-text-muted); font-weight: 600; }
/* Planes sin precio de lista: se cotizan */
.price-amount--quote { min-height: 2.4rem; }
.price-amount--quote .val-quote {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.4px;
    line-height: 1.2;
}
.price-card.featured .price-amount--quote .val-quote { color: #fff; }
.price-note { font-size: 0.78rem; color: var(--sw-text-muted-2); margin: 4px 0 26px; }
.price-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; display: flex; flex-direction: column; }
.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.82);
}
.price-features li:last-child { border-bottom: none; }
.price-features li i { color: var(--accent); font-size: 0.95rem; margin-top: 2px; flex-shrink: 0; }
.price-cta {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.price-cta:hover { background: rgba(255,255,255,0.14); color: #fff; transform: translateY(-2px); }
.price-card.featured .price-cta { background: var(--accent); color: #04140c; border-color: transparent; }
.price-card.featured .price-cta:hover { background: var(--accent-hover); }

/* ── Qué ofrecemos: grupos "listo para usar" y "a la medida" ── */
.offer-group { margin-top: 72px; }
.offer-group--first { margin-top: 8px; }

.offer-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.offer-label-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.offer-label-note {
    text-align: center;
    color: var(--sw-text-muted);
    font-size: 0.88rem;
    max-width: 460px;
    margin: -4px auto 32px;
}

/* Producto POS: banner horizontal, distinto a las tarjetas verticales */
.pos-product {
    display: flex;
    align-items: stretch;
    max-width: 780px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(212,212,216,0.1), rgba(255,255,255,0.04) 60%);
    border: 1px solid rgba(212,212,216,0.3);
    border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(212,212,216,0.1), 0 24px 60px rgba(0,0,0,0.4);
    overflow: hidden;
}
.pos-product-info { flex: 1; padding: 32px 34px; }
.pos-product-info .price-icon { margin-bottom: 16px; }
.pos-product-info .price-name { font-size: 1.15rem; }
.pos-product-info .price-tagline { margin-bottom: 18px; }
.pos-product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 18px;
}
.pos-product-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.82);
}
.pos-product-features li i { color: var(--accent); font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }

.pos-product-buy {
    width: 232px;
    flex-shrink: 0;
    padding: 32px 28px;
    background: rgba(0,0,0,0.25);
    border-left: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.pos-product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #fff;
}
.pos-product-price .val { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }
.pos-product-price .cur { font-size: 0.9rem; font-weight: 700; color: var(--sw-text-muted); }
.pos-product-sub { font-size: 0.76rem; color: var(--sw-text-muted-2); margin: 4px 0 20px; }
.pos-product-buy .price-cta { width: 100%; background: var(--accent); color: #04140c; border-color: transparent; }
.pos-product-buy .price-cta:hover { background: var(--accent-hover); }

@media (max-width: 640px) {
    .pos-product { flex-direction: column; max-width: 420px; }
    .pos-product-features { grid-template-columns: 1fr; }
    .pos-product-buy {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

/* ── "Desarrollo a la medida": ilustraciones animadas en vez de tarjetas ── */
.service-anim-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 48px;
    max-width: 1060px;
    margin: 0 auto;
}
.service-anim { text-align: center; }
.service-anim-viz {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 16 / 10;
    margin: 0 auto 24px;
    border-radius: 20px;
    background: rgba(212,212,216,0.05);
    border: 1.5px solid rgba(212,212,216,0.16);
    overflow: hidden;
    transition: border-color .35s, box-shadow .35s, transform .35s;
}
.service-anim:hover .service-anim-viz {
    border-color: #d4d4d8;
    background: rgba(212,212,216,0.09);
    box-shadow: 0 0 34px rgba(212,212,216,0.18);
    transform: translateY(-4px);
}
.service-anim-viz svg { width: 100%; height: 100%; display: block; }
.service-anim h3 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.service-anim p {
    color: var(--sw-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 430px;
    margin: 0 auto 14px;
}
.service-anim-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}
.service-anim-cta i { transition: transform .2s ease; }
.service-anim-cta:hover i { transform: translateX(4px); }

/* ═══ 1 · Sistema Web → tablero Kanban con una tarjeta que avanza ═══ */
.service-anim-viz .nw-frame { fill: #0e0e10; stroke: rgba(255,255,255,0.16); stroke-width: 1.5; }
.service-anim-viz .nw-bar { fill: rgba(255,255,255,0.05); }
.service-anim-viz .nw-tdot { fill: rgba(255,255,255,0.3); }
.service-anim-viz .nw-col { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.service-anim-viz .nw-colh { fill: rgba(255,255,255,0.25); }
.service-anim-viz .nw-colh-on { fill: var(--accent); }
.service-anim-viz .nw-card { fill: rgba(212,212,216,0.16); }
.service-anim-viz .nw-move-bg { fill: var(--accent); }
.service-anim-viz .nw-move-l { fill: rgba(4,20,12,0.55); }
.nw-move { transform-box: fill-box; animation: nwMove 5.2s ease-in-out infinite; }
@keyframes nwMove {
    0%       { transform: translate(0,0);       opacity: 0; }
    6%       { opacity: 1; }
    16%, 30% { transform: translate(0,0);       opacity: 1; }
    42%, 56% { transform: translate(53px, 3px); opacity: 1; }
    68%, 88% { transform: translate(106px, 2px); opacity: 1; }
    95%      { transform: translate(106px, 2px); opacity: 1; }
    100%     { transform: translate(106px, 2px); opacity: 0; }
}
.service-anim-viz .nw-colh-on { animation: nwPulse 5.2s ease-in-out infinite; }
@keyframes nwPulse { 0%,60%,100% { opacity: .4; } 74%,90% { opacity: 1; } }

/* ═══ 2 · App Móvil → notificación, lista y FAB ═══ */
.na-phone { transform-box: fill-box; transform-origin: center; animation: naFloat 5s ease-in-out infinite; }
@keyframes naFloat {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50%      { transform: translateY(-4px) rotate(1.5deg); }
}
.service-anim-viz .na-shadow { fill: rgba(0,0,0,0.4); }
.service-anim-viz .na-body { fill: #0d0d0f; stroke: rgba(255,255,255,0.2); stroke-width: 1.6; }
.service-anim-viz .na-screen { fill: rgba(255,255,255,0.02); }
.service-anim-viz .na-head { fill: rgba(212,212,216,0.14); }
.service-anim-viz .na-title { fill: rgba(255,255,255,0.5); }
.service-anim-viz .na-avatar { fill: rgba(212,212,216,0.4); }
.service-anim-viz .na-card { fill: rgba(255,255,255,0.04); stroke: rgba(255,255,255,0.1); stroke-width: 1; }
.service-anim-viz .na-spark {
    stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 46; animation: naSpark 4s ease-in-out infinite;
}
@keyframes naSpark { 0% { stroke-dashoffset: 46; } 45%,82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 46; } }
.service-anim-viz .na-liic { fill: rgba(212,212,216,0.3); }
.service-anim-viz .na-li { fill: rgba(255,255,255,0.26); transform-box: fill-box; transform-origin: left center; animation: naLi 4s ease-in-out infinite; }
.na-li1 { animation-delay: .3s; } .na-li2 { animation-delay: .45s; } .na-li3 { animation-delay: .6s; }
@keyframes naLi {
    0%, 12%  { transform: scaleX(0.1); opacity: 0; }
    28%, 84% { transform: scaleX(1);   opacity: 1; }
    100%     { transform: scaleX(0.1); opacity: 0; }
}
.service-anim-viz .na-fab { fill: var(--accent); }
.service-anim-viz .na-fab-plus { stroke: #04140c; stroke-width: 1.8; stroke-linecap: round; }
.service-anim-viz .na-fab-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: naFabPing 2.6s ease-out infinite; }
@keyframes naFabPing {
    0%   { transform: scale(1);   opacity: .6; }
    70%, 100% { transform: scale(2.4); opacity: 0; }
}
.na-notif { animation: naNotif 4.6s ease-in-out infinite; }
.service-anim-viz .na-notif-bg { fill: var(--accent); }
.service-anim-viz .na-notif-ic { fill: rgba(4,20,12,0.5); }
.service-anim-viz .na-notif-l { fill: rgba(4,20,12,0.55); }
@keyframes naNotif {
    0%, 6%   { transform: translateY(0);  opacity: 0; }
    16%, 44% { transform: translateY(30px); opacity: 1; }
    56%,100% { transform: translateY(0);  opacity: 0; }
}
.service-anim-viz .na-notch { fill: rgba(255,255,255,0.3); }

/* ═══ 3 · APIs → núcleo y chips de servicio conectados ═══ */
.service-anim-viz .np-chip-bg { fill: #121214; stroke: rgba(255,255,255,0.3); stroke-width: 1.4; }
.service-anim-viz .np-chip-ic { fill: var(--accent); }
.service-anim-viz .np-chip-l { fill: rgba(255,255,255,0.4); }
.service-anim-viz .np-chip-t { fill: var(--accent); font-size: 9px; font-weight: 800; font-family: 'Space Grotesk','Inter',sans-serif; }
.service-anim-viz .np-core { fill: rgba(212,212,216,0.1); stroke: rgba(255,255,255,0.45); stroke-width: 1.6; }
.service-anim-viz .np-core-mark { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.service-anim-viz .np-core-ring { fill: none; stroke: var(--accent); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: npPing 2.8s ease-out infinite; }
@keyframes npPing {
    0%   { transform: scale(1);   opacity: .6; }
    70%, 100% { transform: scale(2); opacity: 0; }
}
.service-anim-viz .np-wire {
    stroke: rgba(255,255,255,0.26); stroke-width: 1.5;
    stroke-dasharray: 3 4; animation: npFlow .9s linear infinite;
}
@keyframes npFlow { to { stroke-dashoffset: -14; } }
.service-anim-viz .np-pkt { fill: var(--accent); opacity: 0; }
@supports (offset-path: path("M0 0 L1 1")) {
    .service-anim-viz .np-pkt { opacity: 1; }
    .np-p1 { offset-path: path("M100 60 C 78 48 64 40 52 30"); animation: npPkt 2s linear infinite; }
    .np-p2 { offset-path: path("M100 60 C 122 48 136 40 148 30"); animation: npPkt 2s linear infinite .65s; }
    .np-p3 { offset-path: path("M100 82 C 100 92 100 98 100 103");  animation: npPkt 2s linear infinite 1.3s; }
}
@keyframes npPkt {
    0%   { offset-distance: 0%;   opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

/* ═══ 4 · Nube → sincronización que gira, datos que fluyen ═══ */
.nc-cloud { transform-box: fill-box; transform-origin: center; animation: ncFloat 5s ease-in-out infinite; }
@keyframes ncFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.service-anim-viz .nc-cloud-shape { fill: rgba(255,255,255,0.04); stroke: rgba(255,255,255,0.5); stroke-width: 1.6; }
.nc-sync { transform-box: fill-box; transform-origin: center; animation: ncSpin 3.4s linear infinite; }
@keyframes ncSpin { to { transform: rotate(360deg); } }
.service-anim-viz .nc-arrow { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.service-anim-viz .nc-node { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.45); stroke-width: 1.5; }
.service-anim-viz .nc-link {
    stroke: rgba(255,255,255,0.28); stroke-width: 1.5;
    stroke-dasharray: 3 4; animation: ncFlow .8s linear infinite;
}
.service-anim-viz .nc-l2 { animation-direction: reverse; }
@keyframes ncFlow { to { stroke-dashoffset: -14; } }
.service-anim-viz .nc-bit { fill: var(--accent); opacity: 0; }
@supports (offset-path: path("M0 0 L1 1")) {
    .service-anim-viz .nc-bit { opacity: 1; }
    .nc-bit1 { offset-path: path("M66 74 C 56 82 52 88 48 96"); animation: ncBit 1.8s linear infinite; }
    .nc-bit2 { offset-path: path("M152 96 C 148 88 144 82 134 74"); animation: ncBit 1.8s linear infinite .9s; }
}
@keyframes ncBit {
    0%   { offset-distance: 0%;   opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

@media (max-width: 768px) {
    .service-anim-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .service-anim-viz *, .service-anim-cta i { animation: none !important; transition: none !important; }
    .nw-move { transform: translate(0,0); opacity: 1; }
    .service-anim-viz .na-li { transform: none; opacity: 1; }
    .service-anim-viz .na-spark, .service-anim-viz .np-wire { stroke-dashoffset: 0; }
    .service-anim-viz .na-notif { opacity: 0; }
    .service-anim-viz .np-pkt, .service-anim-viz .nc-bit { opacity: 0; }
}

/* ── Proceso de desarrollo ─────────────────────────────────────
   Cada etapa es una escena SVG animada. Una línea de progreso
   ligada al scroll (--p: 0→1, la fija el JS) cruza las escenas y
   cada etapa se "enciende" (.is-active) al alcanzarla el progreso.
   ───────────────────────────────────────────────────────────── */
.process-steps {
    --p: 0;
    --node-y: 42px;          /* centro vertical de las escenas = donde va la línea */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}
.process-step {
    text-align: center;
    padding: 0 14px;
    position: relative;
}

/* ── Escena / ilustración de cada etapa ── */
.process-viz {
    position: relative;
    width: 118px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: #0c0c0c;                    /* opaco: tapa la línea que pasa por detrás */
    border: 1.5px solid var(--sw-border-strong);
    box-shadow: 0 0 0 6px var(--sw-bg);
    z-index: 2;
    transition: transform .5s cubic-bezier(.22,1,.36,1), border-color .5s ease, box-shadow .5s ease;
}
.process-viz svg { width: 100%; height: 100%; display: block; }

/* Chip numerado en la esquina; se vuelve check al pasar la etapa */
.process-badge {
    position: absolute;
    top: -9px; left: -9px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--sw-panel);
    border: 1.5px solid var(--sw-border-strong);
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(255,255,255,0.7);
    z-index: 3;
    transition: background .4s ease, border-color .4s ease, color .4s ease;
}
.process-badge .pb-num,
.process-badge i { grid-area: 1 / 1; transition: opacity .3s ease, transform .3s ease; }
.process-badge i { opacity: 0; transform: scale(.3); font-size: 0.8rem; }

/* ── Estado activo (lo marca el scroll vía JS) ── */
.process-step.is-active .process-viz {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 0 0 6px var(--sw-bg), 0 0 30px rgba(212,212,216,.28);
}
.process-step.is-active .process-badge {
    background: var(--accent);
    border-color: var(--accent);
    color: #04140c;
}
.process-step.is-active .process-badge .pb-num { opacity: 0; transform: scale(.3); }
.process-step.is-active .process-badge i        { opacity: 1; transform: scale(1); }
.process-step.is-active h6 { color: #fff; }
.process-step:hover .process-viz { border-color: var(--accent); }

.process-step h6 {
    font-weight: 700;
    color: rgba(255,255,255,0.72);
    margin-bottom: 8px;
    font-size: 0.98rem;
    transition: color .5s ease;
}
.process-step p { font-size: 0.85rem; color: var(--sw-text-muted); line-height: 1.65; margin: 0; }

/* ── Riel + progreso + cometa (pasan por detrás de las escenas) ── */
.process-steps::before {
    content: '';
    position: absolute;
    top: var(--node-y); left: 12.5%; right: 12.5%;
    height: 2px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    z-index: 1;
}
.process-progress {
    position: absolute;
    top: var(--node-y); left: 12.5%; right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, rgba(212,212,216,.35), var(--accent));
    border-radius: 2px;
    z-index: 1;
    transform: scaleX(var(--p, 0));
    transform-origin: left center;
    will-change: transform;
}
.process-comet {
    position: absolute;
    top: calc(var(--node-y) + 1px);
    left: calc(12.5% + var(--p, 0) * 75%);
    width: 11px; height: 11px;
    margin: -6px 0 0 -5.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 14px 4px rgba(212,212,216,.6), 0 0 36px 12px rgba(212,212,216,.25);
    z-index: 4;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.process-steps.is-drawing .process-comet { opacity: 1; }
.process-steps:has(.stagger-item.visible) .process-progress {
    transform: scaleX(1);
    transition: transform 1.4s ease;
}

/* ═══ Trazos base de las escenas ═══ */
.process-viz .pv-panel,
.process-viz .pv-art,
.process-viz .pv-ide,
.process-viz .pv-ide-bar { stroke: rgba(255,255,255,0.5); stroke-width: 1.5; }
.process-viz .pv-art { stroke-dasharray: 4 3; }
.process-viz .pv-bar    { fill: rgba(212,212,216,0.42); transform-box: fill-box; transform-origin: bottom; }
.process-viz .pv-el     { fill: rgba(212,212,216,0.38); transform-box: fill-box; transform-origin: center; }
.process-viz .pv-tok    { fill: rgba(255,255,255,0.32); transform-box: fill-box; transform-origin: left center; }
.process-viz .pv-ide-dot{ fill: rgba(255,255,255,0.35); }

/* ── 1 · Análisis: barras que crecen + lupa que escanea ── */
.pv-bar { animation: pvBarGrow 3.4s ease-in-out infinite; }
.pv-b1 { animation-delay: 0s; }
.pv-b2 { animation-delay: 0.18s; }
.pv-b3 { animation-delay: 0.36s; }
.pv-b4 { animation-delay: 0.54s; }
@keyframes pvBarGrow {
    0%, 100% { transform: scaleY(0.25); opacity: 0.4; }
    35%, 75% { transform: scaleY(1);    opacity: 1; }
}
.pv-lens circle { fill: rgba(212,212,216,0.08); stroke: var(--accent); stroke-width: 2; }
.pv-lens line   { stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.pv-lens { animation: pvScan 5s ease-in-out infinite; }
@keyframes pvScan {
    0%   { transform: translate(44px, 42px); }
    28%  { transform: translate(80px, 34px); }
    55%  { transform: translate(58px, 54px); }
    80%  { transform: translate(40px, 32px); }
    100% { transform: translate(44px, 42px); }
}

/* ── 2 · Diseño: elementos que se "arman" en el artboard ── */
.pv-e5 { fill: var(--accent) !important; }
.pv-el { animation: pvBuild 4.6s ease-in-out infinite; opacity: 0; }
.pv-e1 { animation-delay: 0.1s; }
.pv-e2 { animation-delay: 0.5s; }
.pv-e3 { animation-delay: 0.9s; }
.pv-e4 { animation-delay: 1.15s; }
.pv-e5 { animation-delay: 1.5s; }
@keyframes pvBuild {
    0%, 6%   { opacity: 0; transform: scale(.55); }
    16%, 88% { opacity: 1; transform: scale(1); }
    100%     { opacity: 0; transform: scale(.55); }
}
.pv-cursor { fill: #fff; animation: pvCursor 4.6s ease-in-out infinite; }
@keyframes pvCursor {
    0%   { transform: translate(58px, 22px); }
    22%  { transform: translate(45px, 50px); }
    45%  { transform: translate(75px, 40px); }
    70%  { transform: translate(70px, 60px); }
    100% { transform: translate(58px, 22px); }
}

/* ── 3 · Desarrollo: código que se "escribe" + barra de build ── */
.pv-ide-bar { stroke-width: 1.3; opacity: 0.5; }
.pv-r1b, .pv-r3a { fill: rgba(212,212,216,0.55); }
.pv-tok { animation: pvType 4s ease-in-out infinite; transform: scaleX(0); }
.pv-r1a { animation-delay: 0s; }
.pv-r1b { animation-delay: 0.14s; }
.pv-r2a { animation-delay: 0.32s; }
.pv-r2b { animation-delay: 0.46s; }
.pv-r3a { animation-delay: 0.64s; }
.pv-r4a { animation-delay: 0.82s; }
.pv-r4b { animation-delay: 0.96s; }
@keyframes pvType {
    0%, 4%   { transform: scaleX(0); opacity: 0; }
    12%, 90% { transform: scaleX(1); opacity: 1; }
    100%     { transform: scaleX(0); opacity: 0; }
}
.pv-caret { fill: var(--accent); animation: pvBlink 1s step-end infinite, pvCaretMove 4s ease-in-out infinite; }
@keyframes pvBlink { 50% { opacity: 0; } }
@keyframes pvCaretMove {
    0%, 18%   { transform: translateY(0); }
    25%, 43%  { transform: translateY(9px); }
    50%, 68%  { transform: translateY(18px); }
    75%, 100% { transform: translateY(27px); }
}
.pv-build      { fill: rgba(255,255,255,0.07); }
.pv-build-fill { fill: var(--accent); transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: pvBuildBar 4s ease-in-out infinite; }
@keyframes pvBuildBar {
    0%, 58%   { transform: scaleX(0); opacity: 0.5; }
    82%, 92%  { transform: scaleX(1); opacity: 1; }
    100%      { transform: scaleX(1); opacity: 0.5; }
}

/* ── 4 · Entrega: cohete que despega ── */
.pv-r-body   { fill: #d4d4d8; }
.pv-r-fin    { fill: rgba(212,212,216,0.55); }
.pv-r-window { fill: #0a0a0a; stroke: var(--accent); stroke-width: 1.6; }
.pv-flame    { fill: var(--accent); transform-box: fill-box; transform-origin: top center; animation: pvFlame .28s ease-in-out infinite alternate; }
@keyframes pvFlame {
    from { transform: scaleY(0.65) scaleX(0.9); opacity: 0.75; }
    to   { transform: scaleY(1.15) scaleX(1.05); opacity: 1; }
}
.pv-rocket { transform-box: fill-box; transform-origin: center; animation: pvLift 3s ease-in-out infinite; }
@keyframes pvLift {
    0%, 100% { transform: translateY(3px) rotate(-2deg); }
    50%      { transform: translateY(-4px) rotate(2deg); }
}
.pv-trail { stroke: rgba(212,212,216,0.5); stroke-width: 2; stroke-dasharray: 2 4; animation: pvTrail .5s linear infinite; }
@keyframes pvTrail { to { stroke-dashoffset: -12; } }
.pv-star { fill: #fff; animation: pvTwinkle 2.4s ease-in-out infinite; }
.pv-s1 { animation-delay: 0s; }
.pv-s2 { animation-delay: 0.6s; }
.pv-s3 { animation-delay: 1.1s; }
.pv-s4 { animation-delay: 1.7s; }
@keyframes pvTwinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.7); }
    50%      { opacity: 1;    transform: scale(1); }
}

/* ── Responsivo: timeline vertical con la escena a la izquierda ── */
@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .process-step {
        text-align: left;
        padding: 4px 0 0 116px;      /* deja hueco a la izquierda para la escena */
        min-height: 76px;
    }
    .process-viz {
        position: absolute;
        left: 0;
        top: 0;
        width: 96px;
        height: 76px;
        margin: 0;
    }
    .process-step h6 { margin-top: 2px; }

    /* La línea corre en vertical por el canal izquierdo (detrás de las escenas) */
    .process-steps::before,
    .process-progress {
        top: 10px;
        bottom: 10px;
        left: 48px;
        right: auto;
        width: 2px;
        height: auto;
    }
    .process-progress {
        transform: scaleY(var(--p, 0));
        transform-origin: top center;
    }
    .process-comet {
        top: calc(10px + var(--p, 0) * (100% - 20px));
        left: 48px;
        margin: -5.5px 0 0 -4.5px;
    }
    .process-steps:has(.stagger-item.visible) .process-progress { transform: scaleY(1); }
}

@media (max-width: 400px) {
    .process-step { padding-left: 100px; }
    .process-viz { width: 84px; height: 67px; }
    .process-steps::before,
    .process-progress,
    .process-comet { left: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .process-steps { --p: 1; }
    .process-viz, .process-viz *, .process-badge, .process-badge * {
        animation: none !important;
        transition: none !important;
    }
    .process-viz .pv-bar   { transform: scaleY(1); opacity: 1; }
    .process-viz .pv-el,
    .process-viz .pv-tok    { transform: none; opacity: 1; }
    .process-viz .pv-build-fill { transform: scaleX(1); opacity: 1; }
    .process-comet { display: none; }
}

/* ── Clientes destacados ── */
.client-showcase-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
/* Si queda un caso impar, ocupa la fila completa en lugar de media */
.client-showcase-list > .client-showcase:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.client-showcase-list > .client-showcase:last-child:nth-child(odd) .client-showcase-desc {
    max-width: 760px;
}
.client-showcase {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 32px 32px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    transition: background 0.25s, border-color 0.25s;
}
.client-showcase-body { display: flex; flex-direction: column; flex: 1; }
.client-showcase:hover { background: rgba(255,255,255,0.08); border-color: var(--sw-border-strong); }
.client-showcase-badge {
    width: 72px; height: 72px;
    border-radius: 18px;
    background: rgba(212,212,216,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(212,212,216,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s;
}
.client-showcase:hover .client-showcase-badge {
    border-color: var(--accent);
    background: rgba(212,212,216,0.16);
}

/* ── Iconos animados de los casos de éxito ── */
.cs-viz {
    width: 44px; height: 44px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}

/* 1 · Título: borla que se balancea */
.cs-viz--cap .cs-cap-top { fill: rgba(212,212,216,0.14); }
.cs-tassel { transform-box: fill-box; transform-origin: top center; animation: csSwing 3.2s ease-in-out infinite; }
.cs-tassel-ball { fill: currentColor; }
@keyframes csSwing {
    0%, 100% { transform: rotate(9deg); }
    50%      { transform: rotate(-9deg); }
}

/* 2 · MegaNet: ondas WiFi que salen en secuencia */
.cs-wifi-dot { fill: currentColor; stroke: none; animation: csWifiDot 2s ease-in-out infinite; }
.cs-wifi-arc { animation: csWifi 2s ease-in-out infinite; opacity: 0.15; }
.cs-a1 { animation-delay: 0s; }
.cs-a2 { animation-delay: 0.22s; }
.cs-a3 { animation-delay: 0.44s; }
@keyframes csWifi {
    0%, 55%, 100% { opacity: 0.15; }
    22%           { opacity: 1; }
}
@keyframes csWifiDot {
    0%, 100% { opacity: 0.5; }
    15%      { opacity: 1; }
}

/* 3 · Distribuidora: camión que avanza, ruedas girando */
.cs-viz--truck .cs-t-box,
.cs-viz--truck .cs-t-cab { fill: rgba(212,212,216,0.1); }
.cs-truck { transform-box: fill-box; transform-origin: center; animation: csBob 1.1s ease-in-out infinite; }
@keyframes csBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-1.4px); }
}
.cs-wheel { transform-box: fill-box; transform-origin: center; animation: csRoll 0.9s linear infinite; }
@keyframes csRoll { to { transform: rotate(360deg); } }
.cs-road { stroke: currentColor; opacity: 0; animation: csRoad 0.7s linear infinite; }
.cs-rd2 { animation-delay: 0.35s; }
@keyframes csRoad {
    0%   { transform: translateX(6px);  opacity: 0; }
    25%  { opacity: 0.9; }
    100% { transform: translateX(-16px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cs-tassel, .cs-wifi-arc, .cs-wifi-dot, .cs-truck, .cs-wheel, .cs-road {
        animation: none !important;
    }
    .cs-wifi-arc { opacity: 0.9; }
    .cs-road { opacity: 0; }
}
.client-showcase-eyebrow {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}
.client-showcase-name { color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.client-showcase-desc { color: var(--sw-text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 18px; }
.client-showcase-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.client-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--sw-border);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
}
.client-tag i { color: var(--accent); }
@media (max-width: 768px) {
    .client-showcase-list { grid-template-columns: 1fr; }
    .client-showcase { padding: 28px 22px; }
}

/* ── Tecnologías ── */
#tecnologias { padding: 80px 0; background: var(--sw-bg); }

/* Carrusel */
.tech-carousel {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    padding: 8px 0 20px;
    display: block;
}
/* Degradados en los bordes para efecto fade (mismo negro de la sección) */
.tech-carousel::before,
.tech-carousel::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.tech-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--sw-bg) 60%, transparent);
}
.tech-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--sw-bg) 60%, transparent);
}

.tech-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    width: max-content;
    will-change: transform;
    animation: techScroll 28s linear infinite;
}
/* Pausa el scroll al hover en cualquier item */
.tech-carousel:hover .tech-track {
    animation-play-state: paused;
}

@keyframes techScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Divisor de categoría dentro del carrusel */
.tech-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 148px;
    flex-shrink: 0;
    padding-left: 6px;
}
.tech-divider span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
    padding: 14px 0 14px 14px;
    border-left: 1px dashed rgba(255,255,255,0.18);
}

/* Item individual */
.tech-item {
    width: 130px;
    min-height: 148px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 10px 16px;
    position: relative;
    flex-shrink: 0;
    cursor: default;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s;
}
.tech-item:hover {
    border-color: #d4d4d8;
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(212,212,216,0.20), 0 12px 30px rgba(0,0,0,0.4);
    transform: translateY(-4px);
}

.t-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* Nombre de la tecnología, siempre visible (no depende de hover) */
.t-overlay {
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}
.t-overlay span {
    display: block;
    font-size: 0.62rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

/* ── Contacto / Solicitar propuesta ── */
#contacto-sw {
    background: radial-gradient(ellipse 900px 400px at 50% -10%, rgba(212,212,216,0.14), transparent 65%), var(--sw-bg);
    padding: 76px 0;
    margin-bottom: 8px;
    color: white;
}
.sw-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}
.sw-contact-intro h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.4px;
    margin: 12px 0 14px;
}
.sw-contact-intro > p {
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    max-width: 420px;
    margin: 0 0 26px;
}
.sw-contact-points {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sw-contact-points li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.82);
}
.sw-contact-points li i { color: var(--accent); font-size: 1rem; margin-top: 1px; flex-shrink: 0; }
.sw-contact-alt {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 20px;
}
.sw-contact-alt > span {
    display: block;
    font-size: 0.78rem;
    color: var(--sw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}
.sw-contact-alt-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.sw-contact-alt-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}
.sw-contact-alt-links a i { color: var(--accent); font-size: 1rem; }
.sw-contact-alt-links a:hover { color: var(--accent); }

/* Formulario */
.sw-form {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 32px 30px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sw-field { display: flex; flex-direction: column; gap: 6px; }
.sw-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.2px;
}
.sw-field label span { color: var(--accent); }
.sw-field input,
.sw-field select,
.sw-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 11px 13px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.sw-field textarea { resize: vertical; min-height: 96px; }
.sw-field select option { background: #131313; color: #fff; }
.sw-field input::placeholder,
.sw-field textarea::placeholder { color: rgba(255,255,255,0.35); }
.sw-field input:focus,
.sw-field select:focus,
.sw-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(212,212,216,0.15);
}
.sw-field.has-error input,
.sw-field.has-error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.15);
}
.sw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sw-form-submit {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #04140c;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.sw-form-submit:hover { background: var(--accent-hover); transform: translateY(-2px); }
.sw-form-note {
    margin: 0;
    font-size: 0.74rem;
    color: var(--sw-text-muted-2);
    text-align: center;
}
.sw-form-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.5;
}
.sw-form-alert i { font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.sw-form-alert--ok {
    background: rgba(39,201,63,0.12);
    border: 1px solid rgba(39,201,63,0.35);
    color: #d6f5db;
}
.sw-form-alert--ok i { color: #27c93f; }
.sw-form-alert--error {
    background: rgba(231,76,60,0.12);
    border: 1px solid rgba(231,76,60,0.35);
    color: #f6d6d3;
}
.sw-form-alert--error i { color: #e74c3c; }

@media (max-width: 860px) {
    .sw-contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .sw-contact-intro > p { max-width: none; }
}
@media (max-width: 480px) {
    .sw-row { grid-template-columns: 1fr; }
    .sw-form { padding: 26px 20px; }
}

/* ── Stats bar ── */
.software-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 32px 0 0;
    flex-wrap: wrap;
}
.sw-stat {
    text-align: left;
    padding: 0 32px;
    border-left: 1px solid rgba(255,255,255,0.12);
}
.sw-stat:first-child { padding-left: 0; border-left: none; }
.sw-stat .num { font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.sw-stat .lbl { font-size: 0.74rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.hero-examples-link {
    margin: 18px 0 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}
.hero-examples-link i { color: var(--accent); margin-right: 5px; }
.hero-examples-link a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(212,212,216,0.5);
    text-underline-offset: 3px;
}
.hero-examples-link a:hover { color: var(--accent); }

/* ── Indicador de scroll ── */
.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.4);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: scrollCueBob 2.2s ease-in-out infinite;
}
.hero-scroll-cue i { font-size: 1.1rem; }
@keyframes scrollCueBob {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
    50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .software-stats { gap: 24px; }
    .tech-item { width: 108px; min-height: 128px; padding: 14px 8px 12px; }
    .t-icon { width: 36px; height: 36px; }
    .tech-divider { min-height: 128px; }
    .tech-divider span { font-size: 0.62rem; padding: 10px 0 10px 10px; }
}

/* ═══════════════════════════════════════════
   QUIÉNES SOMOS
   ═══════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}
.about-intro h2 { margin-bottom: 16px; }
.about-intro > p {
    color: var(--sw-text-muted);
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 14px;
}
.about-intro strong { color: rgba(255,255,255,0.9); }
.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 26px;
}
.about-stat {
    padding: 0 26px;
    border-left: 1px solid rgba(255,255,255,0.12);
}
.about-stat:first-child { padding-left: 0; border-left: none; }
.about-stat .n { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.about-stat .l { font-size: 0.72rem; color: var(--sw-text-muted-2); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.about-points {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    overflow: hidden;
}
.about-points li {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.88rem;
    color: var(--sw-text-muted);
    line-height: 1.55;
}
.about-points li:last-child { border-bottom: none; }
.about-points li i { color: var(--accent); font-size: 1.05rem; margin-top: 2px; flex-shrink: 0; }
.about-points strong { color: #fff; font-weight: 700; }

@media (max-width: 820px) {
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ═══════════════════════════════════════════
   PREGUNTAS FRECUENTES
   ═══════════════════════════════════════════ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 0 20px;
    transition: border-color 0.25s, background 0.25s;
}
.faq-item[open] { border-color: var(--sw-border-strong); background: rgba(255,255,255,0.06); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 17px 0;
    font-size: 0.94rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\F64D';
    font-family: 'bootstrap-icons';
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    margin: 0;
    padding: 0 0 20px;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--sw-text-muted);
}
.faq-item strong { color: rgba(255,255,255,0.9); }

/* ═══════════════════════════════════════════
   FOOTER AMPLIADO
   ═══════════════════════════════════════════ */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 28px;
}
.footer-col h6 {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}
.footer-col a,
.footer-col span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.86rem;
    padding: 5px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.86rem;
    line-height: 1.6;
    margin: 14px 0 16px;
    max-width: 320px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    padding: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--accent); color: #04140c; border-color: transparent; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ═══════════════════════════════════════════
   Pausa las animaciones SVG fuera de pantalla (rendimiento)
   ═══════════════════════════════════════════ */
.anim-offscreen,
.anim-offscreen * { animation-play-state: paused !important; }
