/* 
   a3 Corporate Tech & AI Design System - LIGHT THEME
   Paleta: Slate White, Clean White Cards, Slate Grey Text, Emerald & Sky Blue accents
*/

:root {
    /* Color Palette */
    --bg-darkest: #f8fafc;      /* Slate 50 - Ultra-clean light background */
    --bg-dark-slate: #ffffff;   /* Pure White for cards */
    --bg-medium-slate: #f1f5f9;  /* Slate 100 for hover state */
    --border-slate: rgba(15, 23, 42, 0.08); /* Soft dark borders */
    --border-active: rgba(16, 185, 129, 0.45); /* Soft emerald border */
    
    /* Technology accents (Optimized for light background readability) */
    --neon-green: #059669;      /* Emerald 600 - High contrast tech green */
    --neon-cyan: #0284c7;       /* Sky 600 - High contrast tech blue */
    --neon-purple: #7c3aed;     /* Purple 600 */
    --neon-orange: #ea580c;     /* Orange 600 */
    
    /* Glow shadows */
    --glow-green: rgba(5, 150, 105, 0.15);
    --glow-cyan: rgba(2, 130, 199, 0.15);
    --glow-purple: rgba(124, 90, 237, 0.1);
    
    /* Text */
    --text-primary: #0f172a;    /* Slate 900 - High contrast main text */
    --text-muted: #475569;      /* Slate 600 - Readable secondary text */
    --text-dark: #ffffff;       /* White text for buttons/dark elements */
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Grotesk', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tech Background Particles & Softer Glowing Blobs for Light Theme */
.tech-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
    background: var(--bg-darkest);
}

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08; /* Much lighter opacity for clean light theme */
    animation: blobFloat 25s infinite ease-in-out alternate;
}

.blob-green {
    background: #10b981;
    top: -250px;
    left: -250px;
}

.blob-cyan {
    background: #0ea5e9;
    bottom: -250px;
    right: -250px;
    animation-delay: -5s;
}

.blob-purple {
    background: #8b5cf6;
    top: 35%;
    left: 50%;
    width: 450px;
    height: 450px;
    opacity: 0.05;
    animation-delay: -10s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 55px 55px;
    background-position: center;
    mask-image: radial-gradient(ellipse at 50% 50%, black 50%, transparent 90%);
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.08); }
    100% { transform: translate(-20px, 50px) scale(0.97); }
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

.text-center {
    text-align: center;
}

/* Typography & Headers */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.highlight-text {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-pre {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.section-desc {
    max-width: 700px;
    margin: 15px auto 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary-neon {
    background: var(--neon-green);
    color: var(--text-dark);
    box-shadow: 0 4px 15px var(--glow-green);
}

.btn-primary-neon:hover {
    background: #047857; /* Darker emerald hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-green);
}

.btn-secondary-outline {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-slate);
    color: var(--text-primary);
}

.btn-secondary-outline:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-nav-cta {
    background: rgba(2, 132, 199, 0.07);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: var(--neon-cyan);
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-nav-cta:hover {
    background: var(--neon-cyan);
    color: var(--text-dark);
    box-shadow: 0 0 12px var(--glow-cyan);
}

.full-width {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.85); /* Slate 50 glassmorphism */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-slate);
    padding: 16px 0;
    transition: var(--transition-smooth);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-a3 {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 2.2rem;
    display: flex;
    align-items: flex-start;
    line-height: 1;
}

.logo-a3 .letra {
    color: var(--text-primary);
    letter-spacing: -2px;
}

.logo-a3 sup {
    color: var(--neon-green);
    font-size: 0.55em;
    top: -0.1em;
    margin-left: -1px;
    text-shadow: 0 0 4px var(--glow-green);
}

.separator-brand {
    width: 1px;
    height: 32px;
    background-color: rgba(15, 23, 42, 0.15);
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    line-height: 1.25;
}

.brand-sub {
    font-weight: 400;
    color: var(--text-muted);
}

.brand-main {
    color: var(--text-primary);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--neon-cyan);
}

.nav-links a.active {
    color: var(--neon-green);
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-darkest);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mobile-link:hover {
    color: var(--neon-green);
}

.mobile-link.highlight {
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 10px 24px;
    border-radius: 8px;
    margin-top: 10px;
}

.close-menu {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.2rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(2, 132, 199, 0.04);
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    margin-bottom: 28px;
    line-height: 1.3;
    font-weight: 500;
}

.hero-badge i {
    font-size: 0.95rem;
}

h1#hero-title {
    font-size: 3.2rem;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 620px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Interactive Diagram: El Puente de IA (Light Theme) */
.hero-visual-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bridge-visual-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-slate);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
}

