:root {
    --bg: #edf2f7;
    --bg-deep: #dce6f3;
    --paper: #ffffff;
    --ink-900: #0a1e34;
    --ink-700: #2f4762;
    --line: rgba(12, 37, 63, 0.16);
    --brand: #1459d9;
    --brand-deep: #0f44aa;
    --teal: #0f9f99;
    --accent: #f2934f;
    --shadow-soft: 0 16px 44px rgba(8, 28, 52, 0.12);
    --shadow-strong: 0 24px 56px rgba(8, 28, 52, 0.2);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --font-display: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink-700);
    background:
        radial-gradient(circle at 8% 18%, rgba(20, 89, 217, 0.14), transparent 32%),
        radial-gradient(circle at 84% 4%, rgba(15, 159, 153, 0.16), transparent 34%),
        linear-gradient(180deg, var(--bg), var(--bg-deep));
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(13, 47, 79, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 47, 79, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 50% 20%, black 25%, transparent 75%);
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -48px;
    z-index: 1200;
    border-radius: 10px;
    background: #0f44aa;
    color: #ffffff;
    font-weight: 700;
    padding: 0.6rem 0.9rem;
    box-shadow: 0 10px 24px rgba(8, 28, 52, 0.28);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--ink-900);
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

@supports (content-visibility: auto) {
    .section:not(.hero) {
        content-visibility: auto;
        contain-intrinsic-size: 780px;
    }
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: drift 14s ease-in-out infinite;
}

.orb-1 {
    width: 280px;
    height: 280px;
    left: -80px;
    top: 15vh;
    background: radial-gradient(circle, rgba(20, 89, 217, 0.24), transparent 70%);
}

.orb-2 {
    width: 320px;
    height: 320px;
    right: -90px;
    top: 25vh;
    background: radial-gradient(circle, rgba(15, 159, 153, 0.28), transparent 70%);
    animation-delay: -4s;
}

.orb-3 {
    width: 220px;
    height: 220px;
    left: 38%;
    bottom: -70px;
    background: radial-gradient(circle, rgba(242, 147, 79, 0.28), transparent 70%);
    animation-delay: -8s;
}

.grid-glow {
    position: absolute;
    inset: auto 6% 16% auto;
    width: 340px;
    height: 220px;
    border-radius: 28px;
    border: 1px solid rgba(20, 89, 217, 0.18);
    background: linear-gradient(135deg, rgba(20, 89, 217, 0.1), rgba(15, 159, 153, 0.08));
    transform: rotate(-8deg);
    animation: tiltGlow 12s ease-in-out infinite;
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -26px, 0) scale(1.04);
    }
}

@keyframes tiltGlow {
    0%,
    100% {
        transform: rotate(-8deg) translateY(0);
    }
    50% {
        transform: rotate(-4deg) translateY(-14px);
    }
}

.topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.topbar.scrolled {
    background: rgba(237, 242, 247, 0.85);
    backdrop-filter: blur(10px);
    border-color: var(--line);
    box-shadow: 0 10px 28px rgba(8, 28, 52, 0.08);
}

