/* ===================================
   DESIGN SYSTEM & CSS VARIABLES
   =================================== */
:root {
    /* Color Palette - Blue Tones */
    --color-primary: #4F46E5;
    --color-primary-light: #6366F1;
    --color-primary-dark: #4338CA;
    --color-secondary: #06B6D4;
    --color-secondary-light: #22D3EE;
    --color-accent: #8B5CF6;
    --color-accent-light: #A78BFA;

    /* Neutral Colors */
    --color-bg-dark: #0A0E27;
    --color-bg-darker: #050816;
    --color-bg-card: rgba(15, 23, 42, 0.8);
    --color-text-primary: #F8FAFC;
    --color-text-secondary: #CBD5E1;
    --color-text-muted: #94A3B8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    --gradient-secondary: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --gradient-accent: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
    --gradient-orb: radial-gradient(circle, rgba(79, 70, 229, 0.4) 0%, rgba(6, 182, 212, 0.1) 50%, transparent 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.3);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-darker);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    max-width: 100vw;
}

.overflow-visible {
    overflow: visible !important;
}

.margin-auto {
    margin: auto;
}

.width-100 {
    width: 100%;
}

.max-width-500 {
    max-width: 500px;
}

.max-width-400 {
    max-width: 400px;
}

.center-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem;
    position: relative;
    border-radius: 24px;
    /* Fondo base sutil y borde pasivo */
    background: rgb(3 69 226 / 90%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Borde sutil casi invisible */
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Sombra más dramática */
}

/* Haz de luz rotatorio (Borde Animado) */
.center-content::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    z-index: 0;
}

/* Máscara interior (Fondo de la tarjeta) */
.center-content::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Grosor de la línea del borde */
    background: var(--color-bg-card, #1E293B);
    border-radius: 22px;
    /* radio del padre (24) - inset (2) */
    z-index: 0;
}

/* Asegurar que el contenido (h3, p, grids) esté encima */
.center-content>* {
    position: relative;
    z-index: 1;
}

@keyframes rotate-glow-border {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Prevent horizontal overflow on all sections */
section {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure all containers don't overflow */
.service-detail-container,
.hero-content,
.contact-container,
.footer-content {
    max-width: 100%;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===================================
   NAVIGATION
   =================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-normal);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex: 1;
}

.logo-image {
    height: 30px;
    width: auto;
    transition: transform var(--transition-normal);
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    flex: 0 1 auto;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: var(--color-text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.btn-nav {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-demo {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary-light);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.btn-login {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.5);
    filter: brightness(1.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-fast);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Neural Network Canvas */
.neural-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.services-section .neural-network-canvas,
.contact-section .neural-network-canvas {
    opacity: 0.6;
}


.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
    opacity: 0.6;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    top: 40%;
    right: -5%;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    bottom: -10%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(79, 70, 229, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-card {
    position: absolute;
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 15%;
    left: 30%;
    animation-delay: 4s;
}

.card-4 {
    top: 60%;
    right: 15%;
    animation-delay: 6s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-label {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Card links */
.card-link {
    text-decoration: none;
    display: block;
}

.card-link .floating-card {
    cursor: pointer;
    transition: all var(--transition-normal);
}

.card-link:hover .floating-card {
    transform: translateY(-25px) scale(1.05);
    box-shadow: 0 30px 80px rgba(79, 70, 229, 0.5);
}

.card-link:active .floating-card {
    transform: translateY(-20px) scale(1.02);
}

/* Ensure SVG elements don't interfere with click events */
.card-link svg,
.card-link svg * {
    pointer-events: none;
}


.data-flow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid rgba(79, 70, 229, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.data-flow::before,
.data-flow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(6, 182, 212, 0.2);
}

.data-flow::before {
    width: 200px;
    height: 200px;
    animation: rotate 15s linear infinite reverse;
}

.data-flow::after {
    width: 100px;
    height: 100px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 1s ease-out 1s both;
    z-index: 2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-text-secondary);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 24px;
        opacity: 0;
    }
}

.scroll-indicator p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}




/* ===================================
   PROBLEM SECTION (Uncertainty 3D Visual)
   =================================== */
.problem-section {
    padding: var(--spacing-xl) 1.5rem;
    /* Increased side padding for mobile */
    position: relative;
    background: linear-gradient(180deg, var(--color-bg-darker) 0%, rgba(13, 20, 49, 0.5) 50%, var(--color-bg-darker) 100%);
    z-index: 2;
    overflow: hidden;
}

.decision-uncertainty-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 450px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* 3D Prism */
.prism-3d {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotatePrism 15s linear infinite, wobblePrism 4s ease-in-out infinite;
}

.face {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.3);
    backdrop-filter: blur(5px);
}

.face.front {
    transform: translateZ(75px);
}

.face.back {
    transform: rotateY(180deg) translateZ(75px);
}

.face.right {
    transform: rotateY(90deg) translateZ(75px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(75px);
}

.face.top {
    transform: rotateX(90deg) translateZ(75px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(75px);
}

@keyframes rotatePrism {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes wobblePrism {

    0%,
    100% {
        top: 0;
        filter: hue-rotate(0deg);
    }

    50% {
        top: -20px;
        filter: hue-rotate(45deg);
    }
}

/* Glitch Overlay */
.glitch-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.glitch-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
    opacity: 0;
    animation: glitchMove 4s infinite linear;
}

.glitch-line:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.glitch-line:nth-child(2) {
    top: 50%;
    animation-delay: 1.5s;
    background: rgba(6, 182, 212, 0.5);
}

.glitch-line:nth-child(3) {
    top: 80%;
    animation-delay: 3s;
}

@keyframes glitchMove {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateX(-10px);
    }

    12% {
        transform: translateX(10px);
    }

    14% {
        opacity: 0;
    }

    100% {
        transform: translateY(400px);
        opacity: 0;
    }
}

/* Uncertainty Status */
.uncertainty-status {
    position: absolute;
    bottom: 0;
    width: 80%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    text-align: center;
    z-index: 10;
    overflow: hidden;
}

.status-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.5rem;
}

.uncertainty-status p {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    font-family: monospace;
}

.noise-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.1;
    pointer-events: none;
    animation: noiseJitter 0.2s steps(2) infinite;
}

@keyframes noiseJitter {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-5px, -5px);
    }
}

