/* ═══════════════════════════════════════════════════════════════
   Nexorium Web — Ultra Premium Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
    --bg-deep: #050507;
    --bg-alt: #08080c;
    --bg-section: #0a0a0f;
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-glow: rgba(124, 58, 237, 0.4);
    --secondary: #22d3ee;
    --secondary-glow: rgba(34, 211, 238, 0.4);
    --accent-warm: #f472b6;
    --surface: #111116;
    --surface-glass: rgba(17, 17, 22, 0.7);
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(124, 58, 237, 0.3);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Reset & Base ─────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain Overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.025;
    pointer-events: none;
    z-index: 5000;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Cursor Custom ────────────────────────────────────────────── */
@media (pointer: fine) {
    * { cursor: none; }
    #custom-cursor {
        width: 8px; height: 8px;
        background: white;
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
        transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s, width 0.3s, height 0.3s;
        transform: translate(-50%, -50%);
    }
    #cursor-follower {
        width: 30px; height: 30px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9998;
        transition: transform 0.15s ease-out;
        transform: translate(-50%, -50%);
    }
    .cursor-hover #custom-cursor {
        transform: translate(-50%, -50%) scale(8);
        background: var(--primary);
        opacity: 0.3;
        mix-blend-mode: normal;
    }
    .cursor-hover #cursor-follower { opacity: 0; }
}
@media (pointer: coarse), (max-width: 1024px) {
    * { cursor: auto !important; }
    #custom-cursor, #cursor-follower { display: none !important; }
}

/* ── Scroll Progress ──────────────────────────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent-warm));
    z-index: 9999;
    transition: none;
}

/* ── Preloader ────────────────────────────────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-logo {
    height: 60px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}
.preloader-bar {
    width: 120px;
    height: 3px;
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
}
.preloader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    animation: preloaderSlide 1s ease-in-out infinite;
}
@keyframes preloaderPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}
@keyframes preloaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ── Typography ───────────────────────────────────────────────── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
}
.section-tag::before {
    content: '';
    width: 24px; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-top: 16px;
    letter-spacing: -1px;
    line-height: 1.15;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.magnetic-wrap { display: inline-block; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: 0.3px;
    border: none;
}
.btn .material-symbols-outlined { font-size: 1.2rem; transition: var(--transition-fast); }
.btn:hover .material-symbols-outlined { transform: translateX(3px); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    color: white;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.btn-primary:active { transform: scale(0.97) translateY(0); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

/* ── Header / Navbar ──────────────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; right: 0; width: 100%;
    z-index: 2000;
    background: rgba(5, 5, 7, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s, box-shadow 0.3s;
}
header.scrolled {
    background: rgba(5, 5, 7, 0.85);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}
.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; left: 0; }
.nav-cta {
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
    transition: var(--transition);
}
.nav-cta:hover {
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 2001;
}
.hamburger-btn span {
    display: block;
    width: 24px; height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition-fast);
}
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.desktop-cta { display: inline-flex; }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s;
}
.mobile-link:hover { color: white; }
.mobile-menu-cta {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
}

/* ── Hero Section ─────────────────────────────────────────────── */
#hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to bottom, var(--bg-deep) 0%, transparent 20%),
        linear-gradient(to top, var(--bg-deep) 0%, transparent 40%),
        linear-gradient(to right, var(--bg-deep) 0%, transparent 60%);
    z-index: 1;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(124, 58, 237, 0.04) 1px, transparent 0);
    background-size: 48px 48px;
    z-index: 1;
}
.hero-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.hero-glow-1 {
    top: 20%; right: 15%;
    width: 400px; height: 400px;
    background: var(--primary);
    opacity: 0.15;
    animation: orbFloat 8s ease-in-out infinite;
}
.hero-glow-2 {
    bottom: 20%; right: 30%;
    width: 300px; height: 300px;
    background: var(--secondary);
    opacity: 0.1;
    animation: orbFloat 10s ease-in-out infinite reverse;
}
.hero-glow-3 {
    top: 40%; left: 10%;
    width: 250px; height: 250px;
    background: var(--accent-warm);
    opacity: 0.06;
    animation: orbFloat 12s ease-in-out infinite 2s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -30px); }
    66% { transform: translate(-15px, 20px); }
}