.bridge-visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16,185,129,0.02) 0%, transparent 60%);
    pointer-events: none;
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding-bottom: 12px;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.visual-header .visual-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visual-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    position: relative;
}

.tech-box {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-slate);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
}

.tech-box span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-top: 8px;
}

.tech-box small {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.box-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.status-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Legacy box styles */
.legacy-box {
    border-left: 3px solid #dc2626; /* Red-600 */
}
.legacy-box .box-icon {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}
.legacy-box .status-indicator.online {
    background: #dc2626;
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.4);
}

/* AI box styles */
.ai-box {
    border-left: 3px solid var(--neon-green);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.05);
}
.ai-box .box-icon {
    background: rgba(5, 150, 105, 0.1);
    color: var(--neon-green);
}
.ai-box .status-indicator.active-glowing {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: indicatorPulse 2s infinite;
}

@keyframes indicatorPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* Connector Pipes & Pulsing dot */
.connector-pipes {
    height: 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pipe-bridge {
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.3);
    padding: 3px 10px;
    border-radius: 40px;
    z-index: 5;
    position: absolute;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.bridge-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.pipe {
    position: absolute;
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, #dc2626, var(--neon-green));
}

.pulse-dot {
    position: absolute;
    top: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 6px var(--neon-cyan);
    animation: dataPulse 2s infinite linear;
}

.pulse-dot.delay-1 {
    animation-delay: 1s;
}

@keyframes dataPulse {
    0% { top: 0%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Visual footer stats */
.visual-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    margin-top: 24px;
    padding-top: 16px;
}

.footer-stat {
    flex: 1;
    text-align: center;
}

.footer-stat .num {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.footer-stat .lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.vertical-divider {
    width: 1px;
    background: rgba(15, 23, 42, 0.05);
    height: 35px;
    align-self: center;
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    h1#hero-title {
        font-size: 2.4rem;
    }
    
    .hero-visual-content {
        margin-top: 20px;
    }
}

/* SECCIÓN 2: EMPATÍA */
.empathy-section {
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    border-top: 1px solid var(--border-slate);
}

.pain-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}

.pain-card {
    background: var(--bg-dark-slate);
    border: 1px solid var(--border-slate);
    border-radius: 12px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 0.01) 0%, transparent 60%);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.pain-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 23, 42, 0.15);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}

.pain-card:hover .card-glow {
    background: radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 0.03) 0%, transparent 60%);
}

/* Custom glows per card (Light Theme Adaptations) */
#pain-card-migration:hover {
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.04);
}
#pain-card-specialists:hover {
    border-color: rgba(234, 88, 12, 0.3);
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.04);
}
#pain-card-data:hover {
    border-color: rgba(202, 138, 4, 0.3);
    box-shadow: 0 10px 30px rgba(202, 138, 4, 0.04);
}

.pain-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.red-tint { background: rgba(220, 38, 38, 0.08); color: #dc2626; }
.orange-tint { background: rgba(234, 88, 12, 0.08); color: var(--neon-orange); }
.yellow-tint { background: rgba(202, 138, 4, 0.08); color: #ca8a04; }

.pain-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pain-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .pain-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* SECCIÓN 3: SOLUCIÓN (Pillars) */
.solution-section {
    border-top: 1px solid var(--border-slate);
}

.pillars-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.pillar-card {
    background: var(--bg-dark-slate);
    border: 1px solid var(--border-slate);
    border-radius: 14px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-active);
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.08);
}