/* Floating Fragments */
.fragment {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    animation: floatFrag 4s infinite ease-in-out;
}

.f1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.f2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.f3 {
    bottom: 30%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes floatFrag {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 1;
    }
}

/* Expanded Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.problem-card {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.problem-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.prob-icon {
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prob-icon span {
    color: #ef4444;
    font-size: 1.8rem;
}

.prob-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--color-text-primary);
    font-weight: 700;
}

.prob-info p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* Silo Visualization (Used in Analytics) */
.silo-visualization {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 350px;
    margin: 0 auto;
    overflow: visible;
    /* Ensure nodes can float slightly outside if needed, but we'll contain them */
}

.silo-visualization.analytics-version {
    max-width: 380px;
    height: 300px;
}

.silo-node {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    backdrop-filter: blur(20px);
    z-index: 2;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    animation: floatNode 6s ease-in-out infinite;
    cursor: pointer;
}

.silo-node span.material-symbols-outlined {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.silo-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.silo-1 {
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.silo-2 {
    top: 5%;
    right: 5%;
    animation-delay: 1.5s;
}

.silo-3 {
    bottom: 5%;
    right: 5%;
    animation-delay: 3s;
}

.silo-4 {
    bottom: 5%;
    left: 5%;
    animation-delay: 4.5s;
}

@keyframes floatNode {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(5px, -10px);
    }
}

.broken-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.line-broken {
    fill: none;
    stroke: rgba(239, 68, 68, 0.2);
    stroke-width: 2;
    stroke-dasharray: 8 4;
}

.error-node {
    fill: rgba(239, 68, 68, 0.4);
    filter: blur(5px);
    animation: pulseError 2s infinite;
}

@keyframes pulseError {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.problem-quote {
    margin-top: 8rem;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.quote-content {
    display: inline-block;
    max-width: 900px;
    padding: 5rem 4rem;
    background: var(--color-bg-card);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.quote-mark {
    position: absolute;
    top: 10px;
    left: 30px;
    font-size: 12rem;
    font-family: 'Times New Roman', serif;
    color: rgba(79, 70, 229, 0.05);
    line-height: 1;
    z-index: 0;
}

.quote-content p {
    position: relative;
    z-index: 1;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.quote-content strong {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quote-author {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-style: italic;
    opacity: 0.8;
}

@media (max-width: 1024px) {

    .problem-content,
    .content-block {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .problem-visual,
    .content-visual {
        order: 2;
    }

    .problem-text-expanded,
    .content-text {
        order: 1;
    }

    .quote-content {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .decision-uncertainty-visual {
        height: 350px;
    }

    .prism-3d {
        width: 120px;
        height: 120px;
    }

    .face {
        width: 120px;
        height: 120px;
    }

    .face.front {
        transform: translateZ(60px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(60px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(60px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(60px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(60px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(60px);
    }

    .silo-visualization.analytics-version {
        height: 280px;
    }

    .silo-node {
        width: 85px;
        height: 85px;
    }

    .silo-node span.material-symbols-outlined {
        font-size: 1.6rem;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    /* Global lateral padding fix */
    section,
    .container,
    .problem-section,
    .services-overview,
    .service-detail-section,
    .footer,
    .main-nav {
        padding-left: 1.2rem !important;
        padding-right: 1.2rem !important;
    }

    .decision-uncertainty-visual {
        height: 280px;
    }

    .prism-3d {
        width: 100px;
        height: 100px;
    }

    .face {
        width: 100px;
        height: 100px;
    }

    .face.front {
        transform: translateZ(50px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(50px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(50px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(50px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(50px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(50px);
    }

    .uncertainty-status {
        width: 100%;
        padding: 0.8rem;
    }

    .uncertainty-status p {
        font-size: 0.75rem;
    }

    .silo-visualization.analytics-version {
        height: 220px;
    }

    .silo-node {
        width: 75px;
        height: 75px;
    }

    .silo-label {
        font-size: 0.65rem;
    }
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-section {
    padding: var(--spacing-xl) 2rem;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 50px;
    color: var(--color-secondary-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.service-description {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.service-btn {
    background: transparent;
    border: 2px solid rgba(79, 70, 229, 0.3);
    color: var(--color-primary-light);
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
}

.service-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateX(5px);
}

/* Expanded Service Card Styles */
.service-card-expanded {
    padding: 3rem;
}

.service-section {
    margin-bottom: 2rem;
}

.service-subtitle {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-secondary-light);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-features li strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* ===================================
   SERVICES OVERVIEW SECTION
   =================================== */
.services-overview {
    padding: var(--spacing-lg) 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.services-overview .section-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   INDIVIDUAL SERVICE DETAIL SECTIONS
   =================================== */
.service-detail-section {
    min-height: 100vh;
    padding: var(--spacing-xl) 2rem;
    position: relative;
    overflow: hidden;
}

.service-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.revops-section {
    background: linear-gradient(180deg, #0a0d59 0%, var(--color-bg-dark) 100%);
}

.analytics-section {
    background: linear-gradient(180deg, #1027a8 0%, var(--color-bg-darker) 100%);
}

.ai-section {
    background: linear-gradient(180deg, #493399 0%, var(--color-bg-dark) 100%);
}

.fusa-section {
    background: linear-gradient(180deg, #093174 0%, var(--color-bg-darker) 100%);
}

.service-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Service Header */
.service-detail-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out;
}

.service-icon-large {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
}

.icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
}

.icon-wrapper:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 30px 80px rgba(79, 70, 229, 0.4);
}

.icon-wrapper svg {
    width: 120px;
    height: 120px;
}

.service-detail-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-detail-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-text-secondary);
    font-weight: 300;
}

/* Service Content Grid */
.service-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: var(--spacing-lg);
}

.service-info-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.service-info-card:nth-child(1) {
    animation-delay: 0.2s;
}

.service-info-card:nth-child(2) {
    animation-delay: 0.4s;
}

.service-info-card:nth-child(3) {
    animation-delay: 0.6s;
}

.service-info-card:hover {
    transform: translateY(-10px);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.3);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

.service-info-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.service-info-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Process Phases - Premium Redesign */
.process-phases {
    margin-top: var(--spacing-xl);
    perspective: 1000px;
}

.phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.phase-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem 2rem 2.5rem;
    position: relative;
    overflow: visible;
    /* To allow glow effects to spill out slightly */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(40px);
    display: flex;
    flex-direction: column;
}

.phase-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.phase-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent, rgba(79, 70, 229, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.phase-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(79, 70, 229, 0.2);
}

.phase-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    line-height: 1;
    z-index: 0;
    transition: all 0.5s ease;
}

.phase-card:hover .phase-number {
    -webkit-text-stroke: 1px var(--color-primary-light);
    transform: translateY(-10px);
    opacity: 0.5;
}

.phase-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.phase-icon span {
    color: white;
    font-size: 2.2rem;
}

.phase-card h4 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    position: relative;
    z-index: 1;
}

.phase-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem !important;
    line-height: 1.5;
}

.phase-card ul {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.phase-card li {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    padding-left: 1.8rem;
    position: relative;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.phase-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
}

.phase-card:hover li {
    color: var(--color-text-primary);
}

.phase-card:hover li::before {
    background: var(--color-secondary);
    box-shadow: 0 0 15px var(--color-secondary);
}

/* SVG Animations */
@keyframes svg-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@keyframes svg-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes svg-draw {
    from {
        stroke-dashoffset: 100;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes svg-grow {
    from {
        transform: scaleY(0);
        transform-origin: bottom;
    }

    to {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

@keyframes svg-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes svg-typing {

    0%,
    100% {
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dashoffset: 24;
    }
}

.svg-pulse {
    animation: svg-pulse 2s ease-in-out infinite;
}

.svg-animate-rotate {
    animation: svg-rotate 20s linear infinite;
    transform-origin: center;
}

.svg-draw {
    stroke-dasharray: 100;
    animation: svg-draw 2s ease-in-out infinite;
}

.svg-grow {
    animation: svg-grow 1.5s ease-out forwards;
}

.svg-draw-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: svg-draw 3s ease-out forwards;
}

.svg-pulse-ring {
    animation: svg-pulse 3s ease-in-out infinite;
}

.svg-blink {
    animation: svg-blink 3s ease-in-out infinite;
}

.svg-float {
    animation: bounce 3s ease-in-out infinite;
}

.svg-typing {
    stroke-dasharray: 24;
    animation: svg-typing 2s ease-in-out infinite;
}

.svg-wave {
    animation: wave-motion 3s ease-in-out infinite;
}

@keyframes wave-motion {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Analytics bar and trend line styles */
.svg-bar-grow {
    transform-origin: bottom;
}

.svg-trend-line {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svg-point {
    filter: drop-shadow(0 0 3px rgba(6, 182, 212, 0.5));
}

/* ===================================
   EXPANDED SERVICE CONTENT
   =================================== */
.service-expanded-content {
    margin-top: var(--spacing-lg);
}

.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: var(--spacing-xl);
    align-items: center;
}

.content-block.reverse {
    direction: rtl;
}

.content-block.reverse>* {
    direction: ltr;
}

.content-text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.content-text p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.content-text strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* RevOps Diagram Visual */
.revops-diagram-container {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    position: relative;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.revops-diagram {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Border Guide Ring */
.diagram-border-guide {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
    stroke-dasharray: 10 10;
}

/* Groups */
.revops-group {
    cursor: pointer;
    transform-origin: 250px 200px;
    /* Center of SVG */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.segment-shape {
    fill: rgba(30, 41, 59, 1);
    /* Dark base color, solid */
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2px;
    transition: all 0.3s ease;
}

/* Icons */
.segment-icon-font {
    fill: #CBD5E1;
    /* Color claro visible por defecto */
    font-size: 40px !important;
    /* Tamaño del icono */
    text-anchor: middle;
    dominant-baseline: middle;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-box: fill-box;
    transform-origin: center;
    pointer-events: none;
    font-family: 'Material Symbols Outlined';
    /* Asegurar que use la fuente */
}

/* Labels */
.segment-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    fill: var(--color-text-secondary);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.text-left {
    text-anchor: start;
}

.text-right {
    text-anchor: end;
}

.text-center {
    text-anchor: middle;
}

.label-connector {
    stroke: var(--color-text-secondary);
    stroke-width: 1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Hover Effects - Group Level */


.revops-group:hover {
    transform: scale(1.02);
    z-index: 10;
}

/* Marketing Hover */
.group-marketing .segment-shape {
    fill: rgba(9, 155, 181, 0.9);
}

.group-marketing:hover .segment-shape {
    fill: rgba(6, 182, 212, 0.9);
    stroke: #06B6D4;
    filter: url(#glow-shadow);
}

.group-marketing:hover .segment-icon-font {
    fill: white;
    transform: scale(1.3);
}

.group-marketing:hover .segment-label {
    fill: #06B6D4;
    font-weight: 800;
}

.group-marketing:hover .label-connector {
    stroke: #06B6D4;
    opacity: 1;
}

/* Sales Hover */

.group-sales .segment-shape {
    fill: rgba(69, 62, 200, 0.9);
}

.group-sales:hover .segment-shape {
    fill: rgba(79, 70, 229, 0.9);
    stroke: #4F46E5;
    filter: url(#glow-shadow);
}

.group-sales:hover .segment-icon-font {
    fill: white;
    transform: scale(1.3);
}

.group-sales:hover .segment-label {
    fill: #818CF8;
    font-weight: 800;
}

.group-sales:hover .label-connector {
    stroke: #818CF8;
    opacity: 1;
}

/* CS Hover */
.group-cs .segment-shape {
    fill: rgba(216, 63, 140, 0.9);
}

.group-cs:hover .segment-shape {
    fill: rgba(236, 72, 153, 0.9);
    stroke: #EC4899;
    filter: url(#glow-shadow);
}

.group-cs:hover .segment-icon-font {
    fill: white;
    transform: scale(1.3);
}

.group-cs:hover .segment-label {
    fill: #F472B6;
    font-weight: 800;
}

.group-cs:hover .label-connector {
    stroke: #F472B6;
    opacity: 1;
}


/* Center RevOps Bubble */
.revops-center {
    pointer-events: none;
}

.center-circle {
    fill: var(--color-bg-card);
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1px;
}

.center-circle-inner {
    fill: white;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.center-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    fill: #0F172A;
    text-anchor: middle;
    dominant-baseline: middle;
    letter-spacing: -0.02em;
}

/* RevOps Spheres Animation */
.revops-spheres-visual {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.sphere {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sphere span {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sphere.s1 {
    animation: orbitSphere1 10s infinite linear;
}

.sphere.s2 {
    animation: orbitSphere2 10s infinite linear;
}

.sphere.s3 {
    animation: orbitSphere3 10s infinite linear;
}

@keyframes orbitSphere1 {
    0% {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

@keyframes orbitSphere2 {
    0% {
        transform: rotate(120deg) translateX(120px) rotate(-120deg);
    }

    100% {
        transform: rotate(480deg) translateX(120px) rotate(-480deg);
    }
}

@keyframes orbitSphere3 {
    0% {
        transform: rotate(240deg) translateX(120px) rotate(-240deg);
    }

    100% {
        transform: rotate(600deg) translateX(120px) rotate(-600deg);
    }
}

.connecting-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connecting-lines-svg line {
    stroke: var(--color-primary);
    stroke-width: 1.5;
    stroke-dasharray: 5 5;
    opacity: 0.3;
    animation: linePulse 3s infinite ease-in-out;
}

@keyframes linePulse {

    0%,
    100% {
        opacity: 0.2;
        stroke-width: 1;
    }

    50% {
        opacity: 0.5;
        stroke-width: 2;
    }
}

/* Highlight Boxes */
.highlight-box {
    background: rgba(79, 70, 229, 0.1);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.highlight-box.warning {
    background: rgba(251, 191, 36, 0.1);
    border-left-color: #FBBF24;
}

.highlight-box.success {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22C55E;
}

.highlight-box.info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3B82F6;
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.highlight-box p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 1rem;
}

.benefits-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefits-list li div {
    flex: 1;
}

.benefits-list strong {
    display: block;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

/* Stats Visual */
.stats-visual {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-circle {
    width: 180px;
    height: 180px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 20px 60px rgba(79, 70, 229, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 25px 70px rgba(79, 70, 229, 0.6);
        transform: scale(1.05);
    }
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* AI Bot Animation */
.ai-bot-visual {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.bot-sphere {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #5a82ba, #3f77d2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
    z-index: 10;
    box-shadow:
        0 0 40px rgba(47, 41, 157, 0.3),
        inset -10px -10px 20px rgba(19, 33, 67, 0.5),
        inset 5px 5px 15px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: botFloat 4s ease-in-out infinite;
}

/* Robotic Details */
.bot-plate {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.plate-top {
    top: 15%;
    left: 20%;
    width: 60%;
    height: 10%;
    border-radius: 50% 50% 0 0;
}

/* Headset Styles */
.bot-headset {
    position: absolute;
    inset: -5px;
    pointer-events: none;
    z-index: 11;
}

.headband {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 70px;
    border-top: 10px solid #0f172a;
    border-radius: 50% 50% 0 0;
}

.earmuff {
    position: absolute;
    top: 35px;
    width: 25px;
    height: 45px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.earmuff.left {
    left: -12px;
}

.earmuff.right {
    right: -12px;
}

.mic-arm {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 45px;
    height: 5px;
    background: #0f172a;
    transform: rotate(35deg);
    transform-origin: left;
    border-radius: 3px;
}

.mic-tip {
    position: absolute;
    right: -8px;
    top: -4px;
    width: 12px;
    height: 12px;
    background: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-secondary);
    animation: micGlow 2s infinite ease-in-out;
}

@keyframes micGlow {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.9);
        filter: brightness(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        filter: brightness(1.5);
    }
}

.bot-face {
    width: 60%;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: relative;
    z-index: 12;
}

.bot-eyes {
    display: flex;
    gap: 20px;
}

.eye {
    width: 14px;
    height: 14px;
    background: #00f2ff;
    border-radius: 50%;
    box-shadow: 0 0 15px #00f2ff;
    animation: botBlink 4s infinite;
}

.bot-smile {
    width: 45px;
    height: 22px;
    border-bottom: 5px solid #00f2ff;
    border-radius: 50%;
    position: relative;
    top: -5px;
    filter: drop-shadow(0 0 8px #00f2ff);
    animation: botSmileAnim 4s infinite;
}

.channel-node {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--color-bg-dark);
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.channel-node span {
    font-size: 1.5rem;
    color: var(--color-secondary-light);
}

.channel-node.whatsapp {
    animation: orbitAI1 12s infinite linear;
}

.channel-node.web {
    animation: orbitAI2 12s infinite linear;
}

.channel-node.phone {
    animation: orbitAI3 12s infinite linear;
}

@keyframes botFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes botBlink {

    0%,
    45%,
    55%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.1);
    }
}

@keyframes botSmileAnim {

    0%,
    100% {
        width: 40px;
        transform: scaleX(1);
    }

    50% {
        width: 45px;
        transform: scaleX(1.1);
    }
}

@keyframes orbitAI1 {
    0% {
        transform: rotate(0deg) translateX(130px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(130px) rotate(-360deg);
    }
}

@keyframes orbitAI2 {
    0% {
        transform: rotate(120deg) translateX(130px) rotate(-120deg);
    }

    100% {
        transform: rotate(480deg) translateX(130px) rotate(-480deg);
    }
}

@keyframes orbitAI3 {
    0% {
        transform: rotate(240deg) translateX(130px) rotate(-240deg);
    }

    100% {
        transform: rotate(600deg) translateX(130px) rotate(-600deg);
    }
}

.ai-connecting-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ai-connecting-lines line {
    stroke: var(--color-secondary);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    opacity: 0.3;
}

/* Integration Visual - Data Centralization */
.integration-visual {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

/* Nodos externos (CRM, ERP, Marketing) */
.integration-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(79, 70, 229, 0.3);
    border-radius: 16px;
    transition: all var(--transition-normal);
    animation: node-float 3s ease-in-out infinite;
}

.integration-node:hover {
    transform: scale(1.1);
    border-color: rgba(79, 70, 229, 0.6);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.node-icon {
    font-size: 2rem;
    filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.3));
}

.node-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Posicionamiento de nodos */
.node-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.node-left {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.node-right {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 1s;
}

/* Centro - Bidatex */
.integration-center {
    position: absolute;
    top: 30%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.center-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border: 3px solid rgba(79, 70, 229, 0.4);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

.center-pulse.pulse-2 {
    animation-delay: 1s;
}

.center-logo {
    position: relative;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.6),
        0 0 80px rgba(6, 182, 212, 0.3);
    animation: glow-pulse 3s ease-in-out infinite;
    z-index: 11;
}

.bidatex-logo {
    width: 70%;
    height: auto;
    filter: brightness(0) invert(1);
}

/* SVG Lines de conexión */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connection-line {
    stroke-dasharray: 5, 5;
    animation: dash-flow 1s linear infinite;
    opacity: 0.6;
}

/* Partículas de datos */
.data-particle {
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8));
    animation: particle-glow 1s ease-in-out infinite;
}

/* Animaciones */
@keyframes node-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.node-top {
    animation: node-float-top 3s ease-in-out infinite;
}

.node-left {
    animation: node-float-left 3s ease-in-out infinite 0.5s;
}

.node-right {
    animation: node-float-right 3s ease-in-out infinite 1s;
}

@keyframes node-float-top {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

@keyframes node-float-left {

    0%,
    100% {
        transform: translate(0, -50%);
    }

    50% {
        transform: translate(-10px, -50%);
    }
}

@keyframes node-float-right {

    0%,
    100% {
        transform: translate(0, -50%);
    }

    50% {
        transform: translate(10px, -50%);
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(79, 70, 229, 0.6),
            0 0 80px rgba(6, 182, 212, 0.3);
    }

    50% {
        box-shadow: 0 0 60px rgba(79, 70, 229, 0.8),
            0 0 120px rgba(6, 182, 212, 0.5);
    }
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -10;
    }
}

@keyframes particle-glow {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8));
    }

    50% {
        opacity: 0.6;
        filter: drop-shadow(0 0 12px rgba(6, 182, 212, 1));
    }
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.feature-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Data Flow Visual */
.data-flow-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.data-source,
.data-ai,
.data-insight {
    padding: 1.5rem 2rem;
    background: var(--color-bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-weight: 600;
    text-align: center;
}

.data-ai {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.data-arrow {
    font-size: 2rem;
    color: var(--color-secondary-light);
    animation: arrow-pulse 1.5s ease-in-out infinite;
}

@keyframes arrow-pulse {

    0%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(10px);
        opacity: 0.6;
    }
}

/* Dashboard Preview */
.dashboard-preview {
    background: var(--color-bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric {
    background: rgba(79, 70, 229, 0.1);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    animation: metric-pulse 2s ease-in-out infinite;
}

.metric:nth-child(1) {
    animation-delay: 0s;
}

.metric:nth-child(2) {
    animation-delay: 0.3s;
}

.metric:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes metric-pulse {

    0%,
    100% {
        transform: scale(1);
        background: rgba(79, 70, 229, 0.1);
    }

    50% {
        transform: scale(1.05);
        background: rgba(79, 70, 229, 0.2);
    }
}

/* Omnichannel Orbit Visual 3D */
.omnichannel-orbit-visual {
    width: 380px;
    height: 380px;
    margin: 0 auto;
    position: relative;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-system {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: system-float 6s ease-in-out infinite;
}

@keyframes system-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Núcleo IA */
.ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 30% 30%, #8B5CF6, #4C1D95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    z-index: 10;
}

.core-icon {
    font-size: 40px;
    color: white;
    z-index: 2;
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.5);
    animation: core-ripple 2s linear infinite;
}

@keyframes core-ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Anillos Orbitales */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    transform-style: preserve-3d;
    border-radius: 50%;
    /* Ayuda a visualizar */
}

.orbit-path {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

/* Configuración de Órbitas 3D */
/* Ring 1 - Inclinado horizontalmente */
.ring-1 {
    margin-left: -140px;
    /* Centrado manual por absolute */
    margin-top: -140px;
    animation: rotate-orbit-1 12s linear infinite;
}

@keyframes rotate-orbit-1 {
    from {
        transform: rotateX(70deg) rotateZ(0deg);
    }

    to {
        transform: rotateX(70deg) rotateZ(360deg);
    }
}

/* Ring 2 - Inclinado verticalmente */
.ring-2 {
    margin-left: -140px;
    margin-top: -140px;
    animation: rotate-orbit-2 15s linear infinite reverse;
    /* Reverse para contraste */
}

@keyframes rotate-orbit-2 {
    from {
        transform: rotateY(70deg) rotateZ(0deg);
    }

    to {
        transform: rotateY(70deg) rotateZ(360deg);
    }
}

/* Satélites */
.satellite-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Posicionar satélites en el borde del anillo (radio 140px) */
/* Usamos transformaciones para ubicarlos y luego contrarrestar la rotación del padre */
.sat-pos-1 {
    transform: translate(-50%, -50%) rotate(0deg) translate(140px) rotate(0deg);
}

.sat-pos-2 {
    transform: translate(-50%, -50%) rotate(180deg) translate(140px) rotate(180deg);
}

.sat-pos-3 {
    transform: translate(-50%, -50%) rotate(90deg) translate(140px) rotate(-90deg);
}

.sat-pos-4 {
    transform: translate(-50%, -50%) rotate(270deg) translate(140px) rotate(-270deg);
}


.satellite-icon {
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A78BFA;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    /* Contra-rotación dinámica para mantener el icono siempre "de pie" frente a la cámara 
       Esto es el truco clave para 3D en CSS puro sin JS complejo */
    animation: counter-rotate-icon 12s linear infinite reverse;
}

/* Necesitamos animaciones específicas para contrarrestar cada anillo */
.ring-1 .satellite-icon {
    animation: counter-rotate-ring-1 12s linear infinite;
}

.ring-2 .satellite-icon {
    animation: counter-rotate-ring-2 15s linear infinite;
}

@keyframes counter-rotate-ring-1 {
    from {
        transform: rotateZ(360deg) rotateX(-70deg);
    }

    to {
        transform: rotateZ(0deg) rotateX(-70deg);
    }
}

@keyframes counter-rotate-ring-2 {
    from {
        transform: rotateZ(360deg) rotateY(-70deg);
    }

    to {
        transform: rotateZ(0deg) rotateY(-70deg);
    }
}

.satellite-label {
    font-size: 0.75rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    /* Oculto por defecto para no saturar, aparece en hover */
    transition: opacity 0.3s;
}

.orbit-system:hover .satellite-label {
    opacity: 1;
}

/* Partículas de ambiente */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.4;
}

.p1 {
    top: 20%;
    left: 20%;
    animation: particle-float 4s infinite;
}

.p2 {
    top: 80%;
    left: 80%;
    animation: particle-float 6s infinite 1s;
}

.p3 {
    top: 20%;
    right: 20%;
    animation: particle-float 5s infinite 2s;
}

@keyframes particle-float {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.2;
    }

    50% {
        transform: translate(10px, -10px);
        opacity: 0.6;
    }
}

/* Team Visual */
.team-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
}

.team-human,
.team-ai,
.team-result {
    padding: 1.5rem 2rem;
    background: var(--color-bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    min-width: 200px;
}

.team-result {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.team-plus,
.team-equals {
    font-size: 2rem;
    color: var(--color-secondary-light);
    font-weight: 800;
}

/* Audio Scanner Visual (FUSA Section) */
.audio-scanner-visual {
    width: 380px;
    height: 380px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    /* Profundidad 3D esencial */
}

.scanner-container {
    position: relative;
    width: 300px;
    height: 200px;
    /* Altura del área de ondas */
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-15deg);
    /* Inclinación 3D para ver profundidad */
    transition: transform 0.5s ease;
}

.audio-scanner-visual:hover .scanner-container {
    transform: rotateX(5deg) rotateY(-5deg) scale(1.05);
    /* Sutil movimiento al hover */
}

/* Plano de Ondas */
.wave-plane {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    /* Centrado vertical para que las barras crezcan hacia arriba y abajo */
    justify-content: space-between;
    gap: 4px;
    transform-style: preserve-3d;
}

.bar {
    width: 12px;
    height: 40px;
    /* Altura base */
    background: rgba(236, 72, 153, 0.3);
    /* Base rosada tenue */
    border: 1px solid rgba(236, 72, 153, 0.5);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
    animation: audio-wave 1.2s ease-in-out infinite alternate;
    /* Usamos la variable --i para el delay dinámico */
    animation-delay: calc(var(--i) * 0.1s);
}

/* Animación de Audio - Variación de altura y color */
@keyframes audio-wave {
    0% {
        height: 20px;
        background: rgba(236, 72, 153, 0.2);
        box-shadow: 0 0 5px rgba(236, 72, 153, 0.1);
    }

    50% {
        height: 160px;
        background: rgba(139, 92, 246, 0.8);
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
        border-color: #A78BFA;
    }

    100% {
        height: 60px;
        background: rgba(236, 72, 153, 0.4);
    }
}

/* Haz de Luz de Escaneo */
.scan-beam {
    position: absolute;
    top: -20px;
    left: 0;
    width: 4px;
    height: 240px;
    /* Cubre toda la altura */
    background: linear-gradient(to bottom, transparent, #FFFFFF, transparent);
    box-shadow: 0 0 20px 2px rgba(255, 255, 255, 0.8);
    opacity: 0.8;
    transform: translateZ(20px);
    /* Flota delante de las barras */
    animation: scanner-move 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 10;
}

@keyframes scanner-move {
    0% {
        left: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Base Holográfica */
.holo-base {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 120px;
    transform: rotateX(90deg) translateZ(-40px);
    /* Acostado en el piso */
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

.base-grid {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

/* Indicador de Estado */
.analysis-status {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    transform: translateZ(30px);
    /* Flota sobre el fondo */
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #EF4444;
    /* Rojo grabando */
    border-radius: 50%;
    animation: blink-status 1s steps(2) infinite;
    box-shadow: 0 0 10px #EF4444;
}

.status-text {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: #E2E8F0;
    letter-spacing: 0.1em;
}

@keyframes blink-status {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}



.analysis-dimension li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-secondary);
}

.analysis-dimension li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary-light);
    font-weight: 700;
}

/* Waveform Visual */
.waveform-visual {
    position: relative;
    padding: 3rem 2rem;
    background: var(--color-bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.wave-line {
    height: 40px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(236, 72, 153, 0.3) 25%,
            rgba(139, 92, 246, 0.5) 50%,
            rgba(236, 72, 153, 0.3) 75%,
            transparent 100%);
    margin: 1rem 0;
    border-radius: 20px;
    animation: wave-pulse 2s ease-in-out infinite;
}

.wave-line:nth-child(2) {
    animation-delay: 0.3s;
}

.wave-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes wave-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

.emotion-indicator {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

/* Performance Visual */
.performance-visual {
    background: var(--color-bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.operator-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.score-number {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.score-label {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-item {
    padding: 1rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* FUSA Specific Styles */


.fusa-icon svg {
    animation: wave-motion 3s ease-in-out infinite;
}

@keyframes wave-motion {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes svg-wave {

    0%,
    100% {
        d: path("M 20 50 Q 30 30, 40 50 T 60 50 T 80 50");
    }

    50% {
        d: path("M 20 50 Q 30 70, 40 50 T 60 50 T 80 50");
    }
}

/* Implementation Section */
.implementation-section {
    padding: var(--spacing-xl) 2rem;
    background: linear-gradient(180deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);
    position: relative;
    z-index: 2;
}

.phases-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive Design for Service Sections */
@media (max-width: 968px) {
    .content-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-block.reverse {
        direction: ltr;
    }

    .visual-stack {
        width: 250px;
        height: 250px;
    }

    .visual-layer {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .visual-layer.layer-2 {
        top: 40px;
        left: 65px;
    }

    .visual-layer.layer-3 {
        top: 80px;
        left: 130px;
    }

    .dual-analysis {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .data-flow-visual {
        flex-direction: column;
        padding: 1.5rem;
    }

    .channels-visual {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .channel-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .integration-visual {
        width: 250px;
        height: 250px;
    }

    .integration-center {
        width: 100px;
        height: 100px;
        font-size: 1rem;
    }

    .stats-visual {
        gap: 1.5rem;
    }

    .stat-circle {
        width: 150px;
        height: 150px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .service-icon-large {
        width: 150px;
        height: 150px;
    }

    .icon-wrapper svg {
        width: 90px;
        height: 90px;
    }

    .service-detail-section {
        padding: var(--spacing-lg) 1.5rem;
    }

    .highlight-box {
        flex-direction: column;
        padding: 1.25rem;
    }

    .highlight-icon {
        font-size: 1.5rem;
    }

    .benefit-icon {
        font-size: 1.5rem;
    }

    .performance-visual {
        padding: 1.5rem;
    }

    .score-number {
        font-size: 4rem;
    }

    .waveform-visual {
        padding: 2rem 1.5rem;
    }

    .emotion-indicator {
        position: static;
        margin-top: 1rem;
        display: inline-block;
    }

    .team-visual {
        padding: 1.5rem;
    }

    .team-human,
    .team-ai,
    .team-result {
        min-width: auto;
        width: 100%;
        max-width: 250px;
    }

    /* Hero floating cards - Tablet */
    .floating-card {
        padding: 1.25rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-label {
        font-size: 0.85rem;
    }
}


/* ===================================
   HOW IT WORKS SECTION
   =================================== */
.how-it-works-section {
    padding: var(--spacing-xl) 2rem;
    position: relative;
    z-index: 2;
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
            rgba(79, 70, 229, 0.5) 0%,
            rgba(6, 182, 212, 0.5) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(even) .timeline-content {
    order: 3;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-visual {
    order: 1;
}

.timeline-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.5);
    position: relative;
    z-index: 2;
}

.timeline-content {
    text-align: right;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.timeline-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.timeline-visual {
    position: relative;
    width: 60px;
    height: 60px;
}

.pulse-ring {
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-section {
    padding: var(--spacing-lg) 2rem;
    position: relative;
    z-index: 2;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.2);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
    padding: var(--spacing-xl) 2rem;
    position: relative;
    z-index: 2;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.country-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    flex: 1 1 300px;
    min-width: 280px;
}

.country-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.country-card:hover::before {
    opacity: 1;
}

.country-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.country-flag-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.country-flag {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

/* CSS-based flags helper */
.flag-bolivia {
    background: linear-gradient(180deg, #d52b1e 33%, #f9e300 33% 66%, #007934 66%);
}

.flag-chile {
    background: linear-gradient(180deg, #ffffff 50%, #d52b1e 50%);
    position: relative;
}

.flag-chile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: #0039a6;
}

.flag-chile::after {
    content: '★';
    position: absolute;
    top: 0;
    left: 10%;
    color: white;
    font-size: 12px;
}

.country-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.country-info {
    flex-grow: 1;
}

.country-address {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.country-address .material-symbols-outlined {
    color: var(--color-primary-light);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.country-city {
    padding-left: 2rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #25d366;
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
    border-radius: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
}

.contact-visual {
    display: none;
}

.contact-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--gradient-orb);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem 1.5rem;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--color-text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        height: 400px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-visual {
        display: none;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 2rem;
    }

    .timeline-item:nth-child(even) .timeline-content {
        order: 2;
        text-align: left;
    }

    .timeline-item:nth-child(even) .timeline-visual {
        order: 1;
    }

    .timeline-visual {
        display: none;
    }

    .timeline-content {
        text-align: left;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-actions {
        position: fixed;
        top: 300px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        flex-direction: column;
        gap: 1.25rem;
        padding: 0 2rem;
        transition: right var(--transition-normal);
        margin: 0;
        z-index: 1001;
    }

    .nav-actions.active {
        right: 0;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }



    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* Service Detail Sections - Tablet */
    .service-icon-large {
        width: 160px;
        height: 160px;
    }

    .icon-wrapper svg {
        width: 100px;
        height: 100px;
    }

    .content-text h3 {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }



    .highlight-box {
        padding: 1.25rem;
    }

    .benefits-list li {
        gap: 0.75rem;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .channels-visual {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .phase-card {
        padding: 1.75rem;
    }

    /* Logo responsive - Tablet */
    .logo-image {
        height: 35px;
    }
}


@media (max-width: 480px) {
    .hero-section {
        padding: 6rem 1rem 3rem;
    }

    .services-section,
    .how-it-works-section,
    .contact-section {
        padding: 3rem 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    /* Service Detail Sections - Mobile */
    .service-detail-section {
        padding: 3rem 1rem;
    }

    .service-icon-large {
        width: 120px;
        height: 120px;
        margin: 0 auto 1.5rem;
    }

    .icon-wrapper svg {
        width: 70px;
        height: 70px;
    }

    .service-detail-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .service-detail-tagline {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }

    .content-text h3 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .content-text p {
        font-size: 1rem;
    }

    .visual-stack {
        width: 200px;
        height: 200px;
    }

    .visual-layer {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .visual-layer.layer-1 {
        top: 0;
        left: 0;
    }

    .visual-layer.layer-2 {
        top: 30px;
        left: 50px;
    }

    .visual-layer.layer-3 {
        top: 60px;
        left: 100px;
    }

    .highlight-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .highlight-icon {
        font-size: 1.25rem;
    }

    .benefits-list li {
        flex-direction: column;
        gap: 0.5rem;
    }

    .benefit-icon {
        font-size: 1.25rem;
    }

    .stat-circle {
        width: 120px;
        height: 120px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .integration-visual {
        width: 200px;
        height: 200px;
    }

    .integration-node {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .integration-center {
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1.25rem;
    }

    .feature-emoji {
        font-size: 2rem;
    }

    .feature-item h4 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .data-flow-visual {
        padding: 1rem;
        gap: 0.5rem;
    }

    .data-source,
    .data-ai,
    .data-insight {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .data-arrow {
        font-size: 1.5rem;
    }

    .dashboard-preview {
        padding: 1.5rem;
    }

    .dashboard-header {
        font-size: 1.1rem;
    }

    .metric {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }

    .channels-visual {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .channel-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .team-visual {
        padding: 1rem;
        gap: 1rem;
    }

    .team-human,
    .team-ai,
    .team-result {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        max-width: 200px;
    }

    .team-plus,
    .team-equals {
        font-size: 1.5rem;
    }

    .dual-analysis {
        gap: 1rem;
    }

    .analysis-dimension {
        padding: 1.5rem;
    }

    .analysis-dimension h4 {
        font-size: 1.1rem;
    }

    .analysis-dimension li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .waveform-visual {
        padding: 1.5rem 1rem;
    }

    .wave-line {
        height: 30px;
        margin: 0.75rem 0;
    }

    .emotion-indicator {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .performance-visual {
        padding: 1.25rem;
    }

    .score-number {
        font-size: 3rem;
    }

    .score-label {
        font-size: 0.9rem;
    }

    .metrics-list {
        gap: 0.75rem;
    }

    .metric-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .phase-card {
        padding: 1.5rem;
    }

    .phase-number {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }

    .phase-icon {
        font-size: 2rem;
    }

    .phase-card h4 {
        font-size: 1.1rem;
    }

    .phase-card li {
        font-size: 0.9rem;
    }

    .phase-description {
        font-size: 0.9rem;
    }

    .service-info-card {
        padding: 2rem 1.5rem;
    }

    .info-icon {
        font-size: 2.5rem;
    }

    .service-info-card h3 {
        font-size: 1.3rem;
    }

    .service-info-card p {
        font-size: 0.95rem;
    }

    /* Logo responsive - Mobile */
    .logo-image {
        height: 30px;
    }

    .logo-dot {
        width: 6px;
        height: 6px;
    }

    /* Hero floating cards - Mobile */
    .hero-visual {
        height: 350px;
    }

    .floating-card {
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-label {
        font-size: 0.75rem;
    }

    .card-1 {
        top: 5%;
        left: 5%;
    }

    .card-2 {
        top: 20%;
        right: 5%;
    }

    .card-3 {
        bottom: 10%;
        left: 25%;
    }

    .card-4 {
        top: 55%;
        right: 10%;
    }
}


/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */
/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU acceleration for animated elements */
.visual-layer,
.stat-circle,
.integration-center,
.channel-icon,
.phase-card,
.service-info-card,
.floating-card,
.gradient-orb {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize heavy animations - reduce complexity and slow them down */
.svg-animate-rotate {
    animation-duration: 40s !important;
    /* Much slower = less CPU */
}

.svg-pulse,
.svg-pulse-ring {
    animation-duration: 4s !important;
    /* Slower = less CPU */
}

.svg-grow {
    animation-duration: 2s !important;
}

.svg-draw,
.svg-draw-path {
    animation-duration: 4s !important;
}

/* Disable neural network canvas on service sections for performance */
.service-detail-section canvas {
    display: none;
}

/* Reduce animation complexity on frequently animated elements */
.info-icon {
    animation: none !important;
    /* Remove bounce animation */
}

.metric {
    animation-duration: 3s !important;
    /* Slower pulse */
}

.wave-line {
    animation-duration: 3s !important;
    /* Slower wave */
}

/* Optimize floating animations */
.visual-layer {
    animation-duration: 6s !important;
    /* Slower float */
}

.channel-icon {
    animation-duration: 4s !important;
    /* Slower float */
}

/* Reduce glow effects frequency */
.stat-circle {
    animation-duration: 4s !important;
}

.pulse-glow {
    animation-duration: 4s !important;
}

/* Optimize scroll performance */
* {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* Reduce complexity of gradient orbs */
.gradient-orb {
    animation-duration: 25s !important;
    opacity: 0.3 !important;
    /* Reduce opacity for less GPU load */
}

/* Optimize floating cards */
.floating-card {
    animation-duration: 4s !important;
}


/* GLOBAL MOBILE OPTIMIZATION & MARGIN FIX */
@media (max-width: 600px) {

    /* Prevent any content from touching screen edges */
    body,
    html {
        overflow-x: hidden;
    }

    section,
    .container,
    .problem-section,
    .services-overview,
    .service-detail-section,
    .footer,
    .main-nav,
    .hero-content,
    .service-detail-container {

        width: 100% !important;
        box-sizing: border-box !important;
    }

    .content-block {
        gap: 2.5rem !important;
        width: 100% !important;
        overflow: hidden;
    }

    .content-text {
        max-width: 350px;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    #neuralNetworkContact {
        display: none;
    }

    .image-content {
        width: 80%;
        margin: auto;
    }

    /* Fix potential overflow from text or titles */
    h1,
    h2,
    h3,
    h4,
    p {
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Adjust specific visuals for very small screens */
    .revops-spheres-visual,
    .ai-bot-visual {
        width: 280px;
        height: 280px;
    }

    @keyframes orbitSphere1 {
        0% {
            transform: rotate(0deg) translateX(90px) rotate(0deg);
        }

        100% {
            transform: rotate(360deg) translateX(90px) rotate(-360deg);
        }
    }

    @keyframes orbitSphere2 {
        0% {
            transform: rotate(120deg) translateX(90px) rotate(-120deg);
        }

        100% {
            transform: rotate(480deg) translateX(90px) rotate(-480deg);
        }
    }

    @keyframes orbitSphere3 {
        0% {
            transform: rotate(240deg) translateX(90px) rotate(-240deg);
        }

        100% {
            transform: rotate(600deg) translateX(90px) rotate(-600deg);
        }
    }

    .stat-circle {
        width: 130px;
        height: 130px;
    }

    .timeline-item {
        padding: 0 !important;
    }

    /* Add background-clip for compatibility */
    * {
        -webkit-background-clip: padding-box;
        background-clip: padding-box;
    }
}