/* ========================================
   QUANT CONSULTING - Futuristic AI Website
   ======================================== */

:root {
    /* Color Palette - Dark Tech Identity */
    /* Base (Fondo) */
    --bg-primary: #0B0F14;
    --bg-secondary: #121826;
    --bg-cards: #181F2E;
    
    /* Primarios (Marca) */
    --color-primary: #00B4DB;
    --color-secondary: #0096C7;
    --color-deep: #0077B6;
    
    /* Legacy aliases for compatibility */
    --color-dark: #0077B6;
    --color-medium: #0096C7;
    --color-light: #00B4DB;
    --color-accent: #00B4DB;
    
    /* Neutros (Texto) */
    --text-primary: #FFFFFF;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    
    /* Accent (Uso limitado) */
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    
    /* Glass/Cards */
    --glass-bg: rgba(24, 31, 46, 0.8);
    --glass-border: #1F2937;
    --glass-border-hover: rgba(0, 180, 219, 0.4);
    --card-shadow: 0 0 20px rgba(0, 180, 219, 0.08);
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1400px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   NAVIGATION
   ======================================== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    flex: 1;
    justify-content: flex-end;
    margin-right: 1.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(0, 180, 219, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.6rem 1.5rem !important;
    border: 1px solid var(--color-primary) !important;
    background: transparent;
    color: var(--color-primary) !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 30px rgba(0, 180, 219, 0.4);
    border-color: transparent !important;
}

.nav-cta::after {
    display: none !important;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    order: 10;
}

.lang-switch .lang-icon {
    width: 16px;
    height: 16px;
}

.lang-switch:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 180, 219, 0.1);
}

.lang-switch::after {
    display: none !important;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    border-color: var(--color-primary);
}

.nav-toggle:hover span {
    background: var(--color-primary);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hide mobile lang option on desktop */
.nav-lang-mobile {
    display: none;
}

/* Mobile Navigation Styles */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        border-left: 1px solid var(--glass-border);
        z-index: 999;
        flex: none;
        margin-right: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        display: block;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links li a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }
    
    .nav-links .nav-cta {
        margin-top: 1rem;
        text-align: center;
        width: 100%;
        display: block;
    }
    
    .nav-lang-mobile {
        display: block;
        margin-top: 1rem;
        border-bottom: none !important;
    }
    
    .lang-switch-mobile {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-sm);
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }
    
    .lang-switch-mobile .lang-icon {
        width: 18px;
        height: 18px;
    }
    
    .lang-switch-mobile:hover {
        border-color: var(--color-primary);
        color: var(--color-primary);
    }
    
    .lang-switch-mobile::after {
        display: none !important;
    }
    
    /* Desktop lang switch visible on mobile too */
    .lang-switch {
        order: 10;
        margin-left: 0.5rem;
    }
    
    .nav-toggle {
        order: 9;
    }
    
    #main-nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        margin-right: 0;
    }
}

/* ========================================
   SECTION DIVIDER
   ======================================== */
.section-divider {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    background: transparent;
}

.section-divider::after {
    content: '';
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    box-shadow: 0 0 10px rgba(0, 180, 219, 0.3);
}

/* ========================================
   SECTIONS - Common Styles
   ======================================== */
section {
    position: relative;
    min-height: 100vh;
    padding: var(--section-padding) 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

section canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 10;
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInTitle 0.8s ease forwards;
}

@keyframes fadeInTitle {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 4rem;
    font-weight: 400;
    line-height: 1.7;
}

/* ========================================
   HERO SECTION
   ======================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0, 150, 199, 0.08) 0%, transparent 70%);
    position: relative;
}

#hero-threejs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo .logo-img {
    max-width: 350px;
    height: auto;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.3s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.title-line {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 0.8s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.5s;
}

.title-line:nth-child(2) {
    font-size: clamp(2rem, 6vw, 4.5rem);
    color: var(--color-primary);
    letter-spacing: 0.3em;
    animation-delay: 0.7s;
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: none;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.5s;
    z-index: 10;
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 24px;
    height: 36px;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* ========================================
   WHAT WE DO - NEURAL NETWORK
   ======================================== */
.neural-network-container {
    position: relative;
    margin-top: 4rem;
    min-height: 500px;
}

.neural-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.neural-nodes {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 500px;
    padding: 0 2rem;
}

.neural-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

.neural-node:hover {
    transform: scale(1.1);
}

.neural-node:hover .node-pulse {
    animation: nodePulseGlow 1s ease-in-out infinite;
}

.neural-node:hover .node-info {
    opacity: 1;
    transform: translateY(0);
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 219, 0.3) 0%, transparent 70%);
    animation: nodePulse 3s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.2; }
}

@keyframes nodePulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 0.4; }
}