.pillar-number {
    position: absolute;
    top: 24px;
    right: 30px;
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.04);
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-number {
    color: rgba(5, 150, 105, 0.12);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    background: rgba(2, 132, 199, 0.08);
    color: var(--neon-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon {
    background: var(--neon-green);
    color: var(--text-dark);
    box-shadow: 0 0 10px var(--glow-green);
}

.pillar-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pillar-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .pillars-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* SECCIÓN 4: MODELOS DE NEGOCIO / INDUSTRIAS (Tabs) */
.industries-section {
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid var(--border-slate);
}

.tabs-wrapper {
    margin-top: 50px;
    background: #ffffff;
    border: 1px solid var(--border-slate);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.tabs-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.03);
}

.tab-btn.active {
    background: rgba(2, 132, 199, 0.05);
    border-color: rgba(2, 132, 199, 0.2);
    color: var(--neon-cyan);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.05);
}

.tabs-content {
    min-height: 300px;
}

.tab-panel {
    display: none;
    animation: panelFadeIn 0.5s forwards ease-out;
}

.tab-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.panel-text h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.panel-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.panel-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-bullets li {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.panel-bullets li i {
    color: var(--neon-green);
    margin-top: 4px;
    font-size: 1rem;
}

.panel-bullets li strong {
    color: var(--text-primary);
}

/* Panels Visuals */
.panel-visual {
    display: flex;
    justify-content: center;
}

.panel-glow-box {
    background: #f8fafc;
    border: 1px solid var(--border-slate);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 320px;
    position: relative;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.panel-glow-box .glow-header {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compliance-badge {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.badge-tag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    background: #e2e8f0;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(15,23,42,0.05);
}

.compliance-flow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.flow-step {
    background: #ffffff;
    border: 1px solid var(--border-slate);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
}

.flow-step i {
    color: var(--neon-green);
    margin: 0 4px;
}

/* Flow diagram visual */
.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.diagram-node {
    background: #ffffff;
    border: 1px solid var(--border-slate);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    width: 100%;
    text-align: center;
}

.diagram-node.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(2, 132, 199, 0.03);
}

.diagram-arrow {
    font-size: 0.75rem;
    color: rgba(15,23,42,0.2);
}

/* Stats Mini Chart */
.stats-mini-chart {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: center;
    height: 120px;
    position: relative;
    padding-bottom: 24px;
}

.chart-bar-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chart-bar-vertical span {
    width: 40px;
    border-radius: 4px 4px 0 0;
    background: #e2e8f0;
    transition: var(--transition-smooth);
}

.chart-bar-vertical span.h-60 { height: 60px; }
.chart-bar-vertical span.h-100 { height: 100px; }

.chart-bar-vertical.active span {
    background: var(--neon-purple);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.25);
}

.chart-bar-vertical small {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.chart-label {
    position: absolute;
    bottom: -5px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--neon-cyan);
}

/* User Matching List */
.user-matching-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-slate);
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-primary);
}

.bullet-match {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-orange);
    box-shadow: 0 0 4px var(--neon-orange);
}

/* Colors for glow boxes (Light Theme) */
.blue-glow { border-color: rgba(2, 132, 199, 0.2); }
.green-glow { border-color: rgba(5, 150, 105, 0.2); }
.purple-glow { border-color: rgba(124, 58, 237, 0.2); }
.orange-glow { border-color: rgba(234, 88, 12, 0.2); }

@media (max-width: 900px) {
    .tabs-nav {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .panel-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .panel-visual {
        order: -1;
    }
}

/* Showcase own products */
.products-showcase-bar {
    margin-top: 40px;
    border-top: 1px solid rgba(15,23,42,0.05);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.showcase-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.showcase-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.showcase-card {
    background: #ffffff;
    border: 1px solid var(--border-slate);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 260px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(15,23,42,0.02);
}

.showcase-card:hover {
    border-color: rgba(5, 150, 105, 0.25);
    background: rgba(5, 150, 105, 0.01);
    transform: translateY(-2px);
}

.showcase-card .logo-miplan {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.showcase-card .logo-miplan .dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--neon-green);
    border-radius: 50%;
    margin: 0 1px;
}

.showcase-card .logo-miplan small {
    font-size: 0.6rem;
    background: var(--neon-green);
    color: var(--text-dark);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 800;
    margin-left: 5px;
}

.showcase-card .logo-tim {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.showcase-card .logo-tim small {
    font-size: 0.65rem;
    color: var(--neon-cyan);
    font-weight: 500;
    margin-left: 5px;
}

.showcase-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* SECCIÓN 5: SOBRE MÍ / AUTORIDAD */
.authority-section {
    border-top: 1px solid var(--border-slate);
}

.authority-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.authority-text-content h2 {
    font-size: 2.4rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 600;
}

.body-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

.book-highlight-box {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-slate);
    border-left: 3px solid var(--neon-orange);
    border-radius: 0 12px 12px 0;
    padding: 24px;
}

.book-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-orange);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-highlight-box h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.book-highlight-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Typographic Book Quote Card (Replaces Book Image Cover) */
.authority-visual-content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.typographic-book-card {
    background: #ffffff;
    border: 1px solid var(--border-slate);
    border-left: 4px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    transition: var(--transition-smooth);
}

