/* VARIABLES DEL SISTEMA DE DISEÑO */
:root {
    --naranja: #F7780A;
    --naranja-rgb: 247, 120, 10;
    --azul: #01195F;
    --azul-rgb: 1, 25, 95;
    
    --negro: #000000;
    --negro-secondary: #06070a;
    --gris-card: #0d0e12;
    --gris-card-hover: #14161f;
    --gris-borde: #1e2230;
    --gris-texto: #94a3b8;
    --blanco: #ffffff;
    
    --fuente-titulo: 'Outfit', 'Inter', sans-serif;
    --fuente-cuerpo: 'Inter', sans-serif;
    
    --transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sombra-glow: 0 0 20px rgba(247, 120, 10, 0.25);
    --sombra-glow-blue: 0 0 20px rgba(1, 25, 95, 0.4);
    
    --header-height: 80px;
}

/* RESET GENERAL Y TIPOGRAFÍA */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--negro);
    color: var(--blanco);
    font-family: var(--fuente-cuerpo);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--negro);
}

/* CANVAS DE PARTÍCULAS */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

main {
    position: relative;
    z-index: 2;
}

/* SCROLLBAR PERSONALIZADO */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--negro);
}
::-webkit-scrollbar-thumb {
    background: #1c1d24;
    border-radius: 4px;
    border: 2px solid var(--negro);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--naranja);
}

/* ENLACES Y ELEMENTOS REUTILIZABLES */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transicion);
}

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

input, textarea, button, select {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.bg-dark-secondary {
    background-color: var(--negro-secondary);
}

.divider {
    height: 1px;
    background: var(--gris-borde);
    width: 100%;
    margin: 24px 0;
}

/* TEXTO DE DEGRADADO (GRADIENT TEXT) */
.gradient-text {
    background: linear-gradient(135deg, var(--blanco) 30%, var(--naranja) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Aísla el texto en su propia capa de composición: evita el
       doble renderizado ("fantasma") que algunos navegadores móviles
       muestran al combinar background-clip:text con transform/blur
       en elementos ancestros. */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.text-primary { color: var(--naranja); }
.text-blue { color: #3b82f6; }
.text-green { color: #10b981; }
.text-yellow { color: #eab308; }
.text-red { color: #ef4444; }

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

/* HEADER / NAVEGACIÓN STICKY */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    transition: var(--transicion);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.nav-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transicion);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gris-texto);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--blanco);
}

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

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

/* BOTÓN CTA EN MENÚ */
.btn-cta-outline {
    border: 1px solid var(--naranja);
    color: var(--blanco) !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    font-weight: 600;
    background: rgba(247, 120, 10, 0.05);
}

.btn-cta-outline::after {
    display: none !important;
}

.btn-cta-outline:hover {
    background: var(--naranja);
    box-shadow: var(--sombra-glow);
    transform: translateY(-2px);
}

/* MENÚ MÓVIL */
.mobile-menu-toggle {
    display: none;
    color: var(--blanco);
    cursor: pointer;
    font-size: 1.5rem;
}

/* BOTONES PREMIUM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transicion);
}

.btn-primary {
    background: var(--naranja);
    color: var(--blanco);
    box-shadow: var(--sombra-glow);
}

.btn-primary:hover {
    background: #e06505;
    box-shadow: 0 0 30px rgba(247, 120, 10, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--blanco);
    border: 1px solid var(--gris-borde);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gris-texto);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.btn-outline-xs {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gris-texto);
    background: transparent;
}
.btn-outline-xs:hover {
    color: var(--blanco);
    border-color: var(--gris-texto);
}

/* SECTION HEADER */
.section-header {
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--naranja);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--fuente-titulo);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-description {
    color: var(--gris-texto);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: calc(var(--header-height) + 40px);
    overflow: hidden;
}

/* Resplandores del Hero */
.hero-glow-1 {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(247, 120, 10, 0.08) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(1, 25, 95, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--naranja);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--naranja);
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--fuente-titulo);
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--gris-texto);
    max-width: 750px;
    margin: 0 auto 40px;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-subtitle .static-text {
    display: block;
}

