/* ==========================================================================
   CSS DESIGN SYSTEM FOR BIZNET - 2026
   Aesthetics: Modern, Minimalist, High-Performance, Red Corporate Accents
   ========================================================================== */

/* Variables & Base Tokens */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Color Palette */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f9fafb;
    --color-bg-tertiary: #f3f4f6;
    
    --color-text-primary: #111827;   /* Dark Charcoal/Black */
    --color-text-secondary: #4b5563; /* Slate Gray */
    --color-text-muted: #9ca3af;     /* Light Gray */
    
    --color-brand-red: #d31424;      /* Biznet Red */
    --color-brand-red-hover: #b0101d;/* Darker Red */
    --color-brand-red-light: #fef2f2;/* Red Tint */
    
    --color-border: #e5e7eb;
    --color-border-red: #fca5a5;

    /* Transitions & Physics */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-full: 9999px;

    --max-width-container: 1200px;
}

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

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

body {
    font-family: var(--font-primary);
    background-color: transparent; /* allow canvas at z-index: -1 to be seen */
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Canvas Background */
#nodes-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* behind everything else */
    pointer-events: none;
    background-color: #ffffff; /* acts as the main white background */
}

/* Base Wrapper for Z-Indexing page content above Canvas */
header, section, footer, .dialog-overlay {
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.btn-red {
    background-color: var(--color-brand-red);
    color: #ffffff;
}

.btn-red:hover {
    background-color: var(--color-brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 20, 36, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-text-primary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-md);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* Ensure header is always on top of content and clickable */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: background var(--transition-normal);
}

.header-container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0.5rem 1.5rem; /* reduced vertical padding for a taller logo */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: auto;
    height: 60px; /* matches the red box height */
    max-width: 240px; /* matches the red box width max */
    object-fit: contain; /* pre-cropped logo, maintain aspect ratio */
    mix-blend-mode: multiply;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.25rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-brand-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-brand-red);
    transition: width var(--transition-normal);
}

.nav-link.active {
    color: var(--color-brand-red);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.cta-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all var(--transition-normal);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn var(--transition-slow);
}

.hero-label {
    font-family: var(--font-heading);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-full);
    background-color: var(--color-bg-secondary);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin-bottom: 1.75rem;
}

.hero-title .text-red {
    color: var(--color-brand-red);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 680px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-scroll-indicator {
    margin-bottom: 2rem;
    color: var(--color-text-muted);
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

/* Stats Bar */
.stats-bar {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.stats-container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    color: var(--color-brand-red);
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Layout Común de Secciones */
.section-container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 6.5rem 1.5rem;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--color-brand-red);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: 3.5rem;
}

/* Nuestra Tesis */
.tesis-section {
    background-color: var(--color-bg-secondary);
}

.tesis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tesis-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tesis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--color-brand-red-hover);
}

.tesis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tesis-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(211, 20, 36, 0.15);
    line-height: 1;
}

.tesis-icon {
    color: var(--color-brand-red);
}

.tesis-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tesis-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Soluciones (Portafolio) */
.solutions-section {
    background-color: var(--color-bg-primary); /* solid white background to cover canvas nodes */
}

.solutions-dashboard {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    margin-top: 2rem;
}

/* Pestañas Laterales (Izquierda) */
.dashboard-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 280px;
    flex-shrink: 0;
}

.db-tab-btn {
    border: 1px solid var(--color-border);
    background: transparent;
    text-align: left;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    outline: none;
    width: 100%;
}

.db-tab-btn:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-brand-red-hover);
    transform: translateX(4px);
}

.db-tab-btn.active {
    background: #ffffff;
    border-color: var(--color-brand-red);
    box-shadow: 0 10px 25px -8px rgba(211, 20, 36, 0.18);
    transform: translateX(8px);
}

.db-tab-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.db-tab-btn.active .db-tab-name {
    color: var(--color-brand-red);
}

.db-tab-desc {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 0.35rem;
}

/* Paneles de Contenido (Derecha) */
.dashboard-panels {
    position: relative;
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    min-height: 580px;
}

.db-panel {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal) ease;
    height: 100%;
}

.db-panel.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

/* Encabezado del Panel */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.panel-title-area {
    flex: 1;
}

.panel-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-brand-red);
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.panel-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.panel-logo-wrap {
    width: 240px;
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background: #ffffff;
    flex-shrink: 0;
}

.panel-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform var(--transition-normal);
}