.nav-shell {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 54px;
    width: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu a {
    font-weight: 700;
    color: var(--ink-900);
    opacity: 0.86;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.menu a:hover {
    opacity: 1;
    color: var(--brand);
}

.menu-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.menu-btn span {
    width: 18px;
    height: 2px;
    background: var(--ink-900);
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.menu-btn.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-nav {
    padding: 0.65rem 1.15rem;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    padding: 0.9rem 1.35rem;
    color: #ffffff;
    background: linear-gradient(125deg, var(--brand-deep), var(--brand), var(--teal));
    box-shadow: 0 16px 30px rgba(20, 89, 217, 0.3);
    border: none;
    cursor: pointer;
}

.btn-secondary {
    padding: 0.9rem 1.35rem;
    color: var(--ink-900);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.hero {
    position: relative;
    padding-top: 10.2rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    overflow: clip;
}

#mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.66;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--brand);
    font-weight: 800;
}

.hero-copy h1 {
    font-size: clamp(2.1rem, 5vw, 4.1rem);
    max-width: 14ch;
    margin-bottom: 1rem;
}

.hero-subtitle {
    max-width: 58ch;
    font-size: clamp(1rem, 1.9vw, 1.16rem);
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.9rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    max-width: 620px;
}

.hero-metrics article {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    padding: 0.85rem 0.95rem;
    display: grid;
    gap: 0.15rem;
}

.hero-metrics strong {
    font-family: var(--font-display);
    color: var(--ink-900);
    font-size: 1.45rem;
}

.hero-metrics span {
    font-size: 0.9rem;
}

.hero-panel {
    position: relative;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(20, 89, 217, 0.28);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(237, 246, 255, 0.92));
    box-shadow: var(--shadow-strong);
    padding: 1.4rem;
    overflow: hidden;
    transform-style: preserve-3d;
    transform:
        perspective(1200px)
        rotateX(var(--tilt-x, 0deg))
        rotateY(var(--tilt-y, 0deg));
    transition: transform 0.2s ease;
}

.panel-tag {
    width: fit-content;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 800;
    color: var(--brand);
    border: 1px solid rgba(20, 89, 217, 0.2);
    background: rgba(20, 89, 217, 0.1);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    margin-bottom: 0.8rem;
}

.hero-panel h2 {
    font-size: clamp(1.35rem, 2.4vw, 2.05rem);
    max-width: 16ch;
    margin-bottom: 1rem;
}

.vercel-scene {
    --scene-rotate-x: 0deg;
    --scene-rotate-y: 0deg;
    position: relative;
    height: 210px;
    margin-bottom: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(20, 89, 217, 0.24);
    background:
        radial-gradient(circle at 28% 18%, rgba(20, 89, 217, 0.28), transparent 44%),
        radial-gradient(circle at 78% 74%, rgba(15, 159, 153, 0.22), transparent 46%),
        linear-gradient(160deg, rgba(8, 26, 48, 0.96), rgba(15, 51, 86, 0.95));
    overflow: hidden;
    transform-style: preserve-3d;
    transform:
        perspective(1000px)
        rotateX(var(--scene-rotate-x))
        rotateY(var(--scene-rotate-y));
    transition: transform 0.2s ease;
}

.scene-shadow,
.scene-ring,
.scene-core,
.scene-pulse,
.scene-dot {
    position: absolute;
    pointer-events: none;
}

.scene-shadow {
    width: 240px;
    height: 56px;
    left: 50%;
    bottom: 24px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(10, 18, 28, 0.65), transparent 70%);
    transform: translateX(-50%);
    filter: blur(5px);
}

.scene-ring {
    left: 50%;
    top: 56%;
    border-radius: 50%;
    border: 1px solid rgba(153, 214, 255, 0.38);
    transform-style: preserve-3d;
    box-shadow: 0 0 26px rgba(94, 179, 255, 0.16);
}

.ring-1 {
    width: 198px;
    height: 198px;
    transform: translate(-50%, -50%) rotateX(72deg);
    animation: sceneSpinA 11s linear infinite;
}

.ring-2 {
    width: 146px;
    height: 146px;
    transform: translate(-50%, -50%) rotateX(72deg) rotateZ(18deg);
    border-color: rgba(166, 255, 227, 0.46);
    animation: sceneSpinB 8s linear infinite;
}

.ring-3 {
    width: 96px;
    height: 96px;
    transform: translate(-50%, -50%) rotateX(72deg) rotateZ(-16deg);
    border-color: rgba(255, 216, 178, 0.6);
    animation: sceneSpinA 5s linear infinite reverse;
}

.scene-core {
    width: 50px;
    height: 50px;
    left: 50%;
    top: 56%;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(22px);
    background: radial-gradient(circle at 30% 28%, #ffffff, #9ad6ff 40%, #1f66ba 80%);
    box-shadow:
        0 0 22px rgba(154, 214, 255, 0.62),
        0 0 48px rgba(83, 168, 255, 0.35);
}

.scene-pulse {
    width: 92px;
    height: 92px;
    left: 50%;
    top: 56%;
    border-radius: 50%;
    border: 1px solid rgba(197, 234, 255, 0.45);
    transform: translate(-50%, -50%);
    animation: scenePulse 2.5s ease-out infinite;
}

.scene-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 12px currentColor;
}

.dot-1 {
    top: 64px;
    left: 58px;
    color: #76d6ff;
    background: #a3e3ff;
    animation: sceneDotFloat 3.8s ease-in-out infinite;
}

.dot-2 {
    top: 48px;
    right: 66px;
    color: #63f0cf;
    background: #a8ffe8;
    animation: sceneDotFloat 4.6s ease-in-out infinite -0.8s;
}

.dot-3 {
    bottom: 56px;
    right: 88px;
    color: #ffcb86;
    background: #ffe2b8;
    animation: sceneDotFloat 4.1s ease-in-out infinite -1.2s;
}

@keyframes sceneSpinA {
    from {
        transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg);
    }
}

@keyframes sceneSpinB {
    from {
        transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg);
    }
}