.hero-subtitle .dynamic-text-wrap {
    display: block;
    color: var(--blanco);
    font-weight: 600;
    min-height: 1.5em; /* Previene el layout shift al escribir */
}

.hero-subtitle .cursor {
    color: var(--naranja);
    animation: blink 0.8s infinite;
    font-weight: 700;
    margin-left: 2px;
}

@media (max-width: 768px) {
    .hero-subtitle .dynamic-text-wrap {
        min-height: 3em; /* Espacio para 2 líneas en móvil sin mover los botones inferiores */
    }
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Indicador de Scroll */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gris-texto);
    z-index: 3;
    opacity: 0.7;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--gris-borde);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--naranja);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

/* SHOWCASE TABS */
.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--gris-card);
    border: 1px solid var(--gris-borde);
    border-radius: 12px;
    color: var(--gris-texto);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transicion);
}

.tab-btn i {
    width: 20px;
    height: 20px;
    transition: var(--transicion);
}

.tab-btn:hover {
    color: var(--blanco);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--blanco);
    background: rgba(247, 120, 10, 0.05);
    border-color: var(--naranja);
    box-shadow: 0 0 25px rgba(247, 120, 10, 0.1);
}

.tab-btn.active i {
    color: var(--naranja);
}

/* SHOWCASE CONTENT */
.showcase-content-box {
    background: rgba(13, 14, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gris-borde);
    border-radius: 24px;
    padding: 48px;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.showcase-info h3 {
    font-family: var(--fuente-titulo);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.orange-glow {
    background: rgba(247, 120, 10, 0.1);
    color: var(--naranja);
    border: 1px solid rgba(247, 120, 10, 0.2);
    box-shadow: var(--sombra-glow);
}

.blue-glow {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.showcase-text {
    color: var(--gris-texto);
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.showcase-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.showcase-features li i {
    width: 18px;
    height: 18px;
}

/* CARDS INTERACTIVAS DE DEMOSTRACIÓN */
.interactive-card {
    background: #07080a;
    border: 1px solid var(--gris-borde);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    height: 420px;
    display: flex;
    flex-direction: column;
    transition: var(--transicion);
}

.interactive-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header-bar {
    background: #0b0c10;
    padding: 12px 18px;
    border-bottom: 1px solid var(--gris-borde);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-title-text {
    font-size: 0.8rem;
    color: var(--gris-texto);
    margin-left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-title-text i {
    width: 12px;
    height: 12px;
}

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

.flex-center-column {
    justify-content: center;
    align-items: center;
}

.demo-instruction {
    font-size: 0.9rem;
    color: var(--gris-texto);
    margin-bottom: 16px;
    text-align: center;
}

/* DEMO 1: SPEED SIMULATOR */
.performance-metrics {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.metric-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.metric-number {
    position: absolute;
    top: 25px;
    font-size: 1.25rem;
    font-weight: 700;
    transition: var(--transicion);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--gris-texto);
    margin-top: 8px;
    text-align: center;
}

.demo-feedback-text {
    font-size: 0.85rem;
    color: var(--gris-texto);
    margin-top: 14px;
    transition: var(--transicion);
}

/* DEMO 2: E-COMMERCE MINI */
.demo-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 14px;
    color: var(--blanco);
}

.cart-icon-status {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid var(--gris-borde);
    position: relative;
    transition: var(--transicion);
}

.cart-icon-status:hover {
    border-color: #3b82f6;
}

.cart-badge {
    background: #3b82f6;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.demo-product-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--gris-borde);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transicion);
}

.demo-product-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.prod-details {
    display: flex;
    flex-direction: column;
}

.prod-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.prod-price {
    font-size: 0.75rem;
    color: var(--gris-texto);
}

.demo-cart-preview {
    margin-top: auto;
    font-size: 0.8rem;
}

.cart-items-container {
    max-height: 80px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    color: var(--gris-texto);
    animation: fadeIn 0.3s ease;
}

.empty-cart-text {
    text-align: center;
    color: var(--gris-texto);
    font-style: italic;
    padding: 8px 0;
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cart-total {
    font-size: 0.85rem;
}

.cart-total strong {
    font-size: 1rem;
    color: #3b82f6;
    margin-left: 4px;
}

/* DEMO 3: CUSTOM SOLUTIONS DASHBOARD */
.dashboard-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.dash-tab-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--gris-borde);
    background: rgba(255,255,255,0.02);
    color: var(--gris-texto);
    cursor: pointer;
    transition: var(--transicion);
    flex: 1;
    text-align: center;
}

.dash-tab-btn:hover, .dash-tab-btn.active {
    color: var(--blanco);
    border-color: var(--naranja);
    background: rgba(247, 120, 10, 0.05);
}

.dashboard-chart-area {
    border: 1px solid var(--gris-borde);
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-svg {
    width: 100%;
    height: auto;
    max-height: 140px;
    overflow: visible;
}

#chart-line {
    transition: d 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#chart-area {
    transition: d 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-quick-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--gris-borde);
    padding-top: 12px;
    margin-top: 12px;
}

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

.stat-lbl {
    font-size: 0.7rem;
    color: var(--gris-texto);
}

.stat-val {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-val i {
    width: 14px;
    height: 14px;
    animation: blink 1.2s infinite;
}

/* CONFIGURADOR DE PROYECTOS (COTIZADOR) */
.configurator-section {
    background-color: var(--negro-secondary);
}

.configurator-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
    margin-top: 50px;
}

.configurator-options-card {
    background: rgba(13, 14, 18, 0.6);
    border: 1px solid var(--gris-borde);
    border-radius: 20px;
    padding: 32px;
}

.config-step {
    margin-bottom: 32px;
}

.config-step:last-child {
    margin-bottom: 0;
}

.step-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--blanco);
}

.step-num {
    background: var(--naranja);
    color: var(--blanco);
    font-size: 0.85rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.config-options-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.config-radio-card, .config-checkbox-card {
    position: relative;
    cursor: pointer;
}

.config-radio-card input, .config-checkbox-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-content, .checkbox-card-content {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--gris-borde);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
    transition: var(--transicion);
}

.radio-card-content i, .checkbox-card-content i {
    width: 28px;
    height: 28px;
    color: var(--gris-texto);
    transition: var(--transicion);
}

.radio-card-content span, .checkbox-card-content span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gris-texto);
    transition: var(--transicion);
}