/* Escalas y alineaciones optimizadas para igualar visualmente el tamaño de todos los logos */
#panel-control .panel-brand-logo,
#panel-docmain .panel-brand-logo,
#panel-twinamo .panel-brand-logo,
#panel-bot .panel-brand-logo,
#panel-servicios .panel-brand-logo,
#panel-team .panel-brand-logo {
    transform: scale(1.0);
}

/* Igualar el fondo del recuadro contenedor al color de fondo de la imagen de BIZNET BOT */
#panel-bot .panel-logo-wrap {
    background: #fdfdfd;
}
#panel-bot .panel-brand-logo {
    mix-blend-mode: normal;
}

/* Cuerpo del Panel */
.panel-grid-2col {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2.5rem;
}

.panel-col-main {
    display: flex;
    flex-direction: column;
}

.panel-col-main h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.col-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

/* BIZNET CONTROL: 14 Dominios */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.domain-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
}

.domain-badge span {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-brand-red);
    font-size: 0.75rem;
}

/* Widget Box */
.widget-box {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.widget-box h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.widget-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: -0.75rem;
    line-height: 1.4;
}

/* Control Modes Switcher */
.modes-switcher {
    display: flex;
    gap: 0.35rem;
    background: var(--color-bg-tertiary);
    padding: 0.25rem;
    border-radius: var(--border-radius-sm);
}

.mode-btn {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}

.mode-btn.active {
    background: #ffffff;
    color: var(--color-brand-red);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mode-content-display {
    position: relative;
    min-height: 110px;
    flex-grow: 1;
}

.mode-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-pane.active {
    display: block;
    opacity: 1;
}

.mode-pane h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--color-brand-red);
}

.mode-pane p {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.widget-footer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    margin-top: auto;
}

.widget-footer-badge svg {
    color: var(--color-brand-red);
    flex-shrink: 0;
}

/* BIZNET DOCMAIN: Agentic actions */
.agentic-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.action-card-small {
    border: 1px dashed var(--color-border);
    padding: 0.9rem;
    border-radius: var(--border-radius-md);
    background: #ffffff;
    position: relative;
    transition: border-color var(--transition-fast);
}

.action-card-small:hover {
    border-color: var(--color-brand-red);
}

.action-num {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: rgba(211, 20, 36, 0.08);
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    line-height: 1;
}

.action-card-small h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--color-text-primary);
}

.action-card-small p {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

/* Verticals List */
.verticals-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vertical-item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.vertical-item:hover {
    border-color: var(--color-brand-red-hover);
}

.vertical-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    background: var(--color-bg-secondary);
    transition: background var(--transition-fast);
}

.v-icon {
    font-size: 0.9rem;
}

.vertical-item-header h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    flex: 1;
    color: var(--color-text-primary);
}

.vertical-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    padding: 0 0.9rem;
}

.vertical-item.active {
    border-color: var(--color-brand-red);
}

.vertical-item.active .vertical-item-header {
    background: var(--color-brand-red-light);
}

.vertical-item.active .vertical-item-body {
    max-height: 100px;
    padding: 0.65rem 0.9rem;
    border-top: 1px solid var(--color-border);
}

.vertical-item-body p {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

/* BIZNET TWINAMO: Flow & Live Console */
.twinamo-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-step {
    display: flex;
    gap: 1rem;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: -15px;
    width: 2px;
    border-left: 2px dashed var(--color-border);
}

.flow-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-brand-red-light);
    color: var(--color-brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 2;
    flex-shrink: 0;
}

.flow-text {
    flex: 1;
}