.typographic-book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.07);
}

.typographic-book-card .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(2, 132, 199, 0.02) 0%, transparent 70%);
}

.typographic-book-card .book-badge {
    color: var(--neon-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.typographic-book-card .quote-mark {
    font-size: 3rem;
    color: rgba(2, 132, 199, 0.07);
    position: absolute;
    top: 30px;
    right: 30px;
    line-height: 1;
}

.book-quote-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #334155; /* Slate 700 */
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.book-author {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .authority-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .typographic-book-card {
        max-width: 100%;
    }
}

/* SECCIÓN 6: CASOS DE ÉXITO (Métricas) */
.stats-section {
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid var(--border-slate);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.stat-card {
    background: var(--bg-dark-slate);
    border: 1px solid var(--border-slate);
    padding: 36px 30px;
    border-radius: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.06);
}

.stat-number-wrapper {
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-number-wrapper.font-smaller {
    font-size: 1.8rem;
    font-family: var(--font-body);
}

.stat-number-wrapper.font-smaller .stat-number-value {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

.stat-number-value {
    letter-spacing: -2px;
}

.highlighted-cyan {
    color: var(--neon-cyan);
}

.stat-number-suffix {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-left: 2px;
}

.stat-text-value {
    font-size: 0.95rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* SECCIÓN 7: CONTACTO (Light Theme) */
.contact-section-redesigned {
    border-top: 1px solid var(--border-slate);
    background: rgba(255, 255, 255, 0.5);
}

.contact-box-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-dark-slate);
    border: 1px solid var(--border-slate);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.04);
}

.contact-info-panel {
    padding: 60px;
    background: radial-gradient(circle at 0% 100%, rgba(2, 132, 199, 0.03) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-panel h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.contact-info-panel .accent-glow {
    color: var(--neon-cyan);
}

.contact-subtext {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.direct-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.direct-method-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    border: 1px solid var(--border-slate);
    padding: 16px 24px;
    border-radius: 12px;
}

.direct-method-card .icon {
    width: 44px;
    height: 44px;
    background: rgba(2, 132, 199, 0.08);
    color: var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.direct-method-card .details {
    display: flex;
    flex-direction: column;
}

.direct-method-card .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.direct-method-card .val {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.direct-method-card .val:hover {
    color: var(--neon-cyan);
}

.contact-form-panel {
    padding: 60px;
    background: #f8fafc;
    border-left: 1px solid var(--border-slate);
}

.glass-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    background: #ffffff;
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.1);
}

.form-field textarea {
    resize: none;
}

@media (max-width: 900px) {
    .contact-box-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel,
    .contact-form-panel {
        padding: 40px 24px;
    }
    
    .contact-form-panel {
        border-left: none;
        border-top: 1px solid var(--border-slate);
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
}

/* FOOTER (Dark Slate Footer preserved for premium grounding and visual anchor) */
footer {
    padding: 60px 0;
    background: #0b1120; /* Dark slate blue footer */
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo .logo-a3 .letra {
    color: #ffffff; /* White logo in dark footer */
}

.font-large {
    font-size: 2.8rem;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.social-links-container {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #94a3b8;
}

.social-link:hover {
    color: white;
    border-color: var(--neon-cyan);
    background: rgba(2, 132, 199, 0.1);
    transform: translateY(-2px);
}

.footer-bottom-text {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

.footer-bottom-text p {
    margin-bottom: 4px;
}

.footer-region {
    font-family: var(--font-mono);
    color: rgba(255,255,255,0.15);
}