.hero-layout {
    display: flex;
    align-items: center;
    gap: 64px;
    position: relative;
    z-index: 2;
}
.hero-content { flex: 1.2; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
    animation: badgeGlow 3s ease-in-out infinite;
}
@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
    50% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.15); }
}
.hero-badge-dot {
    position: relative;
    width: 8px; height: 8px;
}
.hero-badge-dot span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #22c55e;
}
.hero-badge-dot .ping {
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}
@keyframes ping {
    75%, 100% { transform: scale(2.5); opacity: 0; }
}

.hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2.5px;
    margin-bottom: 24px;
}
.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}
.hero-content h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    opacity: 0.4;
}
.hero-content > p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 560px;
    line-height: 1.8;
}
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Hero Animated 3D Orb */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-orb-container {
    width: 420px; height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-orb {
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.4), rgba(124, 58, 237, 0.2), rgba(34, 211, 238, 0.1), transparent);
    box-shadow: 
        0 0 80px rgba(124, 58, 237, 0.3),
        0 0 160px rgba(34, 211, 238, 0.1),
        inset 0 0 80px rgba(124, 58, 237, 0.15);
    animation: orbPulse 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.hero-orb::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.2);
    animation: orbSpin 20s linear infinite;
}
@keyframes orbPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 80px rgba(124, 58, 237, 0.3), 0 0 160px rgba(34, 211, 238, 0.1); }
    50% { transform: scale(1.05); box-shadow: 0 0 100px rgba(124, 58, 237, 0.4), 0 0 200px rgba(34, 211, 238, 0.15); }
}
@keyframes orbSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: orbSpin linear infinite;
}
.orbit-ring-1 {
    width: 350px; height: 350px;
    border-color: rgba(124, 58, 237, 0.1);
    animation-duration: 15s;
}
.orbit-ring-2 {
    width: 400px; height: 400px;
    border-color: rgba(34, 211, 238, 0.08);
    animation-duration: 25s;
    animation-direction: reverse;
}
.orbit-ring-3 {
    width: 420px; height: 420px;
    border-color: rgba(244, 114, 182, 0.05);
    animation-duration: 35s;
}
.orbit-dot {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 12px var(--primary-glow);
}
.orbit-ring-1 .orbit-dot { top: 0; left: 50%; transform: translate(-50%, -50%); }
.orbit-ring-2 .orbit-dot { bottom: 20%; right: 0; transform: translate(50%, 50%); }

/* Floating tech tags around orb */
.hero-float-tag {
    position: absolute;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(17, 17, 22, 0.8);
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    backdrop-filter: blur(8px);
    animation: tagFloat 5s ease-in-out infinite;
    z-index: 5;
}
.hero-float-tag:nth-child(1) { top: 10%; left: 0; animation-delay: 0s; }
.hero-float-tag:nth-child(2) { top: 5%; right: 5%; animation-delay: 1.5s; }
.hero-float-tag:nth-child(3) { bottom: 15%; left: 5%; animation-delay: 3s; }
.hero-float-tag:nth-child(4) { bottom: 25%; right: 0; animation-delay: 0.5s; }
.hero-float-tag .tag-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}
@keyframes tagFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Stats Strip ──────────────────────────────────────────────── */
.stats-strip {
    padding: 48px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-alt);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.stat-item {
    text-align: center;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 50%;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}
.stat-number {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-main), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 4px;
    font-weight: 500;
}