.node-core {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-cards);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.neural-node:hover .node-core {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 180, 219, 0.5);
}

.node-core svg {
    width: 40px;
    height: 40px;
}

.node-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    color: var(--color-primary);
    letter-spacing: 2px;
    text-align: center;
}

.node-info {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 180px;
    text-align: center;
    padding-top: 1rem;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.node-info h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0;
}

.node-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Input/Output nodes */
.input-node .node-core,
.output-node .node-core {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--bg-cards) 0%, var(--bg-primary) 100%);
    border-width: 3px;
}

.output-node .node-core {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 180, 219, 0.3);
}

/* Neural layers */
.neural-layer {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.layer-1 {
    gap: 2.5rem;
}

.layer-2 .neural-node {
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1200px) {
    .neural-network-container {
        min-height: auto;
    }
    
    .neural-bg {
        display: none;
    }
    
    .neural-nodes {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3rem;
        padding: 2rem;
    }
    
    .neural-layer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .input-node,
    .output-node {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .node-info {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: auto;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .neural-nodes {
        flex-direction: column;
        gap: 2rem;
    }
    
    .neural-layer {
        flex-direction: column;
        align-items: center;
    }
    
    .node-core {
        width: 70px;
        height: 70px;
    }
    
    .input-node .node-core,
    .output-node .node-core {
        width: 80px;
        height: 80px;
    }
    
    .node-label {
        font-size: 0.55rem;
    }
}

/* ========================================
   PROBLEMS WE SOLVE
   ======================================== */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: var(--bg-cards);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
}

.problem-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary);
    transition: width 0.4s ease;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.problem-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}

.problem-card:hover::after {
    width: 80%;
}

.problem-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-secondary);
    border-radius: 4px;
    transform: rotate(45deg);
}

.problem-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0;
}

.problem-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   SERVICES
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-cards);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
}

.service-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 180, 219, 0.15);
}

.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-image img,
.service-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img,
.service-card:hover .service-image svg {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
    text-align: left;
}

.service-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0;
}

.service-content ul {
    list-style: none;
}

.service-content li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.service-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ========================================
   FRAMEWORK TIMELINE
   ======================================== */
.framework-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 4rem;
    padding: 0 2rem;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: 160px;
}

.node-circle {
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cards);
    z-index: 2;
    transition: all 0.4s ease;
}

.node-circle::before {
    content: attr(data-step);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
}

.node-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: nodeRipple 2s ease-out infinite;
    opacity: 0;
}

.timeline-node:hover .node-circle {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 0 40px rgba(0, 180, 219, 0.5);
}

.timeline-node:hover .node-circle::before {
    color: var(--text-primary);
}

@keyframes nodeRipple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.timeline-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin-top: 29px;
    position: relative;
    min-width: 40px;
    max-width: 80px;
}

.timeline-connector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    animation: connectorPulse 1.5s ease-in-out infinite;
}

@keyframes connectorPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.node-content {
    margin-top: 1.5rem;
    text-align: center;
}

.node-content h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0;
}

.node-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ========================================
   CASE STUDIES
   ======================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.case-card {
    background: var(--bg-cards);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: var(--card-shadow);
}

.case-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 180, 219, 0.15);
}

.case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-image img,
.case-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-card:hover .case-image img,
.case-card:hover .case-image svg {
    transform: scale(1.05);
}

.case-content {
    padding: 2rem;
    text-align: left;
}

.case-industry {
    font-size: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.case-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0.75rem 0;
    letter-spacing: 1px;
}

.case-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.case-metrics {
    display: flex;
    gap: 2rem;
}

.case-metrics span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.case-metrics strong {
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

/* ========================================
   INDUSTRIES
   ======================================== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.industry-card {
    background: var(--bg-cards);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.industry-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 180, 219, 0.15);
}

.industry-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.industry-image img,
.industry-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.industry-card:hover .industry-image img,
.industry-card:hover .industry-image svg {
    transform: scale(1.05);
}

.industry-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1.5rem 1rem 0.5rem;
    letter-spacing: 0;
}

.industry-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0 1rem 1.5rem;
    line-height: 1.6;
}

/* ========================================
   CTA SECTION
   ======================================== */
#cta {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(0, 150, 199, 0.08) 100%);
}

.btn-portal {
    display: inline-block;
    position: relative;
    padding: 1.25rem 4rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 2rem;
}

.btn-portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 180, 219, 0.5), 0 0 100px rgba(0, 180, 219, 0.3);
}