@keyframes scenePulse {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.72);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.38);
    }
}

@keyframes sceneDotFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.panel-card {
    border: 1px solid rgba(12, 37, 63, 0.15);
    border-radius: 14px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.78);
}

.panel-card p {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.panel-card strong {
    color: var(--ink-900);
    font-size: 0.94rem;
}

.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-shape-1 {
    width: 74px;
    height: 74px;
    right: -16px;
    top: -16px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(20, 89, 217, 0.3), rgba(15, 159, 153, 0.28));
    transform: rotate(22deg);
    animation: spinSquare 14s linear infinite;
}

.geo-shape-2 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 54px solid rgba(242, 147, 79, 0.36);
    left: -18px;
    bottom: 20px;
    animation: bob 7s ease-in-out infinite;
}

@keyframes spinSquare {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.sector-bar {
    padding: 0 0 1rem;
}

.sector-label {
    margin-bottom: 0.8rem;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--ink-900);
    font-weight: 700;
}

.ticker {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.ticker-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem;
    animation: tickerMove 24s linear infinite;
}

.ticker-track span {
    border: 1px solid rgba(12, 37, 63, 0.12);
    border-radius: 999px;
    padding: 0.32rem 0.78rem;
    background: #ffffff;
    color: var(--ink-900);
    font-size: 0.84rem;
    font-weight: 700;
}

@keyframes tickerMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.section-head {
    margin-bottom: 2rem;
}

.section-head h2 {
    font-size: clamp(1.75rem, 4.1vw, 3rem);
    max-width: 20ch;
}

.tech-stack {
    padding-top: 3rem;
    padding-bottom: 3.4rem;
}

.stack-head h2 {
    max-width: 26ch;
}

.tech-logo-wall {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.tech-logo {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tech-logo img {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
}

.tech-logo span {
    color: var(--ink-900);
    font-size: 0.9rem;
    font-weight: 700;
}

.tech-logo:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 89, 217, 0.34);
    box-shadow: 0 18px 34px rgba(8, 28, 52, 0.16);
}

.architecture {
    padding-top: 3rem;
}

.architecture-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 1rem;
    align-items: start;
}

.architecture-copy h2 {
    font-size: clamp(1.75rem, 4vw, 2.9rem);
    max-width: 18ch;
    margin-bottom: 1rem;
}

.architecture-copy > p {
    max-width: 58ch;
}

.architecture-benefits {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    gap: 0.5rem;
}

.architecture-benefits li {
    position: relative;
    padding-left: 1rem;
}

.architecture-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--teal);
}

.architecture-map {
    border: 1px solid rgba(20, 89, 217, 0.24);
    border-radius: var(--radius-xl);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(235, 245, 255, 0.9));
    box-shadow: var(--shadow-soft);
    padding: 1rem;
    display: grid;
    gap: 0.7rem;
}

.arch-layer {
    border: 1px solid rgba(12, 37, 63, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.8rem;
    display: grid;
    gap: 0.28rem;
}

.arch-layer p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
    font-weight: 800;
}

.arch-layer strong {
    color: var(--ink-900);
    font-size: 0.96rem;
}

.arch-layer span {
    font-size: 0.84rem;
    color: rgba(47, 71, 98, 0.92);
}

.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.9rem;
}

.bento-card {
    grid-column: span 4;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    padding: 1.15rem;
    position: relative;
    overflow: hidden;
}

.bento-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -42% auto;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 89, 217, 0.14), transparent 70%);
    pointer-events: none;
}

.bento-large {
    grid-column: span 7;
}

.bento-tall {
    grid-column: span 5;
    grid-row: span 2;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(20, 89, 217, 0.12);
    border: 1px solid rgba(20, 89, 217, 0.2);
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.bento-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
}

.bento-card p {
    margin-bottom: 0.65rem;
}

.bento-card ul {
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.bento-card li {
    position: relative;
    padding-left: 1rem;
}

.bento-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
}

/* Scrollbar oculto para lista de tabs */
.no-visible-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.no-visible-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Services tabs (estilo Aceternity / Motion) */
.services-tabs {
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    min-height: 20rem;
}

.services-tab-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.services-tab {
    flex-shrink: 0;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-700);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.services-tab:hover {
    border-color: rgba(20, 89, 217, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-900);
}

.services-tab.active {
    border-color: var(--brand);
    background: rgba(20, 89, 217, 0.1);
    color: var(--brand-deep);
    box-shadow: var(--shadow-soft);
}

.services-tab-panels {
    position: relative;
    min-height: 20rem;
    overflow: visible;
    margin-top: 4rem;
}