.config-radio-card input:checked + .radio-card-content,
.config-checkbox-card input:checked + .checkbox-card-content {
    border-color: var(--naranja);
    background: rgba(247, 120, 10, 0.04);
    box-shadow: 0 0 20px rgba(247, 120, 10, 0.08);
}

.config-radio-card input:checked + .radio-card-content i,
.config-checkbox-card input:checked + .checkbox-card-content i {
    color: var(--naranja);
}

.config-radio-card input:checked + .radio-card-content span,
.config-checkbox-card input:checked + .checkbox-card-content span {
    color: var(--blanco);
}

.config-checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* RESULTADOS PANEL */
.configurator-results-panel {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.results-card {
    background: rgba(13, 14, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gris-borde);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.results-card h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.results-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-stat-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-stat-box .stat-label {
    font-size: 0.85rem;
    color: var(--gris-texto);
}

.progress-bar-container {
    height: 6px;
    background: #14161f;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
}

.progress-bar-fill {
    height: 100%;
    background: var(--naranja);
    box-shadow: 0 0 10px var(--naranja);
    width: 0;
    transition: width 0.5s ease;
}

.result-stat-box .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blanco);
    transition: var(--transicion);
}

/* BARRA FLOTANTE DE RESUMEN MÓVIL */
.mobile-summary-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 11, 15, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--gris-borde);
    padding: 14px 24px;
    z-index: 999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-summary-bar.visible {
    transform: translateY(0);
}

