/* IT Simple — Custom styles (spotlight, animations, utilities) */

/* ── Base ──────────────────────────────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    /* Warm dark palette - más claro para mayor contraste */
    --bg:          #18181b;  /* zinc-900 */
    --bg-surface:  #1f1f23;  /* zinc-800/90 */
    --bg-raised:   #27272a;  /* zinc-800 */
    --bg-warm:     #1a1612;

    /* Borders — warm tint */
    --border:      rgba(255,235,200,0.07);
    --border-mid:  rgba(255,235,200,0.12);

    /* Accents */
    --accent:      #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --accent-warm: #d97706;
    --accent-warm-glow: rgba(217, 119, 6, 0.2);

    /* Text — warm tones */
    --text:        #f4f4f5;
    --text-muted:  #a1a1aa;
    --text-faint:  #71717a;

    /* Design tokens */
    --radius:      7px;
    --radius-sm:   4px;
    --radius-lg:   10px;
    --radius-xl:   14px;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    background-color: var(--bg);
    color: var(--text);
}

/* ── Subtle dot grid utility ───────────────────────────────────────────────── */

.bg-dot-grid {
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
}

.bg-line-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

.bg-line-grid-sm {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.18);
}

/* ── Navigation ────────────────────────────────────────────────────────────── */

.site-nav {
    background: transparent;
}

.site-nav.scrolled nav {
    background: rgba(9, 9, 11, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Hero: Spotlight ───────────────────────────────────────────────────────── */

.hero-spotlight {
    background: radial-gradient(
        600px circle at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(37, 99, 235, 0.13),
        transparent 60%
    );
    transition: opacity 0.4s ease;
}

/* ── Hero: Grid background (removed — replaced by bg-dot-grid utility) ─────── */

/* ── Status dot pulse ──────────────────────────────────────────────────────── */

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

.status-dot {
    animation: pulse-dot 2.4s ease-in-out infinite;
}

/* ── Monitor scanline ──────────────────────────────────────────────────────── */

@keyframes scanline {
    0%   { transform: translateY(-8px); opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { transform: translateY(320px); opacity: 0; }
}

.monitor-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent 0%, rgba(99,130,246,0.05) 50%, transparent 100%);
    animation: scanline 3.8s linear infinite;
    pointer-events: none;
    z-index: 5;
}

/* ── Activity bars entrance ────────────────────────────────────────────────── */

@keyframes bar-grow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

.activity-bar {
    transform-origin: bottom;
    animation: bar-grow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.activity-bar:nth-child(1)  { animation-delay: 1.2s; }
.activity-bar:nth-child(2)  { animation-delay: 1.28s; }
.activity-bar:nth-child(3)  { animation-delay: 1.36s; }
.activity-bar:nth-child(4)  { animation-delay: 1.44s; }
.activity-bar:nth-child(5)  { animation-delay: 1.52s; }
.activity-bar:nth-child(6)  { animation-delay: 1.60s; }
.activity-bar:nth-child(7)  { animation-delay: 1.68s; }
.activity-bar:nth-child(8)  { animation-delay: 1.76s; }
.activity-bar:nth-child(9)  { animation-delay: 1.84s; }
.activity-bar:nth-child(10) { animation-delay: 1.92s; }
.activity-bar:nth-child(11) { animation-delay: 2.00s; }
.activity-bar:nth-child(12) { animation-delay: 2.08s; }
.activity-bar:nth-child(13) { animation-delay: 2.16s; }
.activity-bar:nth-child(14) { animation-delay: 2.24s; }
.activity-bar:nth-child(15) { animation-delay: 2.32s; }
.activity-bar:nth-child(16) { animation-delay: 2.40s; }

/* ── Terminal cursor blink ─────────────────────────────────────────────────── */

@keyframes cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.terminal-cursor {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #4ade80;
    animation: cursor-blink 1s step-start infinite;
    margin-left: 1px;
}

/* ── Service card: mouse-following spotlight ─────────────────────────────── */
.svc-mouse-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(280px circle at var(--mx, -200px) var(--my, -200px),
        rgba(255,255,255,0.05), transparent 65%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
}
.service-card:hover .svc-mouse-glow { opacity: 1; }

.service-card[data-layer="knowledge"]:hover .svc-mouse-glow {
    background: radial-gradient(300px circle at var(--mx, -200px) var(--my, -200px),
        rgba(139,92,246,0.11), transparent 65%);
}
.service-card[data-layer="intelligence"]:hover .svc-mouse-glow {
    background: radial-gradient(380px circle at var(--mx, -200px) var(--my, -200px),
        rgba(37,99,235,0.13), transparent 65%);
}
.service-card[data-layer="execution-rpa"]:hover .svc-mouse-glow {
    background: radial-gradient(280px circle at var(--mx, -200px) var(--my, -200px),
        rgba(245,158,11,0.10), transparent 65%);
}

/* ── Layer connector: flowing dots ────────────────────────────────────────── */
@keyframes flow-dot {
    0%   { transform: translateX(-50%) translateY(0px);   opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateX(-50%) translateY(40px);  opacity: 0; }
}
.flow-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: flow-dot 2.2s ease-in-out infinite;
}
.flow-dot:nth-child(2) { animation-delay: 0.73s; }
.flow-dot:nth-child(3) { animation-delay: 1.46s; }

/* ── Layer header block ──────────────────────────────────────────────────── */
.layer-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.layer-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: 12px 0 0 12px;
}
.layer-header-num {
    font-family: 'Satoshi', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: -0.04em;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
}