.services-tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 17rem;
    transform-origin: top center;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
                opacity 0.5s ease,
                top 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
}

/* FadeInDiv: scale 1 - idx*0.1, top hovering ? idx*-50 : 0, zIndex -idx, opacity idx<3 ? 1-idx*0.1 : 0 */
.services-tab-panel[data-stack="0"] {
    transform: scale(1);
    top: 0;
    z-index: 0;
    opacity: 1;
    pointer-events: auto;
    box-shadow: var(--shadow-strong);
}

.services-tab-panel[data-stack="0"] .bento-card-tab {
    background: var(--paper);
}

.services-tab-panel[data-stack="0"].tab-bounce {
    animation: tabBounce 0.6s ease-out;
}

@keyframes tabBounce {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1) translateY(40px); }
}

.services-tab-panel[data-stack="1"] {
    transform: scale(0.9);
    top: 0;
    z-index: -1;
    opacity: 0.9;
}

.services-tabs.hovering .services-tab-panel[data-stack="1"] {
    top: -50px;
}

.services-tab-panel[data-stack="2"] {
    transform: scale(0.8);
    top: 0;
    z-index: -2;
    opacity: 0.8;
}

.services-tabs.hovering .services-tab-panel[data-stack="2"] {
    top: -100px;
}

.services-tab-panel[data-stack="3"] {
    transform: scale(0.7);
    top: 0;
    z-index: -3;
    opacity: 0;
}

.services-tabs.hovering .services-tab-panel[data-stack="3"] {
    top: -150px;
}

.services-tab-panel[data-stack="4"] {
    transform: scale(0.6);
    top: 0;
    z-index: -4;
    opacity: 0;
}

.services-tabs.hovering .services-tab-panel[data-stack="4"] {
    top: -200px;
}

.services-tab-panel .bento-card-tab {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Cards de servicios: más personalidad y profundidad */
.bento-card-tab {
    max-width: 100%;
    grid-column: span 1;
    border-left: 4px solid var(--brand);
    border-radius: var(--radius-lg);
    box-shadow:
        0 4px 20px rgba(8, 28, 52, 0.08),
        0 1px 3px rgba(8, 28, 52, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
}

.bento-card-tab::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 159, 153, 0.08), transparent 65%);
    pointer-events: none;
}

.services-tab-panel[data-stack="0"] .bento-card-tab {
    border-left-color: var(--teal);
    box-shadow:
        0 8px 32px rgba(8, 28, 52, 0.12),
        0 2px 8px rgba(8, 28, 52, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.services-tab-panel[data-stack="0"] .bento-card-tab:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(8, 28, 52, 0.14),
        0 4px 12px rgba(8, 28, 52, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bento-card-tab .card-icon {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
    background: linear-gradient(145deg, rgba(20, 89, 217, 0.16), rgba(20, 89, 217, 0.08));
    border-color: rgba(20, 89, 217, 0.25);
}

.services-tab-panel[data-stack="0"] .bento-card-tab .card-icon {
    background: linear-gradient(145deg, rgba(15, 159, 153, 0.2), rgba(15, 159, 153, 0.1));
    border-color: rgba(15, 159, 153, 0.35);
    color: var(--teal);
}

.bento-card-tab h3 {
    font-size: 1.22rem;
    letter-spacing: -0.02em;
}

.bento-card-tab p {
    color: var(--ink-700);
    line-height: 1.65;
}

.method {
    padding-top: 4.6rem;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.step {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.84);
    padding: 1.05rem;
    position: relative;
    overflow: hidden;
}

.step span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(242, 147, 79, 0.22);
    color: #8c4f24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.step h3 {
    font-size: 1.03rem;
    margin-bottom: 0.4rem;
}

.team {
    padding-top: 4.2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.team-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(236, 246, 255, 0.9));
    box-shadow: var(--shadow-soft);
    padding: 1.1rem;
    display: grid;
    gap: 0.65rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 89, 217, 0.35);
    box-shadow: 0 22px 44px rgba(10, 40, 70, 0.18);
}

.team-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(130deg, var(--brand-deep), var(--brand), var(--teal));
    box-shadow: 0 10px 18px rgba(20, 89, 217, 0.28);
}

.team-card h3 {
    font-size: 1.08rem;
}

