/* Ubicación: page/css/estilos_generales.css */
:root {
    --bg-dark: #070314;
    --bg-card: rgba(19, 9, 41, 0.75);
    --border-glow: rgba(124, 58, 237, 0.3);
    --border-glow-hover: rgba(168, 85, 247, 0.6);
    --primary-purple: #7C3AED;
    --accent-cyan: #38BDF8;
    --accent-pink: #EC4899;
    --text-white: #F8FAFC;
    --text-muted: #94A3B8;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Canvas Animado de Estrellas/Constelación */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Header Glassmorphism */
.app-topbar-custom {
    position: fixed; top: 0; left: 0; right: 0; height: 75px;
    background: rgba(7, 3, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glow);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; z-index: 1000;
}

.brand-logo {
    font-size: 1.6rem; font-weight: 800; color: #fff;
    text-decoration: none; letter-spacing: -0.5px;
}

.accent-text {
    background: linear-gradient(135deg, #A855F7, #38BDF8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-status {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: #C084FC; padding: 5px 14px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; margin-left: 12px;
}

.pulse-dot {
    width: 8px; height: 8px; background: #34D399;
    border-radius: 50%; display: inline-block; margin-right: 6px;
    box-shadow: 0 0 10px #34D399;
}

.main-nav ul { display: flex; list-style: none; gap: 28px; }
.main-nav a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.95rem; font-weight: 500; transition: 0.3s ease;
}
.main-nav a:hover { color: #fff; text-shadow: 0 0 12px rgba(168, 85, 247, 0.6); }

/* Layout & Secciones */
.journey-section {
    position: relative; z-index: 1;
    min-height: 100vh; padding: 120px 40px 80px;
    display: flex; align-items: center; justify-content: center;
}
.section-container { max-width: 1200px; width: 100%; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.sub-title {
    color: var(--accent-cyan); font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem;
    display: block; margin-bottom: 8px;
}

/* Tipografía de Alto Impacto */
.gradient-title {
    font-size: 3rem; font-weight: 800; line-height: 1.15;
    background: linear-gradient(135deg, #FFFFFF 20%, #E9D5FF 60%, #38BDF8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}
.section-description {
    color: var(--text-muted); font-size: 1.15rem; max-width: 780px; margin: 0 auto;
}

/* Grillas & Cards Glass */
.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: 16px; padding: 32px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.glass-card:hover {
    border-color: var(--border-glow-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.3);
}

/* KPIs Destacados */
.card-metric { text-align: center; }
.metric-number {
    font-size: 3.2rem; font-weight: 900;
    background: linear-gradient(135deg, #A855F7, #38BDF8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.metric-label { color: #E2E8F0; font-size: 1rem; font-weight: 600; }
.metric-desc { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }

/* Clientes Badges */
.client-badge-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px; margin-top: 30px;
}
.client-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px; padding: 16px; text-align: center;
    font-weight: 700; color: #CBD5E1; font-size: 0.95rem;
    transition: 0.3s;
}
.client-badge:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--primary-purple); color: #fff;
}

/* Tarjetas de Productos */
.level-badge {
    background: linear-gradient(90deg, var(--primary-purple), #9333EA);
    color: #fff; font-size: 0.75rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px; width: max-content;
    margin-bottom: 16px; letter-spacing: 0.5px;
}

/* Botones & Inputs */
.btn-primary {
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    color: #fff; border: none; padding: 14px 28px;
    border-radius: 10px; font-weight: 700; font-size: 1rem;
    cursor: pointer; text-decoration: none; display: inline-block;
    transition: 0.3s; box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
}

.form-control {
    width: 100%; padding: 14px;
    background: rgba(10, 4, 26, 0.8);
    border: 1px solid var(--border-glow);
    border-radius: 10px; color: #fff; font-size: 0.95rem;
    margin-top: 6px; transition: 0.3s;
}
.form-control:focus {
    outline: none; border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

/* Asistente Flotante */
#agentic-widget {
    position: fixed; bottom: 25px; right: 25px; z-index: 1000;
    width: 320px; background: rgba(15, 7, 36, 0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glow-hover);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
.agentic-header {
    background: linear-gradient(90deg, #3B0A91, #5B21B6);
    padding: 12px 16px; font-size: 0.85rem; font-weight: 700;
}
.agentic-body { padding: 16px; font-size: 0.88rem; color: #E2E8F0; transition: opacity 0.3s; }