.mobile-summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.mobile-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.mobile-stat-lbl {
    font-size: 0.72rem;
    color: var(--gris-texto);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mobile-stat-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blanco);
    transition: var(--transicion);
}

.mobile-summary-btn {
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    border-radius: 6px !important;
    margin: 0;
}

@media (max-width: 1024px) {
    .mobile-summary-bar {
        display: block;
    }
}

/* FORMULARIO DE DETALLES DEL CLIENTE */
.user-details-form {
    margin-top: 10px;
    transition: var(--transicion);
}

.user-details-form h4 {
    font-size: 0.9rem;
    color: var(--gris-texto);
    margin-bottom: 16px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gris-texto);
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--gris-borde);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--blanco);
    font-size: 0.9rem;
    transition: var(--transicion);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--naranja);
    background: rgba(247, 120, 10, 0.02);
    box-shadow: 0 0 15px rgba(247, 120, 10, 0.08);
}

/* ANIMACIONES Y SUCCESS EN COTIZADOR */
.email-sending-animation {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 14, 18, 0.95);
    z-index: 5;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px;
}

.animation-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.envelope {
    position: relative;
    font-size: 2.5rem;
    color: var(--naranja);
}

.envelope .icon-mail {
    width: 48px;
    height: 48px;
    animation: bounce 2s infinite;
}

.envelope .icon-sparkle {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    color: #eab308;
    animation: pulse 1s infinite alternate;
}

.email-success-message {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 14, 18, 0.98);
    z-index: 6;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px;
    animation: fadeIn 0.4s ease;
}

.success-icon {
    width: 56px;
    height: 56px;
    color: #10b981;
    margin-bottom: 20px;
}

.email-success-message h4 {
    font-family: var(--fuente-titulo);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.email-success-message p {
    color: var(--gris-texto);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.success-subtext {
    font-size: 0.8rem !important;
    color: #64748b !important;
    max-width: 260px;
    margin-bottom: 12px !important;
}

/* ECOSISTEMA TECNOLÓGICO */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.tech-card {
    background: rgba(13, 14, 18, 0.6);
    border: 1px solid var(--gris-borde);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transicion);
}

.tech-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.02);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.tech-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gris-borde);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon-container i {
    width: 22px;
    height: 22px;
}