.team-role {
    color: var(--brand);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.team-bio {
    font-size: 0.93rem;
}

.team-stack {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.team-stack li {
    border: 1px solid rgba(12, 37, 63, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink-900);
    padding: 0.22rem 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.results-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.results-copy h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    max-width: 16ch;
    margin-bottom: 1rem;
}

.results-copy > p {
    max-width: 58ch;
}

.case-list {
    margin-top: 1rem;
    list-style: none;
    display: grid;
    gap: 0.42rem;
}

.case-list li {
    position: relative;
    padding-left: 1rem;
}

.case-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.case-groomly .result-card {
    background: rgba(255, 255, 255, 0.92);
}

.results-grid {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.result-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    padding: 0.9rem;
}

.result-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ink-900);
}

.result-card span {
    font-size: 0.88rem;
}

.testimonial {
    border: 1px solid rgba(20, 89, 217, 0.26);
    border-radius: var(--radius-xl);
    background: linear-gradient(155deg, #0e2a4b, #11355f 55%, #145779);
    color: rgba(255, 255, 255, 0.9);
    padding: 1.4rem;
    box-shadow: var(--shadow-strong);
}

.testimonial-label {
    font-size: 0.74rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.82;
    margin-bottom: 0.8rem;
}

.testimonial-text {
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.testimonial-meta {
    display: grid;
    gap: 0.2rem;
}

.testimonial-meta strong {
    font-family: var(--font-display);
    color: #ffffff;
}

.testimonial-meta span {
    opacity: 0.85;
    font-size: 0.93rem;
}

.testimonial-dots {
    margin-top: 1.1rem;
    display: flex;
    gap: 0.45rem;
}

.testimonial-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.testimonial-dots button.active {
    background: #ffffff;
    transform: scale(1.2);
}

.faq {
    padding-top: 4.2rem;
}

.faq-list {
    display: grid;
    gap: 0.7rem;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.1rem;
}

.faq-item summary {
    font-family: var(--font-display);
    color: var(--ink-900);
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 1.2rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--brand);
    font-weight: 800;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    margin-top: 0.65rem;
    max-width: 72ch;
}

.contact {
    padding-bottom: 6.5rem;
}

.contact-layout {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
    padding: 1.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.contact-copy h2 {
    font-size: clamp(1.55rem, 3.1vw, 2.5rem);
    max-width: 17ch;
    margin-bottom: 0.7rem;
}

.contact-copy > p {
    max-width: 56ch;
}

.contact-list {
    margin-top: 1rem;
    list-style: none;
    display: grid;
    gap: 0.4rem;
}

.contact-list li {
    position: relative;
    padding-left: 1rem;
}

.contact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.contact-form {
    border-radius: 20px;
    border: 1px solid rgba(12, 37, 63, 0.15);
    background: #ffffff;
    padding: 1rem;
    display: grid;
    gap: 0.8rem;
}

.contact-form label {
    display: grid;
    gap: 0.38rem;
    font-size: 0.92rem;
    color: var(--ink-900);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f9fbfd;
    color: var(--ink-900);
    font: inherit;
    padding: 0.72rem 0.8rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(20, 89, 217, 0.24);
    border-color: var(--brand);
}

.contact-meta {
    margin-top: 1rem;
    color: rgba(47, 71, 98, 0.96);
}

.contact-meta a,
.footer-shell a {
    color: var(--brand-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 2.2rem 0 2.7rem;
}

.footer-shell {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.7rem;
}

.footer-shell p {
    max-width: 58ch;
}

.footer-shell small {
    color: rgba(47, 71, 98, 0.88);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero-grid,
    .architecture-layout,
    .results-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 620px;
    }

    .bento-large,
    .bento-tall,
    .bento-card {
        grid-column: span 6;
    }

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

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

    .tech-logo-wall {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 880px) {
    .container {
        width: min(1180px, calc(100% - 2rem));
    }

    .menu-btn {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 78px;
        right: 1rem;
        left: 1rem;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: var(--shadow-soft);
        display: grid;
        gap: 0.55rem;
        padding: 0.9rem;
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    body.nav-open {
        overflow: hidden;
    }

    .hero {
        padding-top: 8.6rem;
    }

    .hero-metrics,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .bento,
    .method-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .bento-card,
    .bento-large,
    .bento-tall {
        grid-column: span 1;
        grid-row: auto;
    }

    .tech-logo-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .nav-shell {
        min-height: 74px;
    }

    .brand-logo {
        height: 48px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }

    .tech-logo-wall {
        grid-template-columns: 1fr;
    }

    .vercel-scene {
        height: 184px;
    }

    .section {
        padding: 4.8rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .orb,
    .grid-glow,
    .geo-shape,
    .ticker-track,
    .scene-ring,
    .scene-pulse,
    .scene-dot {
        animation: none;
    }

    .vercel-scene {
        transition: none;
        transform: none;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