/* ── Marquee ──────────────────────────────────────────────────── */
.marquee {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--primary), #6d28d9, var(--primary));
    background-size: 200% 200%;
    animation: marqueeGradient 6s ease infinite;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    position: relative;
}
.marquee::before, .marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--primary), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, #6d28d9, transparent); }
.marquee-content {
    display: flex;
    animation: marqueeScroll 20s linear infinite;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marqueeGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ── Services Bento Grid ──────────────────────────────────────── */
#servicios {
    padding: 120px 0;
    background: var(--bg-section);
    position: relative;
}
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 64px;
}
.services-header p {
    max-width: 420px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}
/* ── Services List Layout ─────────────────────────────────────── */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.service-row {
    display: grid;
    grid-template-columns: 52px 56px 1fr auto 40px;
    align-items: center;
    gap: 28px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--glass-border);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}
.service-row:first-child { border-top: 1px solid var(--glass-border); }
.service-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 0 2px 2px 0;
}
.service-row::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.service-row:hover {
    padding-left: 44px;
}
.service-row:hover::before { transform: scaleY(1); }
.service-row:hover::after { opacity: 1; }

.service-row-num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s;
    position: relative;
    z-index: 1;
}
.service-row:hover .service-row-num {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-row-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.service-row-icon .material-symbols-outlined { font-size: 1.4rem; }
.service-row:hover .service-row-icon {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.25);
    color: var(--primary-light);
    transform: rotate(-5deg) scale(1.08);
}
.service-row-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.service-row-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    transition: color 0.3s;
}
.service-row:hover .service-row-body h4 { color: var(--primary-light); }
.service-row-body p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 560px;
}
.service-row-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.service-row-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    transition: var(--transition-fast);
    white-space: nowrap;
}
.service-row:hover .service-row-tags span {
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--primary-light);
}
.service-row-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.service-row-arrow .material-symbols-outlined { font-size: 1.1rem; }
.service-row:hover .service-row-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: rotate(-45deg);
}

/* ── Portfolio ────────────────────────────────────────────────── */
#portafolio {
    padding: 120px 0;
    background: var(--bg-deep);
}
.portfolio-header { text-align: center; margin-bottom: 64px; }

/* Case Study */
.case-study-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    padding: 40px;
    align-items: center;
    transition: var(--transition);
}
.case-study-featured:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.case-study-gallery {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.case-study-slider { position: relative; width: 100%; height: 100%; }
.case-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.case-slide.active { opacity: 1; }
.case-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.case-slider-dots {
    position: absolute;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px;
    z-index: 10;
}
.slider-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition-fast);
    padding: 0;
}
.slider-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10;
    opacity: 0;
}
.case-study-gallery:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--primary); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.case-study-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.case-study-meta { display: flex; gap: 12px; align-items: center; }
.case-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    background: rgba(124, 58, 237, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
}
.case-tag-live {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}
.case-study-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -1px;
}
.case-study-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    font-style: italic;
}
.case-study-details { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.case-detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
}
.case-detail p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-top: 4px; }
.case-study-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.case-study-tech span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 4px 12px;
    border-radius: 6px;
}