.text-orange { color: var(--naranja); }
.text-blue { color: #3b82f6; }

.tech-card h4 {
    font-family: var(--fuente-titulo);
    font-size: 1.25rem;
    font-weight: 600;
}

.tech-desc {
    color: var(--gris-texto);
    font-size: 0.95rem;
}

/* SECCIÓN DE CONTACTO */
.contact-section {
    background-color: var(--negro);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info-panel h3 {
    font-family: var(--fuente-titulo);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-panel-desc {
    color: var(--gris-texto);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.contact-symbol-logo {
    width: 200px;
    height: auto;
}

.contact-brand-icon {
    width: auto;
    height: auto;
    background: none;
    border: none;
    box-shadow: none;
    justify-content: flex-start;
}

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

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

.contact-item i {
    width: 24px;
    height: 24px;
}

.contact-item .lbl {
    display: block;
    font-size: 0.8rem;
    color: var(--gris-texto);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-item .val {
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-item a.val:hover {
    color: var(--naranja);
    text-decoration: underline;
}

.contact-form-panel {
    position: relative;
}

.contact-card {
    background: rgba(13, 14, 18, 0.6);
    border: 1px solid var(--gris-borde);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.contact-card h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.contact-success-msg {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 14, 18, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px;
    animation: fadeIn 0.4s ease;
}

.contact-success-msg i {
    width: 50px;
    height: 50px;
    color: #10b981;
    margin-bottom: 16px;
}

.contact-success-msg h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.contact-success-msg p {
    color: var(--gris-texto);
    font-size: 0.95rem;
}

/* FOOTER */
footer {
    background: #040508;
    border-top: 1px solid var(--gris-borde);
    padding: 60px 0 30px;
    position: relative;
    z-index: 2;
}

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

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

.footer-logo {
    height: 50px;
    width: auto;
    margin: 0 auto 8px;
}

.footer-slogan {
    color: var(--naranja);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--gris-texto);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    width: 100%;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: #4b5563;
    font-size: 0.8rem;
}

/* RESPONSIVE DESIGN (MEDIA QUERIES) */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.4rem;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .configurator-grid {
        grid-template-columns: 1fr;
    }
    
    .configurator-results-panel {
        position: static;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .showcase-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .showcase-content-box {
        padding: 24px;
    }
    
    .config-options-group {
        grid-template-columns: 1fr;
    }
    
    .config-checkboxes-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* Navegación compacta en pantallas medianas */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

/* MOBILE NAVIGATION (el menú colapsa antes por la cantidad de enlaces) */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: left 0.4s ease;
        z-index: 99;
    }

    .nav-menu.mobile-active {
        left: 0;
    }

    .nav-link {
        font-size: 1.25rem;
    }
}

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

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 8px var(--naranja); opacity: 1; }
    50% { transform: scale(1.1); box-shadow: 0 0 16px var(--naranja); opacity: 0.8; }
    100% { transform: scale(1); box-shadow: 0 0 8px var(--naranja); opacity: 1; }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 22px; opacity: 0; }
    100% { top: 6px; opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ESTILOS DE LA SECCIÓN DE PRESENCIA DIGITAL */
.presence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
    align-items: stretch;
}

.presence-card {
    position: relative;
    background: rgba(13, 14, 18, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gris-borde);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.presence-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
    transition: opacity 0.3s ease;
}

/* Tarjeta del Problema */
.problem-card .presence-glow {
    background: #ef4444;
    top: -50px;
    right: -50px;
}

.problem-card:hover {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
    transform: translateY(-8px);
}

.problem-card:hover .presence-glow {
    opacity: 0.25;
}

/* Tarjeta de la Solución */
.solution-card .presence-glow {
    background: var(--naranja);
    bottom: -50px;
    left: -50px;
}

.solution-card:hover {
    border-color: rgba(247, 120, 10, 0.4);
    box-shadow: 0 0 35px rgba(247, 120, 10, 0.2);
    transform: translateY(-8px);
}

.solution-card:hover .presence-glow {
    opacity: 0.3;
}

/* Detalles internos */
.card-icon {
    font-size: 2.2rem;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.card-icon i {
    width: 28px;
    height: 28px;
}

.card-icon.text-red {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
}

.card-icon.text-orange,
.tech-icon-container.text-orange {
    color: var(--naranja);
    border-color: rgba(247, 120, 10, 0.2);
    background: rgba(247, 120, 10, 0.05);
}

.presence-card h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.problem-card h3 {
    color: #fca5a5;
}

.solution-card h3 {
    background: linear-gradient(135deg, var(--blanco) 40%, var(--naranja) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.presence-p {
    color: var(--gris-texto);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.presence-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.presence-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.5;
}

.item-bullet {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.item-bullet i {
    width: 20px !important;
    height: 20px !important;
    display: block;
}

.item-text {
    flex: 1;
    line-height: 1.5;
}

/* Rejilla de 2 columnas para el contenido de la solución */
.solution-list .item-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    flex: 1;
    align-items: flex-start;
}

.solution-list .item-title {
    font-weight: 700;
    color: var(--blanco);
    font-size: 0.95rem;
    line-height: 1.4;
}

.solution-list .item-desc {
    color: var(--gris-texto);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Responsividad para la rejilla de presencia */
@media (max-width: 992px) {
    .presence-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .presence-card {
        padding: 32px;
    }
}

/* En pantallas más pequeñas, los dos elementos de la lista se apilan para mejor legibilidad */
@media (max-width: 600px) {
    .solution-list .item-content {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .performance-metrics {
        gap: 12px;
        flex-wrap: wrap;
    }

    .progress-ring {
        width: 64px;
        height: 64px;
    }

    .metric-number {
        top: 19px;
        font-size: 1.05rem;
    }

    .metric-label {
        font-size: 0.7rem;
    }

    .showcase-content-box {
        padding: 16px;
    }

    .card-body {
        padding: 16px;
    }
}

/* ==========================================
   ESTILOS DE NUEVAS SECCIONES
========================================== */

/* 1. SECCIÓN DE SERVICIOS */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.service-card {
    background: rgba(13, 14, 18, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gris-borde);
    border-radius: 16px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transicion);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1;
    flex: 1 1 calc(50% - 24px);
    min-width: 300px;
    max-width: calc(50% - 12px);
}

.service-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(var(--naranja-rgb), 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transicion);
    pointer-events: none;
    z-index: -1;
}

.service-card:hover .service-card-glow {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--naranja-rgb), 0.35);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transicion);
}

.service-card:hover .service-icon-wrapper {
    background: rgba(var(--naranja-rgb), 0.1);
    border-color: rgba(var(--naranja-rgb), 0.2);
    transform: scale(1.05) rotate(5deg);
}

.service-card h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blanco);
}

.service-card p {
    color: var(--gris-texto);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 2. SECCIÓN DE TESTIMONIOS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.testimonial-card {
    background: rgba(13, 14, 18, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gris-borde);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transicion);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.testimonial-glow {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 100%, rgba(var(--azul-rgb), 0.25) 0%, transparent 60%);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
}

.star-icon {
    width: 16px;
    height: 16px;
    fill: #eab308;
    color: #eab308;
}

.testimonial-text {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--blanco);
    font-style: italic;
    flex-grow: 1;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--naranja) 0%, var(--azul) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--blanco);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blanco);
}