/* ── Hero word-wrap overflow guard ─────────────────────────────────────────── */

.hero-title .word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    margin-right: 0.25em;
    padding-bottom: 0.18em;
    margin-bottom: -0.18em;
}

.hero-title .word-wrap:last-child {
    margin-right: 0;
}

/* ── Buttons: active tactile feedback ──────────────────────────────────────── */

.btn-magnetic {
    cursor: pointer;
    will-change: transform;
}

/* ── Section label ─────────────────────────────────────────────────────────── */

.section-label {
    letter-spacing: 0.12em;
}

/* ── Mobile overrides ──────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .hero-spotlight {
        display: none;
    }
    .hero-grid {
        background-size: 32px 32px;
    }

    /* Service cards: reduce padding & title size */
    .service-item.service-card {
        padding: 1.5rem !important;
    }
    .svc-title {
        font-size: 1.05rem;
    }
    .service-card-watermark {
        font-size: 3.5rem;
    }

    /* Proceso card: hide arrows on narrow screens, let boxes wrap */
    .proceso-card .flex.items-center.gap-2 {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    .proceso-card .flex.items-center.gap-2 .ph-arrow-right {
        display: none;
    }

    /* Hero meta: reduce top padding */
    .hero-meta {
        padding-top: 1.25rem;
    }

    /* Section titles: tighter letter-spacing */
    .section-title {
        letter-spacing: -0.025em;
    }

    /* FAQ: reduce summary gap on mobile */
    details.faq-item summary {
        gap: 1rem;
    }

    /* Footer: reduce padding */
    footer .max-w-7xl {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* ── Focus styles (accessibility) ─────────────────────────────────────────── */

:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Glassmorphism utility ──────────────────────────────────────────────────── */

.glass-section {
    background: linear-gradient(
        135deg,
        rgba(255,235,200,0.04) 0%,
        rgba(255,255,255,0.02) 100%
    );
    border-top:    1px solid rgba(255,235,200,0.07);
    border-bottom: 1px solid rgba(255,235,200,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-card {
    background: rgba(255,245,235,0.04);
    border: 1px solid rgba(255,235,200,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ── Warm section backgrounds ───────────────────────────────────────────────── */

.section-warm {
    background: linear-gradient(
        180deg,
        var(--bg-warm) 0%,
        var(--bg) 100%
    );
}

/* Warm glow accent — replaces cold pure-black sections */
.warm-glow-right {
    background: radial-gradient(
        ellipse 60% 80% at 90% 40%,
        rgba(217,119,6,0.06) 0%,
        transparent 65%
    );
}

.warm-glow-left {
    background: radial-gradient(
        ellipse 60% 80% at 10% 40%,
        rgba(217,119,6,0.05) 0%,
        transparent 65%
    );
}

/* ── Service cards — redesign premium ──────────────────────────────────────── */

.service-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

/* Top edge glow line — hidden by default, revealed on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.7), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Bottom accent bar — slides in on hover */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    border-color: rgba(217, 119, 6, 0.2);
    box-shadow:
        0 0 0 1px rgba(217,119,6,0.06),
        0 8px 24px -6px rgba(217,119,6,0.1),
        0 16px 32px -12px rgba(0,0,0,0.5);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { width: 100%; }

/* Watermark number */
.service-card-watermark {
    position: absolute;
    top: -0.5rem;
    right: 1.25rem;
    font-family: 'Geist Mono', monospace;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: color 0.35s ease;
}

.service-card:hover .service-card-watermark {
    color: rgba(37,99,235,0.07);
}

/* Icon */
.service-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: rgba(37,99,235,0.07);
    border: 1px solid rgba(37,99,235,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-card-icon {
    background: rgba(37,99,235,0.14);
    border-color: rgba(37,99,235,0.3);
    transform: scale(1.08);
}

/* Label number (small top-left) */
.service-card-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(37,99,235,0.45);
    letter-spacing: 0.12em;
}

/* Tags */
.service-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    font-family: 'Geist Mono', monospace;
    font-size: 0.65rem;
    color: rgba(161,161,170,0.8);
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.service-card:hover .service-tag {
    background: rgba(37,99,235,0.07);
    border-color: rgba(37,99,235,0.15);
    color: rgba(147,197,253,0.8);
}

/* ── Service card internals ─────────────────────────────────────────────────── */

.svc-icon-wrap {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(99,102,241,0.08) 100%);
    border: 1px solid rgba(59,130,246,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease,
                color 0.3s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.35s ease;
}

.service-card:hover .svc-icon-wrap {
    background: linear-gradient(135deg, rgba(59,130,246,0.22) 0%, rgba(99,102,241,0.15) 100%);
    border-color: rgba(59,130,246,0.38);
    color: #bfdbfe;
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 0 22px -4px rgba(59,130,246,0.35);
}

.svc-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: #f0f0fa;
    margin-bottom: 0.875rem;
    letter-spacing: -0.015em;
    transition: color 0.25s ease;
}

.service-card:hover .svc-title {
    color: #ffffff;
}

.svc-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.svc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* CTA link */
.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(113,113,122,0.7);
    transition: color 0.2s ease, gap 0.25s ease;
    text-decoration: none;
}

.service-card:hover .service-card-link {
    color: #60a5fa;
    gap: 0.625rem;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero-section {
    background:
        radial-gradient(ellipse 70% 60% at 5% 50%,  rgba(37,99,235,0.05) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 95% 30%, rgba(217,119,6,0.025) 0%, transparent 50%),
        #18181b;
}

/* Luz ambiental central fija */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        520px circle at 42% 40%,
        rgba(37, 99, 235, 0.07),
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

/* ── Nosotros section gradient ─────────────────────────────────────────────── */

.nosotros-quote {
    border-left: 2px solid rgba(37,99,235,0.4);
    padding-left: 1.25rem;
}

/* ── Typography system ──────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Satoshi', 'Manrope', system-ui, sans-serif;
    color: var(--text);
}

/* h1: 44px desktop — Satoshi thin */
h1 {
    font-size: 2.75rem;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

/* h2: 28px — Satoshi light */
h2 {
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* All headings thin */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* Hero title — thin Satoshi */
.hero-title {
    font-family: 'Satoshi', 'Manrope', system-ui, sans-serif !important;
    font-weight: 300 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.05 !important;
}

/* Section titles — same thin Satoshi treatment */
.section-title {
    font-family: 'Satoshi', 'Manrope', system-ui, sans-serif;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.font-mono, code, pre,
[class*="font-mono"],
.terminal-line,
.terminal-cursor,
.brand-chip,
.service-tag,
.service-card-label,
.marquee-sep {
    font-family: 'Roboto Mono', ui-monospace, monospace;
}

/* ── Tecnologías logo marquee ───────────────────────────────────────────────── */

.logo-marquee-wrap {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 0;
    animation: marquee-fwd 44s linear infinite;
    will-change: transform;
}

.marquee-track--rev {
    animation-name: marquee-rev;
    animation-duration: 56s;
}

.logo-marquee-wrap:hover .marquee-track {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 3rem;
    margin: 0 0.75rem;
    opacity: 0.35;
    transition: opacity 0.3s ease;
    filter: grayscale(1) brightness(1.2);
}

.logo-item:hover {
    opacity: 0.7;
    filter: grayscale(0) brightness(1);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-item--tall  { height: 3.5rem; }
.logo-item--short { height: 2.25rem; }

.marquee-dot {
    flex-shrink: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin: 0 0.25rem;
}

/* ── Brand marquee ─────────────────────────────────────────────────────────── */

@keyframes marquee-fwd {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes marquee-rev {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.marquee-outer {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-inner {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 0;
    animation: marquee-fwd 40s linear infinite;
    will-change: transform;
}

.marquee-inner--rev {
    animation-name: marquee-rev;
    animation-duration: 52s;
}

.marquee-outer:hover .marquee-inner {
    animation-play-state: paused;
}

.brand-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    margin: 0 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(161,161,170,0.85);
    white-space: nowrap;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    cursor: default;
    user-select: none;
}

.brand-chip:hover {
    color: rgba(224,224,240,0.9);
    border-color: rgba(59,130,246,0.25);
    background: rgba(59,130,246,0.06);
}

.brand-chip svg {
    opacity: 0.4;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.brand-chip:hover svg {
    opacity: 0.8;
}

/* Small diamond separator */
.marquee-sep {
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    border-radius: 1px;
    background: rgba(255,255,255,0.08);
    transform: rotate(45deg);
    margin: 0 0.6rem;
}

/* ── Page-wide cursor spotlight ────────────────────────────────────────────── */

.page-spotlight {
    background: radial-gradient(
        1200px circle at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(37, 99, 235, 0.08),
        transparent 60%
    );
    transition: opacity 0.6s ease;
}

/* Grid revealed only inside the cursor spotlight */
.page-grid {
    background-image: radial-gradient(circle, rgba(255,255,255,0.13) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(550px circle at var(--spot-x, 50%) var(--spot-y, 50%), black 0%, transparent 75%);
    mask-image: radial-gradient(550px circle at var(--spot-x, 50%) var(--spot-y, 50%), black 0%, transparent 75%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

@media (max-width: 767px) {
    .page-spotlight, .page-grid { display: none; }
}

/* ── Tech logo marquee (robolabs.so style) ─────────────────────────────────── */

.tech-marquee-outer {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgb(0,0,0) 10%, rgb(0,0,0) 90%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgb(0,0,0) 10%, rgb(0,0,0) 90%, rgba(0,0,0,0) 100%);
}

.tech-marquee-inner {
    display: flex;
    align-items: center;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: marquee-fwd 28s linear infinite;
    will-change: transform;
}

.tech-marquee-outer:hover .tech-marquee-inner {
    animation-play-state: paused;
}

.tech-logo-img {
    flex-shrink: 0;
    position: relative;
    width: 120px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-logo-img img {
    display: block;
    width: 100%;
    height: 100%;
    filter: grayscale(1) brightness(1.8) contrast(0.5);
    opacity: 0.4;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.tech-logo-img:hover img {
    opacity: 0.75;
    filter: grayscale(0.2) brightness(1.2);
}

/* ── Proceso section ────────────────────────────────────────────────────────── */

/* Card wrapper */
.phase-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0f0f14;
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s cubic-bezier(.16,1,.3,1), border-color .4s ease;
}

/* Top accent stripe — always visible, glows on hover */
.phase-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--card-accent);
    opacity: .8;
    transition: opacity .4s ease, filter .4s ease;
    z-index: 1;
}

/* Bottom glow bleed — the "effect below the card" */
.phase-card::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 20%; right: 20%;
    height: 1px;
    background: var(--card-accent);
    opacity: 0;
    filter: blur(6px);
    transition: opacity .4s ease, left .4s ease, right .4s ease;
}

.phase-card:hover { transform: translateY(-8px); }
.phase-card:hover::before { opacity: 1; filter: blur(1px) brightness(1.4); }
.phase-card:hover::after  { opacity: .7; left: 10%; right: 10%; }

.phase-card--blue  { --card-accent: linear-gradient(90deg,#3b82f6,#60a5fa); }
.phase-card--violet{ --card-accent: linear-gradient(90deg,#8b5cf6,#a78bfa); }
.phase-card--green { --card-accent: linear-gradient(90deg,#10b981,#34d399); }

/* Resting shadow — subtle colored base glow */
.phase-card--blue   { box-shadow: 0 0 0 0 transparent, 0 8px 32px -8px rgba(59,130,246,0.10); }
.phase-card--violet { box-shadow: 0 0 0 0 transparent, 0 8px 32px -8px rgba(139,92,246,0.10); }
.phase-card--green  { box-shadow: 0 0 0 0 transparent, 0 8px 32px -8px rgba(16,185,129,0.10); }

.phase-card--blue:hover  { border-color: rgba(59,130,246,0.28);  box-shadow: 0 0 0 1px rgba(59,130,246,0.10),  0 20px 50px -12px rgba(59,130,246,0.28),  0 40px 80px -24px rgba(0,0,0,0.7); }
.phase-card--violet:hover{ border-color: rgba(139,92,246,0.28);  box-shadow: 0 0 0 1px rgba(139,92,246,0.10),  0 20px 50px -12px rgba(139,92,246,0.28),  0 40px 80px -24px rgba(0,0,0,0.7); }
.phase-card--green:hover { border-color: rgba(16,185,129,0.28);  box-shadow: 0 0 0 1px rgba(16,185,129,0.10),  0 20px 50px -12px rgba(16,185,129,0.28),  0 40px 80px -24px rgba(0,0,0,0.7); }

/* Visual area */
.card-visual {
    position: relative;
    overflow: hidden;
    padding: 28px 24px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 175px;
}

.phase-card--blue   .card-visual { background: linear-gradient(160deg, rgba(37,99,235,0.13) 0%, rgba(37,99,235,0.03) 60%, #0c0c12 100%); }
.phase-card--violet .card-visual { background: linear-gradient(160deg, rgba(109,40,217,0.13) 0%, rgba(109,40,217,0.03) 60%, #0c0c12 100%); }
.phase-card--green  .card-visual { background: linear-gradient(160deg, rgba(5,150,105,0.12) 0%, rgba(5,150,105,0.02) 60%, #0c0c12 100%); }

/* Watermark number — hidden */
.card-watermark { display: none; }

/* Text body */
.card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.phase-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.phase-badge--blue   { color: #60a5fa; border-color: rgba(59,130,246,0.2);  background: rgba(59,130,246,0.06); }
.phase-badge--violet { color: #a78bfa; border-color: rgba(139,92,246,0.2); background: rgba(139,92,246,0.06); }
.phase-badge--green  { color: #34d399; border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.06); }

.card-title {
    font-family: 'Satoshi','Manrope',system-ui,sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #f4f4f5;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.card-desc {
    font-size: 13px;
    color: #71717a;
    line-height: 1.65;
    max-width: 28ch;
}

/* ── Flow nodes (Card 1) */
.flow-node {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 10px;
    color: #71717a;
}

.flow-node--active {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.28);
    color: #93c5fd;
}

.flow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: pulse-dot 2.4s ease-in-out infinite;
}

.flow-tag {
    text-align: center;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 9px;
    color: #3f3f46;
}

/* Progress bar */
.prog-track {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 10px;
}

.prog-fill {
    height: 100%;
    background: linear-gradient(90deg,#2563eb,#60a5fa);
    border-radius: 99px;
    animation: prog 3s ease-in-out infinite;
}

@keyframes prog { 0%,100%{width:55%} 50%{width:84%} }

/* Scan beam */
.scan-beam {
    position: absolute;
    left: 0; right: 0;
    height: 48px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(59,130,246,0.06) 50%, transparent 100%);
    animation: scan 3.5s cubic-bezier(.4,0,.6,1) infinite;
}

@keyframes scan { 0%{top:-48px;opacity:0} 8%{opacity:1} 92%{opacity:1} 100%{top:calc(100% + 48px);opacity:0} }

/* ── Hub (Card 2) */
.hub-area {
    position: relative;
    width: 80px;
    height: 110px;
    flex-shrink: 0;
}

.hub-svg {
    position: absolute;
    inset: 0;
}

.hub-center {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-core {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-size: 20px;
    color: #a78bfa;
    animation: hub-pulse 2.4s ease-in-out infinite;
}

@keyframes hub-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(139,92,246,0.25); }
    50%      { box-shadow: 0 0 0 10px rgba(139,92,246,0); }
}

.hub-ring {
    position: absolute;
    width: 68px; height: 68px;
    border-radius: 18px;
    border: 1px dashed rgba(139,92,246,0.2);
    animation: ring-spin 8s linear infinite;
}

@keyframes ring-spin { to { transform: rotate(360deg); } }

.sys-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 10px;
    color: #52525b;
    white-space: nowrap;
}

.sys-chip--live {
    border-color: rgba(139,92,246,0.25);
    color: #c4b5fd;
    background: rgba(139,92,246,0.06);
}

/* ── Metrics (Card 3) */
.metric-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.metric-label {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 10px;
    color: #52525b;
    width: 60px;
    flex-shrink: 0;
}

.metric-bar-wrap {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 99px;
    overflow: hidden;
}

.metric-bar {
    height: 100%;
    border-radius: 99px;
    animation: metric-grow 2.5s ease-out forwards, metric-pulse 3s ease-in-out 2.5s infinite;
}

@keyframes metric-grow { from{width:0} to{width:var(--w)} }
@keyframes metric-pulse { 0%,100%{opacity:1} 50%{opacity:.65} }

.metric-val {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 10px;
    width: 36px;
    text-align: right;
    flex-shrink: 0;
}

.code-mini {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 10px;
    line-height: 1.7;
    margin-top: 10px;
}

.proceso-cursor {
    display: inline-block;
    width: 6px; height: 10px;
    background: rgba(52,211,153,0.8);
    border-radius: 1px;
    margin-left: 2px;
    vertical-align: middle;
    animation: cursor-blink 1.1s ease-in-out infinite;
}

@keyframes cursor-blink { 0%,100%{opacity:1} 50%{opacity:0} }

.uptime-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 10px;
    color: #34d399;
    margin-top: 10px;
}

.sdot-green { background: #10b981; animation: pulse-dot 2s ease-in-out infinite; }

/* ── Proceso: service mini-cards ───────────────────────────────────────────── */
.svc-mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background .25s ease, border-color .25s ease, transform .25s cubic-bezier(.16,1,.3,1);
    cursor: default;
}

.svc-mini-card:hover {
    background: rgba(255,255,255,0.045);
    border-color: color-mix(in srgb, var(--ic) 30%, transparent);
    transform: translateY(-2px);
}

.svc-mini-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    color: var(--ic, #60a5fa);
    background: color-mix(in srgb, var(--ic, #3b82f6) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--ic, #3b82f6) 22%, transparent);
    transition: background .25s ease, border-color .25s ease;
}

.svc-mini-card:hover .svc-mini-icon {
    background: color-mix(in srgb, var(--ic, #3b82f6) 20%, transparent);
}

.svc-mini-label {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #71717a;
    line-height: 1.3;
    transition: color .25s ease;
}

.svc-mini-card:hover .svc-mini-label {
    color: #a1a1aa;
}

/* ── FAQ accordion ──────────────────────────────────────────────────────────── */

details.faq-item summary {
    -webkit-appearance: none;
    appearance: none;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item .faq-body {
    overflow: hidden;
}

/* ── Service card — ensure pseudo-elements work without overflow-hidden wrapper ── */

.service-item.service-card {
    position: relative;
    overflow: hidden;
}

/* ── Mobile menu ────────────────────────────────────────────────────────────── */

.mobile-menu-overlay {
    transition: opacity 0.25s ease;
}

.mobile-menu-link {
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-link:hover {
    color: #ffffff;
    padding-left: 0.5rem;
}

/* ── CTA offer cards ────────────────────────────────────────────────────────── */

.cta-section .offer-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── Services: Horizontal flow cards ─────────────────────────────────────── */

.svc-flow-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.svc-flow-card--violet {
    background: rgba(139,92,246,0.04);
    border: 1px solid rgba(139,92,246,0.16);
    border-top: 2px solid rgba(139,92,246,0.5);
}
.svc-flow-card--violet:hover {
    border-color: rgba(139,92,246,0.28);
    box-shadow: 0 8px 32px -8px rgba(139,92,246,0.14);
}

.svc-flow-card--blue {
    background: rgba(37,99,235,0.06);
    border: 1px solid rgba(37,99,235,0.22);
    border-top: 2px solid rgba(37,99,235,0.65);
}
.svc-flow-card--blue:hover {
    border-color: rgba(37,99,235,0.35);
    box-shadow: 0 8px 32px -8px rgba(37,99,235,0.2);
}

.svc-flow-card--amber {
    background: rgba(245,158,11,0.03);
    border: 1px solid rgba(245,158,11,0.14);
    border-top: 2px solid rgba(245,158,11,0.45);
}
.svc-flow-card--amber:hover {
    border-color: rgba(245,158,11,0.25);
    box-shadow: 0 8px 32px -8px rgba(245,158,11,0.11);
}

.svc-watermark {
    position: absolute;
    top: -1rem;
    right: 0.875rem;
    font-family: 'Satoshi', 'Manrope', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,0.025);
    pointer-events: none;
    user-select: none;
}

.svc-tag {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
}
.svc-tag--violet {
    background: rgba(139,92,246,0.07);
    border: 1px solid rgba(139,92,246,0.18);
    color: rgba(167,139,250,0.65);
}
.svc-tag--blue {
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.20);
    color: rgba(96,165,250,0.7);
}
.svc-tag--amber {
    background: rgba(245,158,11,0.07);
    border: 1px solid rgba(245,158,11,0.18);
    color: rgba(251,191,36,0.6);
}

/* Vertical connector between flow cards */
.svc-v-line {
    width: 1px;
    height: 64px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--lc1, rgba(255,255,255,0.2)), var(--lc2, rgba(255,255,255,0.2)));
    flex-shrink: 0;
}

/* ── Services: 3D Holographic Layer Stack (legacy, kept for reference) ─────── */

.svc-3d-wrapper {
    perspective: 2200px;
    perspective-origin: 50% 38%;
    width: 100%;
    padding: 0.5rem 1.5rem 2.5rem;
    overflow: visible;
    cursor: default;
}

.svc-3d-stage {
    transform-style: preserve-3d;
    transform: rotateX(16deg) rotateY(-3deg);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    will-change: transform;
}

/* Slabs */

.svc-slab {
    position: relative;
    border-radius: 14px;
    overflow: visible;
}

.svc-slab-surface {
    position: relative;
    z-index: 1;
    padding: 0.9rem 1.1rem 1.1rem;
    border-radius: 14px;
    overflow: hidden;
}

.svc-slab--violet .svc-slab-surface {
    background: rgba(16, 10, 30, 0.88);
    border: 1px solid rgba(139,92,246,0.22);
    box-shadow: 0 4px 28px -4px rgba(139,92,246,0.12), inset 0 1px 0 rgba(167,139,250,0.08);
}

.svc-slab--blue .svc-slab-surface {
    background: rgba(8, 16, 36, 0.92);
    border: 1px solid rgba(37,99,235,0.32);
    box-shadow: 0 4px 32px -4px rgba(37,99,235,0.16), inset 0 1px 0 rgba(96,165,250,0.10);
}

.svc-slab--amber .svc-slab-surface {
    background: rgba(18, 13, 6, 0.88);
    border: 1px solid rgba(245,158,11,0.20);
    box-shadow: 0 4px 24px -4px rgba(245,158,11,0.08), inset 0 1px 0 rgba(251,191,36,0.06);
}

/* Edge — 3D thickness illusion */
.svc-slab-edge {
    position: absolute;
    left: 4px; right: 4px; bottom: -7px;
    height: 8px;
    border-radius: 0 0 10px 10px;
    z-index: 0;
}

.svc-edge--violet {
    background: linear-gradient(to bottom, rgba(109,40,217,0.5), rgba(76,29,149,0.15));
}
.svc-edge--blue {
    background: linear-gradient(to bottom, rgba(29,78,216,0.55), rgba(30,58,138,0.15));
}
.svc-edge--amber {
    background: linear-gradient(to bottom, rgba(180,83,9,0.45), rgba(120,53,15,0.12));
}

/* Slab meta bar */

.svc-slab-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    margin-bottom: 0.7rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.slab-num {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.slab-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.slab-sublabel {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.58rem;
    color: rgba(113,113,122,0.45);
    letter-spacing: 0.06em;
}

.slab-badge--live {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(37,99,235,0.12);
    border: 1px solid rgba(37,99,235,0.28);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.52rem;
    color: rgba(96,165,250,0.75);
    letter-spacing: 0.06em;
    margin-left: auto;
}

/* Service chips */

.svc-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.svc-chip--violet {
    background: rgba(139,92,246,0.06);
    border-color: rgba(139,92,246,0.15);
}
.svc-chip--violet:hover {
    background: rgba(139,92,246,0.10);
    border-color: rgba(139,92,246,0.26);
}

.svc-chip--blue {
    background: rgba(37,99,235,0.07);
    border-color: rgba(37,99,235,0.18);
}
.svc-chip--blue:hover {
    background: rgba(37,99,235,0.12);
    border-color: rgba(37,99,235,0.30);
}

.svc-chip--dark {
    background: rgba(255,255,255,0.025);
    border-color: rgba(255,255,255,0.06);
}
.svc-chip--dark:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.09);
}

.svc-chip--amber {
    background: rgba(245,158,11,0.05);
    border-color: rgba(245,158,11,0.14);
}
.svc-chip--amber:hover {
    background: rgba(245,158,11,0.09);
    border-color: rgba(245,158,11,0.24);
}

.svc-chip--hero {
    align-items: center;
    padding: 0.9rem 1rem;
}

/* Chip icons */

.chip-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chip-icon--violet {
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.22);
}
.chip-icon--blue {
    background: rgba(37,99,235,0.12);
    border: 1px solid rgba(37,99,235,0.24);
}
.chip-icon--dark {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.chip-icon--amber {
    background: rgba(245,158,11,0.09);
    border: 1px solid rgba(245,158,11,0.18);
}
.chip-icon--lg {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
}

/* Chip typography */

.chip-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: #d4d4d8;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}
.chip-title--lg {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f0f0f5;
}

.chip-desc {
    font-size: 0.72rem;
    color: rgba(113,113,122,0.85);
    line-height: 1.55;
    margin-bottom: 0.45rem;
}

.chip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.3rem;
}
.chip-tags span {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(161,161,170,0.6);
}

/* SVG node graph decoration */
.chip-graph {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.18;
    pointer-events: none;
}

/* Flow connectors */

.svc-flow-row {
    display: flex;
    align-items: center;
    height: 48px;
}

.flow-h-line {
    flex: 1;
    height: 1px;
}

.flow-v-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.flow-spine {
    width: 1px;
    height: 14px;
    position: relative;
    overflow: hidden;
}

.flow-spine-tail {
    width: 1px;
    height: 8px;
}

@keyframes svc-flow-particle {
    0%   { top: -4px; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 0.8; }
    100% { top: calc(100% + 4px); opacity: 0; }
}

.flow-particle {
    position: absolute;
    left: 50%;
    top: -4px;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--p-color, rgba(255,255,255,0.5));
    animation: svc-flow-particle 2s ease-in-out infinite;
    animation-delay: var(--p-delay, 0s);
    pointer-events: none;
}

.flow-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
    margin: 2px 0;
}

/* Mobile accordion */

.svc-mobile-layer > summary {
    -webkit-appearance: none;
    appearance: none;
    list-style: none;
}
.svc-mobile-layer > summary::-webkit-details-marker {
    display: none;
}
.svc-mobile-layer[open] > summary .ph-caret-down {
    transform: rotate(180deg);
}

/* ── Proceso card micro-animations ─────────────────────────────────────────── */

/* Card 1 — "Enviar" node pulse */
@keyframes proc-send-glow {
    0%,100% { background:rgba(37,99,235,.10); border-color:rgba(37,99,235,.30); }
    50%     { background:rgba(37,99,235,.28); border-color:rgba(37,99,235,.60); box-shadow:0 0 10px rgba(59,130,246,.18); }
}
.proc-send { animation: proc-send-glow 2.4s ease-in-out infinite; }

/* Card 2 — system icon cells: staggered wake */
@keyframes proc-icon-wake {
    0%,100% { opacity:.30; }
    50%     { opacity:1; }
}
.proc-sys { animation: proc-icon-wake 4s ease-in-out infinite; }

/* Card 3 — step blocks: staggered pulse on active ones */
@keyframes proc-step-pulse {
    0%,100% { background:rgba(37,99,235,.15); border-color:rgba(37,99,235,.30); }
    50%     { background:rgba(37,99,235,.38); border-color:rgba(37,99,235,.68); }
}
.proc-step-on { animation: proc-step-pulse 2.8s ease-in-out infinite; }

.post-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.post-card:hover {
    transform: translateY(-4px);
}
.post-card:hover .post-card img {
    transform: scale(1.05);
}

.category-filter {
    cursor: pointer;
    transition: all 0.2s ease;
}
.category-filter.active {
    background: #f4f4f5;
    color: #18181b;
}
.category-filter:hover:not(.active) {
    border-color: rgba(255,255,255,0.15);
    color: #e4e4e8;
}

.featured-post .featured-post img {
    transition: transform 0.5s ease;
}
.featured-post:hover img {
    transform: scale(1.05);
}

/* ── CTA: Live border button ──────────────────────────────────────────────── */

@keyframes cta-border-spin {
    to { rotate: 1turn; }
}

.cta-live-wrap {
    display: inline-flex;
    position: relative;
    padding: 1.5px;
    border-radius: 14px;
    isolation: isolate;
}

.cta-live-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: conic-gradient(from 0deg, transparent 0deg, #3b82f6 90deg, #60a5fa 150deg, #93c5fd 180deg, transparent 270deg);
    animation: cta-border-spin 2.8s linear infinite;
    z-index: -1;
}

.cta-live-wrap > a,
.cta-live-wrap > button {
    position: relative;
    border-radius: 12px;
    background: var(--bg);
}

/* ── CTA: Contact info cards ─────────────────────────────────────────────── */

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    text-decoration: none;
}

.contact-info-card:hover {
    border-color: rgba(59,130,246,0.35);
    background: rgba(59,130,246,0.05);
    transform: translateY(-2px);
}

.contact-info-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(59,130,246,0.10);
    border: 1px solid rgba(59,130,246,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-info-card:hover .card-icon {
    background: rgba(59,130,246,0.18);
    border-color: rgba(59,130,246,0.40);
}

/* ── CTA Button Animation ──────────────────────────────────────────────── */

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 32px -4px rgba(37, 99, 235, 0.6);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 48px -4px rgba(37, 99, 235, 0.8);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