/* ── Why Choose Us / Features ─────────────────────────────────── */
#metodologia {
    padding: 120px 0;
    background: var(--bg-section);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.feature-card {
    padding: 36px;
    background: var(--surface-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s;
}
.feature-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
}
.feature-card:hover::after { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.feature-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-section {
    padding: 120px 0;
    background: var(--bg-alt);
}
.faq-header { text-align: center; margin-bottom: 64px; }
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item:hover, .faq-item.active { border-color: var(--glass-border-hover); }
.faq-question {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.3s;
}
.faq-question:hover { background: rgba(255, 255, 255, 0.02); }
.faq-icon { transition: transform 0.3s ease; color: var(--primary-light); }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer {
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}
.faq-item.active .faq-answer {
    padding: 0 28px 24px 28px;
    max-height: 500px;
}

/* ── Testimonials ─────────────────────────────────────────────── */
#testimonios {
    padding: 120px 0;
    background: var(--bg-deep);
}
.testimonials-header { text-align: center; margin-bottom: 64px; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 36px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--transition);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px; right: 28px;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.08;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.testimonial-stars { display: flex; color: #facc15; }
.testimonial-stars .material-symbols-outlined {
    font-size: 1.1rem;
    font-variation-settings: 'FILL' 1;
}
.testimonial-card blockquote {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    font-size: 0.95rem;
    flex: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
}
.testimonial-author h6 { font-weight: 700; font-size: 0.9rem; }
.testimonial-author small { color: var(--text-dim); font-size: 0.78rem; }

/* ── Contact ──────────────────────────────────────────────────── */
#contacto {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-section);
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: flex-start;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info .section-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-info > p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.contact-methods { display: flex; flex-direction: column; gap: 20px; }
.contact-method { display: flex; align-items: center; gap: 16px; }
.contact-method-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    flex-shrink: 0;
}
.contact-method small { font-size: 0.82rem; color: var(--text-dim); font-weight: 500; }
.contact-method strong { font-size: 1.05rem; font-weight: 700; }
.contact-form-wrap {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(5, 5, 7, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1), 0 0 24px rgba(124, 58, 237, 0.06);
}
.form-group textarea { resize: vertical; }
.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    color: white;
    font-weight: 700;
    padding: 16px;
    border-radius: var(--radius-md);
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.25);
    transition: var(--transition);
}
.form-submit:hover {
    box-shadow: 0 14px 40px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--glass-border);
    padding-top: 80px;
    padding-bottom: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 16px;
    margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-social-link {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}
.footer-col h6 { font-weight: 700; font-size: 0.92rem; margin-bottom: 20px; color: var(--text-main); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.3s, padding-left 0.3s;
}
.footer-col ul a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--text-dim);
}
.footer-bottom-love { display: flex; align-items: center; gap: 6px; }
.footer-bottom-love .material-symbols-outlined {
    font-size: 0.9rem;
    color: #ef4444;
    font-variation-settings: 'FILL' 1;
}

/* ── WhatsApp FAB ─────────────────────────────────────────────── */
.whatsapp-fab {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: waPulse 2s ease-in-out infinite;
}
.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #1a1a2e;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1a1a2e;
    border-right: none;
}
.whatsapp-fab:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
@keyframes waPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ── Section Divider ──────────────────────────────────────────── */
.section-divider {
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.2;
}

/* ── Animations ───────────────────────────────────────────────── */
[data-reveal="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.23, 1, 0.32, 1);
}
[data-reveal="fade-up"].active {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal="fade-left"] {
    opacity: 0;
    transform: translateX(-40px);
    transition: 1s cubic-bezier(0.23, 1, 0.32, 1);
}
[data-reveal="fade-left"].active {
    opacity: 1;
    transform: translateX(0);
}
[data-reveal="fade-right"] {
    opacity: 0;
    transform: translateX(40px);
    transition: 1s cubic-bezier(0.23, 1, 0.32, 1);
}
[data-reveal="fade-right"].active {
    opacity: 1;
    transform: translateX(0);
}
[data-reveal="scale-up"] {
    opacity: 0;
    transform: scale(0.92);
    transition: 1s cubic-bezier(0.23, 1, 0.32, 1);
}
[data-reveal="scale-up"].active {
    opacity: 1;
    transform: scale(1);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card.bento-wide { grid-column: span 2; }
}
@media (max-width: 1024px) {
    .hero-layout { flex-direction: column; text-align: center; }
    .hero-content > p { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-visual { display: none; }
    .hero-badge { margin-left: auto; margin-right: auto; }
    .services-header { flex-direction: column; align-items: flex-start; }
    .service-row { grid-template-columns: 36px 44px 1fr 36px; gap: 16px; }
    .service-row-tags { display: none; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat-item:nth-child(2)::after { display: none; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .case-study-featured { grid-template-columns: 1fr; gap: 32px; padding: 24px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger-btn { display: flex; }
    .mobile-menu { display: flex; }
    .desktop-cta { display: none; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.bento-wide { grid-column: span 1; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item::after { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    #hero { padding: 140px 0 80px; min-height: auto; }
}
