/* ==========================================================================
   JOSÉ BÁNQUEZ - PORTAFOLIO POWER BI & BUSINESS INTELLIGENCE
   Paleta Oficial Extraída Directamente del Logo JB:
   - Fondo: Blanco Puro (#ffffff) & Superficie Luminosa (#f8fafc / #f0f7ff)
   - Color 1 (J & "JOSE"): Azul Marino Corporativo (#112d55)
   - Color 2 (B & "BANQUEZ"): Cian Celeste Eléctrico (#01c0f4)
   ========================================================================== */

:root {
    /* Paleta Oficial de la Marca */
    --brand-navy: #112d55;
    --brand-navy-light: #1b3d6e;
    --brand-navy-dark: #0a1c36;
    --brand-cyan: #01c0f4;
    --brand-cyan-hover: #00a4d4;
    --brand-cyan-light: #e6f9fd;
    --brand-cyan-glow: rgba(1, 192, 244, 0.35);

    /* Fondos Limpios y Corporativos (Modo Claro) */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --bg-navy-section: #112d55;
    --bg-glass: rgba(255, 255, 255, 0.94);

    /* Acentos y Gradientes */
    --accent-primary: #01c0f4;
    --accent-hover: #00a4d4;
    --accent-navy: #112d55;
    --accent-emerald: #10b981;
    --grad-primary: linear-gradient(135deg, #112d55 0%, #01c0f4 100%);
    --grad-cyan: linear-gradient(135deg, #01c0f4 0%, #0098cc 100%);
    --grad-navy: linear-gradient(135deg, #112d55 0%, #1b3d6e 100%);
    --grad-glow: radial-gradient(circle, rgba(1, 192, 244, 0.15) 0%, rgba(17, 45, 85, 0.05) 50%, transparent 70%);

    /* Tipografía y Textos */
    --text-primary: #112d55;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --text-accent: #01c0f4;

    /* Bordes y Sombras */
    --border-subtle: #e2e8f0;
    --border-card: #e2e8f0;
    --border-active: #01c0f4;
    --shadow-sm: 0 2px 8px rgba(17, 45, 85, 0.06);
    --shadow-md: 0 8px 24px rgba(17, 45, 85, 0.09);
    --shadow-lg: 0 16px 40px rgba(17, 45, 85, 0.13);
    --shadow-cyan: 0 4px 18px rgba(1, 192, 244, 0.35);

    /* Layout */
    --max-w: 1200px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   VARIABLES DE MODO OSCURO (DATA-THEME="DARK")
   ========================================================================== */
[data-theme="dark"] {
    --brand-navy: #f8fafc;
    --brand-navy-light: #cbd5e1;
    --brand-navy-dark: #070d18;
    --brand-cyan: #01c0f4;
    --brand-cyan-hover: #38bdf8;
    --brand-cyan-light: rgba(1, 192, 244, 0.14);

    --bg-main: #070d18;
    --bg-surface: #0d1728;
    --bg-card: #12213a;
    --bg-card-subtle: #182c4c;
    --bg-glass: rgba(13, 23, 40, 0.94);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-card: rgba(255, 255, 255, 0.09);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
    --shadow-cyan: 0 4px 18px rgba(1, 192, 244, 0.45);
}

/* Reset y Estilos Globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, .nav-logo {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    color: var(--brand-navy);
    line-height: 1.25;
}

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

ul {
    list-style: none;
}

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

button, input, select, textarea {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.app-main-content {
    flex: 1;
}

/* ==========================================================================
   SISTEMA DE VISTAS DINÁMICAS (SPA)
   ========================================================================== */

.app-view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.page-header {
    padding-top: 130px;
    padding-bottom: 70px;
    min-height: 75vh;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand-navy);
    margin-bottom: 14px;
}

.page-title.text-left {
    text-align: left;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 720px;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ==========================================================================
   UTILIDADES & COMPONENTES REUTILIZABLES
   ========================================================================== */

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-accent {
    color: var(--brand-cyan) !important;
}

.text-navy {
    color: var(--brand-navy) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

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

.section-title-wrap {
    margin-bottom: 48px;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--brand-cyan-light);
    border: 1px solid rgba(1, 192, 244, 0.35);
    border-radius: var(--radius-full);
    color: var(--brand-navy);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-heading {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--brand-navy);
}

.section-heading.text-left {
    text-align: left;
}

.section-subheading {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.88rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--brand-cyan);
    color: #ffffff;
    box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
    background: var(--brand-cyan-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(1, 192, 244, 0.5);
}

.btn-secondary {
    background: #ffffff;
    color: var(--brand-navy);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-card-subtle);
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--brand-navy);
    border: 1.5px solid var(--brand-navy);
}

.btn-outline:hover {
    background: var(--brand-navy);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
    box-shadow: 0 2px 14px rgba(17, 45, 85, 0.05);
    transition: var(--transition);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    cursor: pointer;
}

.logo-box {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(17, 45, 85, 0.1);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
    overflow: hidden;
    transition: var(--transition);
}

.nav-logo:hover .logo-box {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(1, 192, 244, 0.35);
    border-color: var(--brand-cyan);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    display: flex;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
}

.brand-dark {
    color: var(--brand-navy);
    font-weight: 800;
}

.brand-dark-footer {
    color: #ffffff;
    font-weight: 800;
}

.brand-cyan {
    color: var(--brand-cyan);
    font-weight: 800;
}

.logo-tagline {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

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

.nav-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-navy);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

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

.nav-item:hover {
    color: var(--brand-cyan);
    background: var(--brand-cyan-light);
}

.nav-item:hover .nav-icon {
    color: var(--brand-cyan);
}

.nav-item.active {
    color: #ffffff;
    background: var(--brand-navy);
    box-shadow: 0 4px 12px rgba(17, 45, 85, 0.25);
}

.nav-item.active .nav-icon {
    color: var(--brand-cyan);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--brand-navy);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    transform: rotate(18deg) scale(1.06);
}

.theme-icon-sun {
    display: none;
    color: #f59e0b;
}

.theme-icon-moon {
    display: block;
    color: var(--brand-navy);
}

/* Overrides para Modo Oscuro */
[data-theme="dark"] .theme-toggle-btn {
    background: #12213a;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 12px rgba(1, 192, 244, 0.25);
}

[data-theme="dark"] .theme-icon-sun {
    display: block;
}

[data-theme="dark"] .theme-icon-moon {
    display: none;
}

[data-theme="dark"] .navbar {
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero-section {
    background: radial-gradient(ellipse at top right, rgba(1, 192, 244, 0.18) 0%, transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(17, 45, 85, 0.35) 0%, transparent 60%);
}

[data-theme="dark"] .pill-item,
[data-theme="dark"] .dashboard-mockup-card,
[data-theme="dark"] .mockup-kpi,
[data-theme="dark"] .mockup-chart-box,
[data-theme="dark"] .stats-section,
[data-theme="dark"] .search-box input,
[data-theme="dark"] .filter-tabs,
[data-theme="dark"] .project-card,
[data-theme="dark"] .detail-main-card,
[data-theme="dark"] .detail-kpi-box,
[data-theme="dark"] .service-box,
[data-theme="dark"] .process-step,
[data-theme="dark"] .about-card-profile,
[data-theme="dark"] .skill-mini-card,
[data-theme="dark"] .contact-form-card,
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form select,
[data-theme="dark"] .contact-form textarea,
[data-theme="dark"] .social-icon {
    background: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

[data-theme="dark"] .mockup-header,
[data-theme="dark"] .viewer-header {
    background: #0d1728;
}

[data-theme="dark"] .category-tag {
    background: #0d1728;
    color: var(--brand-cyan);
}

[data-theme="dark"] .nav-item {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-item:hover {
    color: var(--brand-cyan);
    background: var(--brand-cyan-light);
}

[data-theme="dark"] .nav-item.active {
    background: var(--brand-cyan);
    color: #ffffff;
}

[data-theme="dark"] .nav-item.active .nav-icon {
    color: #ffffff;
}

[data-theme="dark"] .filter-btn {
    color: var(--text-secondary);
}

[data-theme="dark"] .filter-btn.active {
    background: var(--brand-cyan);
    color: #ffffff;
}

[data-theme="dark"] .btn-secondary {
    background: #12213a;
    color: #ffffff;
    border-color: var(--border-subtle);
}

[data-theme="dark"] .btn-outline {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--brand-cyan);
    color: #ffffff;
}

[data-theme="dark"] .mobile-toggle .bar {
    background: #ffffff;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2.5px;
    background: var(--brand-navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================================================
   VISTA 1: HERO & HOME
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 150px 0 80px;
    background: radial-gradient(ellipse at top right, rgba(1, 192, 244, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(17, 45, 85, 0.08) 0%, transparent 60%);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.hero-glow-1 {
    top: -100px;
    right: -100px;
    background: rgba(1, 192, 244, 0.25);
}

.hero-glow-2 {
    bottom: -150px;
    left: -100px;
    background: rgba(17, 45, 85, 0.15);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-cyan-light);
    border: 1px solid rgba(1, 192, 244, 0.4);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    color: var(--brand-navy);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--brand-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
    color: var(--brand-navy);
}

.hero-subtitle {
    font-size: 1.18rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 34px;
    max-width: 580px;
}

.hero-subtitle strong {
    color: var(--brand-navy);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-navy);
    box-shadow: var(--shadow-sm);
}

.pill-item i {
    color: var(--brand-cyan);
}

/* Tarjeta Mockup en Hero */
.dashboard-mockup-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.dashboard-mockup-card:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(17, 45, 85, 0.16);
}

.mockup-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.mockup-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.live-tag {
    background: var(--brand-cyan-light);
    color: var(--brand-cyan);
    border: 1px solid rgba(1, 192, 244, 0.4);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.06em;
}

.mockup-body {
    padding: 22px;
}

.mockup-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.mockup-kpi {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.kpi-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-navy);
    font-family: 'Outfit', sans-serif;
}

.kpi-badge {
    font-size: 0.72rem;
    margin-top: 4px;
    font-weight: 700;
}

.kpi-badge.positive { color: #10b981; }
.kpi-badge.neutral { color: var(--brand-cyan); }

.mockup-chart-box {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 16px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 10px;
}

.chart-header .legend {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.chart-header .leg-color {
    width: 8px;
    height: 8px;
    background: var(--brand-cyan);
    border-radius: 50%;
}

.chart-svg-wrap {
    height: 120px;
    width: 100%;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.mockup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 6px;
}

/* ==========================================================================
   MÉTRICAS / STATS STRIP
   ========================================================================== */

.stats-section {
    padding: 50px 0;
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 16px rgba(17, 45, 85, 0.04);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-icon {
    width: 54px;
    height: 54px;
    background: var(--brand-cyan-light);
    border: 1px solid rgba(1, 192, 244, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-cyan);
    font-size: 1.45rem;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-navy);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.stat-plus, .stat-percent {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-cyan);
    margin-left: 2px;
}

.stat-label {
    width: 100%;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Home Featured Section */
.home-featured-section {
    padding: 90px 0;
}

.home-more-action {
    margin-top: 48px;
}

/* Home CTA Banner */
.home-cta-banner {
    padding: 0 0 90px;
}

.cta-inner-card {
    background: var(--grad-primary);
    border-radius: var(--radius-lg);
    padding: 48px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(17, 45, 85, 0.25);
}

.cta-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-btn .btn-primary {
    background: #ffffff;
    color: var(--brand-navy);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cta-btn .btn-primary:hover {
    background: var(--brand-cyan);
    color: #ffffff;
}

/* ==========================================================================
   VISTA 2: GALERÍA DE DASHBOARDS
   ========================================================================== */

.gallery-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    max-width: 520px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 13px 18px 13px 44px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--brand-navy);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(1, 192, 244, 0.2);
}

.filter-tabs {
    display: inline-flex;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 6px;
    border-radius: var(--radius-full);
    gap: 6px;
    overflow-x: auto;
    max-width: 100%;
    box-shadow: var(--shadow-sm);
}

.filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--brand-navy);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--brand-cyan);
}

.filter-btn.active {
    background: var(--brand-navy);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(17, 45, 85, 0.25);
}

/* Grilla de Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-cyan);
    box-shadow: 0 16px 36px rgba(17, 45, 85, 0.12);
}

.card-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #0f1f38;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    background-size: cover;
    background-position: center;
}

/* Fondos Temáticos para Dashboards */
.finance-bg { background: linear-gradient(135deg, #112d55 0%, #1c477d 100%); }
.revenue-bg { background: linear-gradient(135deg, #0e3753 0%, #01c0f4 100%); }
.sales-bg { background: linear-gradient(135deg, #18223c 0%, #0e4470 100%); }
.ops-bg { background: linear-gradient(135deg, #112d55 0%, #0093be 100%); }
.supply-bg { background: linear-gradient(135deg, #093b45 0%, #01c0f4 100%); }
.hr-bg { background: linear-gradient(135deg, #152445 0%, #204e8a 100%); }

.visual-badge {
    background: rgba(17, 45, 85, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(1, 192, 244, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.visual-badge i {
    color: var(--brand-cyan);
}

.placeholder-overlay {
    display: flex;
    gap: 8px;
}

.kpi-preview-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.category-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 10px;
    line-height: 1.35;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.tools-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tool-tag {
    background: var(--brand-cyan-light);
    border: 1px solid rgba(1, 192, 244, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.card-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

/* ==========================================================================
   VISTA 3: DETALLE DEL DASHBOARD
   ========================================================================== */

.detail-container {
    padding-top: 130px;
    padding-bottom: 90px;
    min-height: 80vh;
}

.detail-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.detail-crumb {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--brand-navy);
    background: var(--brand-cyan-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(1, 192, 244, 0.35);
}

.detail-main-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-lg);
}

.detail-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.detail-viewer-box {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: var(--shadow-md);
}

.viewer-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.viewer-screen {
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.viewer-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.detail-grid-info {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 36px;
}

.detail-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 24px;
}

.detail-kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.detail-kpi-box {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

.detail-kpi-box strong {
    color: var(--brand-navy);
    font-size: 1rem;
    margin-bottom: 4px;
}

.detail-kpi-box span {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.detail-bottom-actions {
    display: flex;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   VISTA 4: SERVICIOS & METODOLOGÍA
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.service-box {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-box:hover {
    transform: translateY(-6px);
    border-color: var(--brand-cyan);
    box-shadow: 0 16px 36px rgba(17, 45, 85, 0.12);
}

.service-icon {
    width: 58px;
    height: 58px;
    background: var(--brand-cyan-light);
    border: 1px solid rgba(1, 192, 244, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-cyan);
    font-size: 1.5rem;
    margin-bottom: 22px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 12px;
}

.service-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--brand-navy);
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
    font-weight: 600;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-list i {
    color: var(--brand-cyan);
    font-size: 0.8rem;
}

/* Metodología */
.process-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 30px 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.process-step:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--brand-cyan);
    font-family: 'Outfit', sans-serif;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

.process-step h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   VISTA 5: SOBRE MÍ
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: center;
}

.about-card-profile {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 44px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.profile-avatar-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    position: relative;
}

.avatar-logo-box {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    margin: 0 auto;
    box-shadow: 0 6px 24px rgba(1, 192, 244, 0.3);
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 6px;
}

.profile-role {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-cyan);
    margin-bottom: 14px;
}

.profile-location {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-navy);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--brand-cyan);
    color: #ffffff;
    border-color: var(--brand-cyan);
    transform: translateY(-2px);
}

.accent-line {
    width: 60px;
    height: 4px;
    background: var(--brand-cyan);
    margin: 16px 0 24px;
    border-radius: 2px;
}

.lead-text {
    font-size: 1.18rem;
    color: var(--brand-navy);
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-text-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 26px 0 34px;
}

.about-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--brand-navy);
}

.skills-block-wrap {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--border-subtle);
}

.skills-subtitle {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skills-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.skill-mini-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-navy);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   VISTA 6: CONTACTO
   ========================================================================= */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 34px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.item-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-cyan-light);
    border: 1px solid rgba(1, 192, 244, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-cyan);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.item-title {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.item-val {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 38px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 22px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--brand-navy);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(1, 192, 244, 0.2);
}

.form-feedback {
    margin-top: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-feedback.success {
    display: block;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #047857;
}

.form-feedback.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

/* ==========================================================================
   FOOTER (EN AZUL MARINO CORPORATIVO OFICIAL #112d55)
   ========================================================================== */

.footer {
    background: var(--brand-navy);
    color: #ffffff;
    border-top: 1px solid var(--brand-navy-light);
    padding: 55px 0 35px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 8px;
    max-width: 360px;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.footer-nav a:hover {
    color: var(--brand-cyan);
}

.footer-right {
    text-align: right;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-link {
    color: var(--brand-cyan);
    font-weight: 700;
}

.footer-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

/* ==========================================================================
   RESPONSIVIDAD (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 34px;
    }

    .hero-actions, .hero-pills {
        justify-content: center;
    }

    .hero-visual {
        max-width: 580px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid, .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid-info {
        grid-template-columns: 1fr;
    }

    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-inner-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        box-shadow: 0 10px 25px rgba(17, 45, 85, 0.12);
        transform: translateY(-120%);
        transition: var(--transition);
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        text-align: center;
    }

    .mobile-toggle {
        display: flex;
    }

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

    .page-title {
        font-size: 2.1rem;
    }

    .section-heading {
        font-size: 1.9rem;
    }

    .projects-grid, .services-grid, .process-steps, .skills-mini-grid {
        grid-template-columns: 1fr;
    }

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

    .mockup-kpis {
        grid-template-columns: 1fr;
    }

    .detail-main-card {
        padding: 24px;
    }

    .viewer-screen {
        height: 320px;
    }
}