.btn-portal:hover::before {
    left: 100%;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 180, 219, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn-portal:hover .btn-glow {
    opacity: 1;
}

/* ========================================
   FOOTER
   ======================================== */
#footer {
    background: var(--bg-primary);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .framework-timeline {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .timeline-connector {
        display: none;
    }
}

@media (max-width: 992px) {
    #main-nav {
        padding: 1rem 2rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-logo .logo-img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .title-line {
        letter-spacing: 0.1em;
    }
    
    .hero-tagline {
        letter-spacing: 0.1em;
        font-size: 0.9rem;
    }
    
    .btn-portal {
        padding: 1rem 2rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   NEW SECTIONS - Spanish Landing Page
   ======================================== */

/* Hero Subtitle and CTAs */
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.2s;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.4s;
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 180, 219, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 50px rgba(0, 180, 219, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 180, 219, 0.1);
    box-shadow: 0 0 30px rgba(0, 180, 219, 0.2);
}

/* Problema Section */
#problema {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

#problema .section-title {
    text-transform: none;
    letter-spacing: 1px;
}

.highlight-text {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

#problema .problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

#problema .problem-card {
    background: var(--bg-cards);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

#problema .problem-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
}

#problema .problem-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-lucide-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    stroke-width: 1.5;
}

#problema .problem-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.problem-conclusion {
    padding: 2rem;
    background: rgba(0, 180, 219, 0.05);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.problem-conclusion p {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.problem-conclusion strong {
    color: var(--color-primary);
}

/* Solucion Section */
#solucion {
    background: var(--bg-secondary);
}

.solution-ecosystem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
}

.ecosystem-center {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-deep), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 50px rgba(0, 180, 219, 0.3);
}

.ecosystem-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.ecosystem-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-cards);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.ecosystem-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.ecosystem-item svg {
    width: 40px;
    height: 40px;
}

.ecosystem-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.solution-tagline {
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Propuesta de Valor Section */
#propuesta {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.value-prop {
    padding: 2rem;
    background: var(--bg-cards);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.value-prop:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}

.value-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
}

.value-prop h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.value-prop p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.value-conclusion {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

/* Servicios Section */
#servicios {
    background: var(--bg-primary);
}

#servicios .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

#servicios .service-card {
    background: var(--bg-cards);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

#servicios .service-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 180, 219, 0.15);
}

.service-icon-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon-header svg,
.service-icon-header img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
}

.service-emoji {
    font-size: 2rem;
}

.service-lucide-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    stroke-width: 1.5;
}

#servicios .service-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

#servicios .service-content ul {
    list-style: none;
    padding: 0;
}

#servicios .service-content li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

#servicios .service-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Proceso Section */
#proceso {
    background: var(--bg-secondary);
}

#proceso .node-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* Sectores Section */
#sectores {
    background: var(--bg-primary);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.sector-card {
    padding: 0;
    background: var(--bg-cards);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.sector-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 180, 219, 0.15);
}

.sector-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.sector-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sector-card:hover .sector-image img {
    transform: scale(1.05);
}

.sector-icon {
    font-size: 2rem;
    margin: 1rem 0 0.5rem;
}

.sector-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 180, 219, 0.1), rgba(0, 150, 199, 0.05));
}

.sector-lucide-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    stroke-width: 1.5;
}

.sector-card h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0 1rem 1.5rem;
}

/* Diferencial Section */
#diferencial {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: auto;
    padding: 100px 2rem;
}

.diferencial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.diferencial-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-cards);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-align: left;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.diferencial-item:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.check-icon {
    color: var(--color-success);
    font-size: 1.5rem;
}

.diferencial-lucide-icon {
    width: 24px;
    height: 24px;
    color: var(--color-success);
    stroke-width: 2;
    flex-shrink: 0;
}

.diferencial-item span:last-child {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Prueba Social Section */
#prueba-social {
    background: var(--bg-secondary);
    min-height: auto;
    padding: 100px 2rem;
}

.clients-ribbon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.client-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: #6B7280;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-name:hover {
    opacity: 1;
    color: var(--color-primary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: var(--bg-cards);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}

.metric-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.metric-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 992px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-logos {
        gap: 1.5rem;
    }
}

/* Mensaje Marca Section */
#mensaje-marca {
    background: var(--bg-primary);
    min-height: auto;
    padding: 80px 2rem;
}

.brand-message {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-cards), rgba(0, 180, 219, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.brand-message p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.brand-message p:last-child {
    margin-bottom: 0;
}

.brand-message strong {
    color: var(--color-primary);
}

/* Responsive for new sections */
@media (max-width: 1200px) {
    #problema .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .value-props-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #servicios .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sectors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .diferencial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #problema .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .value-props-grid {
        grid-template-columns: 1fr;
    }
    
    #servicios .services-grid {
        grid-template-columns: 1fr;
    }
    
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .diferencial-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .ecosystem-items {
        gap: 1rem;
    }
    
    .social-proof-placeholder {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .sectors-grid {
        grid-template-columns: 1fr;
    }
}