.company-link {
    font-size: 0.8rem;
    color: var(--naranja);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transicion);
}

.company-link:hover {
    color: var(--blanco);
}

.company-link i {
    width: 10px;
    height: 10px;
}

/* 3. SECCIÓN DE PREGUNTAS FRECUENTES (FAQ) */
.faq-accordion-container {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: rgba(13, 14, 18, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gris-borde);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transicion);
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--fuente-titulo);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blanco);
    text-align: left;
    transition: var(--transicion);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-chevron {
    width: 18px;
    height: 18px;
    color: var(--gris-texto);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
}

.faq-item.active {
    border-color: rgba(var(--naranja-rgb), 0.25);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--naranja);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-answer-content {
    padding: 0 28px 22px 28px;
    color: var(--gris-texto);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-answer-content p {
    padding: 0;
}

/* RESPONSIVIDAD PARA NUEVAS SECCIONES */
@media (max-width: 992px) {
    .services-grid {
        gap: 20px;
    }
    
    .service-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 10px);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        gap: 16px;
    }
    
    .service-card {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 32px 24px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 0.95rem;
    }
    
    .faq-answer-content {
        padding: 0 20px 18px 20px;
        font-size: 0.9rem;
    }
}

/* ==========================================
   MEJORAS: DINAMISMO Y NUEVAS SECCIONES
========================================== */

/* HEADER CON ESTADO SCROLLED */
#main-header.scrolled {
    height: 64px;
    background: rgba(0, 0, 0, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

#main-header.scrolled .nav-logo {
    height: 40px;
}

/* REVEAL ON SCROLL */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FRANJA DE ESTADÍSTICAS */
.stats-strip {
    position: relative;
    z-index: 2;
    padding: 48px 0;
    border-top: 1px solid var(--gris-borde);
    border-bottom: 1px solid var(--gris-borde);
    background: linear-gradient(180deg, rgba(247, 120, 10, 0.04) 0%, transparent 100%);
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: var(--fuente-titulo);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--blanco);
    line-height: 1.1;
}