.flow-text h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.flow-text p {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

/* Twinamo Live Console Widget */
.twinamo-live-widget {
    background: #0b0f19;
    color: #ffffff;
    border-color: #1f2937;
}

.twinamo-live-widget h4 {
    color: #ffffff;
}

.widget-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-indicator {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.65rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blink-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.twinamo-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.t-stat {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: var(--border-radius-sm);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.t-stat.alert-style {
    border-color: var(--color-brand-red);
}

.t-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
}

.t-stat.alert-style .t-num {
    color: var(--color-brand-red);
}

.t-lbl {
    font-size: 0.6rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

.live-console-log {
    background: #030712;
    border-radius: var(--border-radius-sm);
    padding: 0.65rem;
    font-family: monospace;
    font-size: 0.65rem;
    color: #10b981;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 90px;
    border: 1px solid #1f2937;
    overflow-y: hidden;
}

.log-line.alert-style {
    color: var(--color-brand-red).
}

.btalk-assistant {
    border-top: 1px solid #1f2937;
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.btalk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 600;
}

.btalk-status {
    color: #10b981;
}

.btalk-body {
    background: #111827;
    border-radius: var(--border-radius-sm);
    padding: 0.65rem;
    border: 1px solid #1f2937;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.chat-msg {
    font-size: 0.68rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    max-width: 90%;
    line-height: 1.3;
}

.user-msg {
    background: #1f2937;
    color: #ffffff;
    align-self: flex-end;
}

.assistant-msg {
    background: rgba(211, 20, 36, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(211, 20, 36, 0.15);
    align-self: flex-start;
}

.btalk-input-presets {
    display: flex;
    gap: 0.4rem;
}

.btalk-preset-btn {
    flex: 1;
    border: 1px solid #1f2937;
    background: #111827;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.62rem;
    padding: 0.35rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}

.btalk-preset-btn:hover {
    border-color: var(--color-brand-red);
    background: rgba(211, 20, 36, 0.1);
    color: #ffffff;
}

/* BIZNET BOT: Modules */
.bot-modules {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bot-module-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    background: #ffffff;
    transition: border-color var(--transition-fast);
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.bot-module-card:hover {
    border-color: var(--color-brand-red);
}

.mod-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.bot-module-card h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.bot-module-card p {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

.bot-benefit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bot-benefit-list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.bot-benefit-list li strong {
    color: var(--color-text-primary);
}

/* BIZNET SERVICIOS: Lines */
.services-lines {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.s-line-item {
    border-left: 3px solid var(--color-brand-red);
    padding-left: 0.85rem;
}

.s-line-item h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.s-line-item p {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

.services-philosophy-widget .phil-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 0.85rem;
    border-left: 4px solid var(--color-brand-red);
}

.services-philosophy-widget .phil-card strong {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.15rem;
    color: var(--color-text-primary);
}

.services-philosophy-widget .phil-card p {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

.phil-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    padding-top: 0.4rem;
}

/* BIZNET TEAM: Mesa de ayuda */
.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.team-mini-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 0.85rem;
    background: #ffffff;
}

.team-mini-card h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
    color: var(--color-brand-red);
}

.team-mini-card p {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

.compliance-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.compliance-bullets li {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 1rem;
}

.compliance-bullets li::before {
    content: '✔';
    color: var(--color-brand-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ==========================================
   Sección Arquitectura de Confianza (5 Capas)
   ========================================== */
.architecture-section {
    background-color: #0b0f19;
    color: #ffffff;
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}

.architecture-section .section-title {
    color: #ffffff;
}

.architecture-section .section-subtitle {
    color: #9ca3af;
}

.architecture-stack-container {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.architecture-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    perspective: 1000px;
}

.arch-layer {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: var(--border-radius-md);
    padding: 1.15rem 1.75rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    transform: rotateX(12deg) translateZ(0);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.arch-layer:hover {
    border-color: var(--color-brand-red);
    transform: rotateX(4deg) translateZ(12px);
    box-shadow: 0 12px 25px rgba(211, 20, 36, 0.15);
}

.arch-layer.active {
    border-color: var(--color-brand-red);
    background: rgba(211, 20, 36, 0.04);
    transform: rotateX(0deg) translateZ(20px);
    box-shadow: 0 15px 30px rgba(211, 20, 36, 0.22);
}

.layer-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.layer-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-brand-red);
    letter-spacing: 0.1em;
    flex-shrink: 0;
    border: 1px solid rgba(211, 20, 36, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.layer-text {
    flex: 1;
}

.layer-text h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.layer-text p {
    font-size: 0.72rem;
    color: #9ca3af;
    line-height: 1.3;
}

/* Panel de Detalles de Arquitectura */
.architecture-details-panel {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

.arch-detail-card {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.arch-detail-card.active {
    display: block;
    opacity: 1;
}

.arch-detail-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.arch-detail-card p {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.detail-layer-num {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-brand-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.35rem;
}

.arch-detail-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.arch-detail-card li {
    font-size: 0.75rem;
    color: #e5e7eb;
    position: relative;
    padding-left: 1rem;
}

.arch-detail-card li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 5px;
    width: 5px;
    height: 5px;
    background-color: var(--color-brand-red);
    border-radius: 50%;
}

/* Industrias Críticas */
.industries-section {
    background-color: var(--color-bg-secondary);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.industry-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    transition: all var(--transition-normal);
}

.industry-card:hover {
    box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.05);
    border-color: var(--color-border-red);
}

.industry-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.industry-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-brand-red-light);
    color: var(--color-brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.industry-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Footer Section */
.main-footer {
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-primary); /* solid white background to cover canvas nodes */
}

/* Footer CTA Banner */
.footer-cta-banner {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
    text-align: center;
}

.footer-cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

/* Timeline steps */
.timeline-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto 3.5rem auto;
    gap: 1.5rem;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-brand-red);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 10px rgba(211, 20, 36, 0.3);
}

.timeline-step h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-step p {
    font-size: 0.85rem;
    color: #9ca3af;
    max-width: 200px;
    line-height: 1.4;
}

.timeline-arrow {
    align-self: center;
    margin-top: -30px;
    color: #4b5563;
}

.footer-cta-btn-wrap {
    margin-top: 1rem;
}

/* Footer Bottom Info */
.footer-bottom-info {
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 5rem 1.5rem 3.5rem 1.5rem;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    width: 240px; /* matches width in red box */
    height: 75px; /* matches height in red box */
    object-fit: contain; /* pre-cropped logo, maintain aspect ratio */
    align-self: flex-start;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    max-width: 250px;
    line-height: 1.5;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-links a:hover {
    color: var(--color-brand-red);
}

.footer-links li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Copyright Row */
.footer-copyright {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.copyright-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.legal-links a:hover {
    color: var(--color-brand-red);
}

/* Dialog / Modal CSS */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.dialog-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dialog-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 640px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    padding: 3rem;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.dialog-overlay.active .dialog-card {
    transform: scale(1);
}

.dialog-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    line-height: 1;
    outline: none;
}

.dialog-close-btn:hover {
    color: var(--color-text-primary);
}

.dialog-progress-bar {
    height: 4px;
    width: 100%;
    background-color: var(--color-bg-tertiary);
    border-radius: var(--border-radius-full);
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background-color: var(--color-brand-red);
    transition: width var(--transition-normal);
}

.dialog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Wizard steps */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

.wizard-instruction {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

/* Grid Options (Clickable Cards) */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card-label {
    cursor: pointer;
}

.option-card-label input[type="radio"],
.option-card-label input[type="checkbox"] {
    display: none;
}

.option-card-content {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    background-color: #ffffff;
    transition: all var(--transition-normal);
}

.option-card-content:hover {
    border-color: var(--color-brand-red);
    background-color: var(--color-bg-secondary);
}

/* Selected State */
.option-card-label input[type="radio"]:checked + .option-card-content,
.option-card-label input[type="checkbox"]:checked + .option-card-content {
    border-color: var(--color-brand-red);
    background-color: var(--color-brand-red-light);
    box-shadow: 0 0 0 1px var(--color-brand-red);
}

.option-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-primary);
}

/* Form Fields Step 3 */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.form-group input {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    outline: none;
    transition: border-color var(--transition-normal);
}

.form-group input:focus {
    border-color: var(--color-brand-red);
}

/* Success Wizard view */
.success-message {
    text-align: center;
    padding: 1.5rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-brand-red-light);
    color: var(--color-brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.success-message h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    max-width: 450px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
}

.email-notice {
    font-size: 0.85rem !important;
    color: var(--color-text-muted) !important;
}

/* Wizard Navigation Buttons */
.wizard-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

/* Keyframes & Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ==========================================================================
   MEDIA QUERIES (Responsive Design)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .tesis-grid,
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .panel-grid-2col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .architecture-stack-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .architecture-details-panel {
        min-height: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: #ffffff;
        overflow: hidden;
        transition: height var(--transition-normal);
        border-bottom: 0 solid var(--color-border);
    }
    
    .main-header.menu-open .nav-menu {
        height: 300px;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .btn-header-cta {
        display: none; /* Hide header button on smaller devices to save space */
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tesis-grid,
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Responsive Solutions Dashboard */
    .solutions-dashboard {
        flex-direction: column;
        gap: 1.5rem;
    }

    .dashboard-tabs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
    }

    .db-tab-btn {
        flex-shrink: 0;
        width: auto;
        padding: 0.75rem 1rem;
    }

    .db-tab-desc {
        display: none;
    }

    .db-tab-btn.active, .db-tab-btn:hover {
        transform: none;
    }

    .dashboard-panels {
        padding: 1.5rem;
        min-height: auto;
    }

    .panel-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .panel-logo-wrap {
        align-self: flex-start;
    }

    .domains-grid {
        grid-template-columns: 1fr;
    }

    .agentic-actions-grid {
        grid-template-columns: 1fr;
    }

    .team-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Responsive Architecture Stack */
    .arch-layer {
        transform: none !important;
        padding: 1rem;
    }

    .arch-layer:hover, .arch-layer.active {
        transform: none !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .timeline-steps {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    
    .timeline-arrow {
        transform: rotate(90deg);
        margin: -15px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-copyright {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .dialog-card {
        padding: 2rem;
    }

    .option-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations helper classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}