.stat-number .stat-suffix {
    color: var(--naranja);
    font-size: 1.6rem;
    font-weight: 700;
}

.stat-caption {
    font-size: 0.9rem;
    color: var(--gris-texto);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* PORTAFOLIO DE PROYECTOS */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-browser {
    background: #07080a;
    border: 1px solid var(--gris-borde);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transicion);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.portfolio-card:hover .portfolio-browser {
    border-color: rgba(var(--naranja-rgb), 0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(var(--naranja-rgb), 0.12);
}

.portfolio-img-wrap {
    position: relative;
    aspect-ratio: 1366 / 900;
    overflow: hidden;
}

.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img-wrap img {
    transform: scale(1.04);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 8, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay,
.portfolio-overlay:focus-visible {
    opacity: 1;
}

.portfolio-info h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.portfolio-info p {
    color: var(--gris-texto);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--naranja);
    background: rgba(var(--naranja-rgb), 0.08);
    border: 1px solid rgba(var(--naranja-rgb), 0.25);
    border-radius: 50px;
    padding: 4px 12px;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* EDITOR DE CÓDIGO ANIMADO */
.code-editor-showcase {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.code-editor-card {
    height: 500px;
}

.code-editor-body {
    padding: 20px 24px;
    flex: 1;
    background: #07080a;
    overflow: auto;
    min-height: 0;
}

.code-pre {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #d4d4d8;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.code-cursor {
    color: var(--naranja);
    animation: blink 0.9s infinite;
    font-size: 0.85rem;
}

.code-editor-side h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Colores de sintaxis */
.tok-kw { color: #c586c0; }
.tok-fn { color: #dcdcaa; }
.tok-str { color: #ce9178; }
.tok-num { color: #b5cea8; }
.tok-cm { color: #6a9955; font-style: italic; }
.tok-var { color: #9cdcfe; }
.tok-cls { color: #4ec9b0; }

@media (max-width: 992px) {
    .code-editor-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* MARQUESINA DE TECNOLOGÍAS */
.tech-marquee {
    overflow: hidden;
    padding: 24px 0 40px;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.tech-marquee-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.tech-marquee:hover .tech-marquee-track {
    animation-play-state: paused;
}

.tech-marquee-track img {
    height: 44px;
    width: auto;
    opacity: 0.75;
    filter: grayscale(30%);
    transition: var(--transicion);
}

.tech-marquee-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.12);
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: var(--transicion);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    animation: whatsappPulse 2.2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.5; }
    70% { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 1024px) {
    .whatsapp-float {
        bottom: 20px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    /* No tapar la barra de resumen del cotizador en móvil */
    body:has(.mobile-summary-bar.visible) .whatsapp-float {
        bottom: 86px;
    }
}

/* NOTIFICACIONES TOAST */
.toast-container {
    position: fixed;
    bottom: 100px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background: var(--gris-card);
    border: 1px solid var(--gris-borde);
    border-left: 3px solid var(--naranja);
    border-radius: 10px;
    padding: 14px 20px;
    color: var(--blanco);
    font-size: 0.9rem;
    max-width: 340px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.toast.toast-success { border-left-color: #10b981; }
.toast.toast-error { border-left-color: #ef4444; }

.toast.hiding {
    animation: toastOut 0.3s ease forwards;
}

.toast strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.92rem;
}

.toast p {
    color: var(--gris-texto);
    font-size: 0.82rem;
    line-height: 1.45;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(40px); }
}

/* ACCESIBILIDAD: REDUCIR MOVIMIENTO */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .tech-marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .whatsapp-float::before,
    .badge-dot,
    .wheel,
    .code-cursor,
    .hero-subtitle .cursor {
        animation: none;
    }
}
