/* ==========================================================================
   Tecnosach - High-End Technology Design System (2026 Edition)
   Inspired by Vercel, Linear, Stripe, Framer & Webflow
   Palette: Deep Space Dark (#030712), Navy (#071126), Card (#0B1433),
   Main Blue (#2563EB), Bright Blue (#3B82F6), CTA Orange (#FF6A1A), Orange Glow (#FF8A3D)
   ========================================================================== */

:root {
    --ts-bg-main: #030712;
    --ts-bg-secondary: #071126;
    --ts-bg-card: #0B1433;
    --ts-blue-primary: #2563EB;
    --ts-blue-bright: #3B82F6;
    --ts-blue-glow: rgba(37, 99, 235, 0.4);
    --ts-orange-cta: #FF6A1A;
    --ts-orange-glow: #FF8A3D;
    --ts-green-whatsapp: #22C55E;
    
    --ts-text-primary: #FFFFFF;
    --ts-text-secondary: #94A3B8;
    --ts-text-muted: #A8B3CF;
    
    --ts-border-subtle: rgba(255, 255, 255, 0.08);
    --ts-border-glow: rgba(37, 99, 235, 0.35);
    
    --ts-radius-sm: 12px;
    --ts-radius-md: 18px;
    --ts-radius-lg: 22px;
    --ts-radius-xl: 30px;
    
    --ts-shadow-card: 0 20px 60px rgba(0, 0, 0, 0.35);
    --ts-shadow-hover: 0 35px 80px rgba(37, 99, 235, 0.18);
    --ts-shadow-orange: 0 10px 30px rgba(255, 106, 26, 0.45);
    
    --ts-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Compatibilidad con clases de Bootstrap */
    --ts-dark-bg: #030712;
    --ts-dark-surface: #071126;
    --ts-dark-card: #0B1433;
    --ts-primary: #FF6A1A;
    --ts-primary-hover: #E04E15;
    --ts-primary-glow: rgba(255, 106, 26, 0.4);
    --ts-secondary: #071126;
    --ts-light-bg: #030712;
    --ts-light-card: #0B1433;
    --ts-text-dark: #FFFFFF;
    --ts-border-light: rgba(255, 255, 255, 0.08);
    --ts-border-dark: rgba(255, 255, 255, 0.08);
    --ts-glass-bg: rgba(11, 20, 51, 0.85);
    --ts-glass-border: rgba(37, 99, 235, 0.25);
}

[data-bs-theme="dark"] {
    --ts-light-bg: #030712;
    --ts-light-card: #0B1433;
    --ts-text-dark: #FFFFFF;
    --ts-text-muted: #94A3B8;
    --ts-border-light: rgba(255, 255, 255, 0.08);
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

/* Base Body con Gradientes Radiales y Profundidad 2026 */
body {
    font-family: var(--ts-font-main);
    background-color: var(--ts-bg-main) !important;
    color: var(--ts-text-primary);
    line-height: 1.6;
}

/* Brillos Radiales Ambientales: Naranja (Sup-Der), Azul (Sup-Izadas), Viñeta Central */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle at 90% 10%, rgba(255, 106, 26, 0.13) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 10%;
    left: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Garantizar visibilidad de elementos */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* --------------------------------------------------------------------------
   Tipografía & Gradientes Premium
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ts-font-main);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ts-text-primary) !important;
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
[data-bs-theme="dark"] h1, [data-bs-theme="dark"] h2, [data-bs-theme="dark"] h3, [data-bs-theme="dark"] h4, [data-bs-theme="dark"] h5, [data-bs-theme="dark"] h6 {
    color: #FFFFFF !important;
}

.text-gradient-orange {
    background: linear-gradient(90deg, #FF6A1A 0%, #FF9B50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-blue {
    background: linear-gradient(90deg, #2563EB 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Banner superior para páginas internas */
.page-header-banner {
    padding-top: 6.8rem !important;
    padding-bottom: 3rem !important;
    background: radial-gradient(circle at 50% 0%, #071126 0%, #030712 100%) !important;
    border-bottom: 1px solid var(--ts-border-subtle);
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Navbar Premium Sticky Glassmorphism
   -------------------------------------------------------------------------- */
.navbar-tecnosach {
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ts-border-subtle);
    transition: all 0.3s ease;
    padding: 0.5rem 0 !important;
    z-index: 1050;
}

.navbar-tecnosach.scrolled {
    background: rgba(3, 7, 18, 0.94);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(37, 99, 235, 0.25);
}

.navbar-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.25s ease;
}

.navbar-logo-img:hover {
    transform: scale(1.04);
}

.footer-logo-img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.5));
}

.nav-link {
    color: var(--ts-text-secondary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--ts-text-primary) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, #FF6A1A, #FF8A3D);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(255, 106, 26, 0.6);
}

/* Mega Menú Dropdown */
.mega-dropdown-menu {
    min-width: 680px;
    background-color: var(--ts-bg-card);
    border: 1px solid var(--ts-border-glow);
    border-radius: var(--ts-radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(37, 99, 235, 0.15);
    padding: 1.5rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.mega-menu-item {
    padding: 0.9rem;
    border-radius: var(--ts-radius-sm);
    transition: all 0.25s ease;
    display: flex;
    gap: 1.2rem;
    text-decoration: none;
    border: 1px solid transparent;
}

.mega-menu-item:hover {
    background-color: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateX(4px);
}

.mega-menu-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(255, 106, 26, 0.15) 100%);
    color: var(--ts-blue-bright);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Menú Desplegable Simplificado en Lista (Icono + Título) */
.mega-dropdown-menu.dropdown-menu-list {
    min-width: 340px !important;
    width: auto !important;
    padding: 1.25rem;
}

.mega-menu-item-list {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--ts-radius-sm);
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.mega-menu-item-list:hover {
    background-color: rgba(37, 99, 235, 0.14);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateX(4px);
}

.mega-menu-icon-sm {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(255, 106, 26, 0.15) 100%);
    color: var(--ts-blue-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    border: 1px solid rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.mega-menu-item-list:hover .mega-menu-icon-sm {
    background: linear-gradient(135deg, #FF6A1A 0%, #E04E15 100%);
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(255, 106, 26, 0.4);
}

/* --------------------------------------------------------------------------
   Hero Section Modern Ultra Tech (Linear / Vercel Aesthetic)
   -------------------------------------------------------------------------- */
.hero-section {
    background: radial-gradient(circle at 50% 0%, #071126 0%, #030712 80%);
    color: var(--ts-text-primary);
    padding: 9.5rem 0 7rem 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 106, 26, 0.18) 0%, transparent 70%);
    pointer-events: none;
    animation: floatOrb 8s infinite alternate ease-in-out;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(24px) scale(1.06); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 106, 26, 0.1);
    border: 1px solid rgba(255, 106, 26, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #FF9B50;
    margin-bottom: 1.8rem;
    box-shadow: 0 0 20px rgba(255, 106, 26, 0.15);
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 1.6rem;
    letter-spacing: -0.035em;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--ts-text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.8;
}

/* Editor de Código Hero - Tarjeta Premium Flotante */
.hero-image-wrapper {
    position: relative;
    border-radius: var(--ts-radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
    background: rgba(11, 20, 51, 0.75) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px rgba(37, 99, 235, 0.18), 0 0 40px rgba(0, 0, 0, 0.6) !important;
    animation: heroCodeFloat 6s infinite ease-in-out;
}

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

/* --------------------------------------------------------------------------
   Botones Premium con Elevación & Glow
   -------------------------------------------------------------------------- */
.btn-ts-primary {
    background: linear-gradient(135deg, #FF6A1A 0%, #E04E15 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: var(--ts-radius-sm);
    border: none;
    box-shadow: 0 4px 20px rgba(255, 106, 26, 0.35);
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.btn-ts-primary:hover,
.btn-ts-primary:focus {
    background: linear-gradient(135deg, #FF8A3D 0%, #FF6A1A 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 106, 26, 0.6);
    text-decoration: none !important;
}

.btn-ts-outline {
    background: rgba(37, 99, 235, 0.08);
    color: #FFFFFF !important;
    border: 1px solid rgba(37, 99, 235, 0.4);
    font-weight: 600;
    padding: 0.9rem 2.2rem;
    border-radius: var(--ts-radius-sm);
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.btn-ts-outline:hover,
.btn-ts-outline:focus {
    background: rgba(37, 99, 235, 0.18);
    border-color: #3B82F6;
    color: #FFFFFF !important;
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.4);
    text-decoration: none !important;
}

.btn-ts-whatsapp {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: var(--ts-radius-sm);
    border: none;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.btn-ts-whatsapp:hover,
.btn-ts-whatsapp:focus {
    background: linear-gradient(135deg, #4ADE80 0%, #22C55E 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5);
    text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   Tarjetas Modernas SaaS (Sleek Dark Surface)
   -------------------------------------------------------------------------- */
.ts-card {
    background-color: var(--ts-bg-card) !important;
    border: 1px solid var(--ts-border-subtle) !important;
    border-radius: var(--ts-radius-lg) !important;
    padding: 2.4rem;
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    box-shadow: var(--ts-shadow-card);
}

.ts-card:hover {
    transform: translateY(-10px);
    border-color: var(--ts-blue-primary) !important;
    box-shadow: var(--ts-shadow-hover) !important;
}

.ts-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6A1A 0%, #E04E15 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.6rem;
    box-shadow: 0 0 20px rgba(255, 106, 26, 0.4);
}

/* Botón "Saber más" enlace premium */
.ts-card .btn-outline-primary {
    border-color: rgba(37, 99, 235, 0.4) !important;
    color: var(--ts-blue-bright) !important;
    background: rgba(37, 99, 235, 0.08) !important;
    font-weight: 700;
    padding: 0.5rem 1.25rem !important;
    transition: all 250ms ease !important;
}

.ts-card .btn-outline-primary:hover {
    background: var(--ts-blue-primary) !important;
    color: #FFFFFF !important;
    border-color: var(--ts-blue-primary) !important;
    transform: translateX(4px);
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.5);
}

.ts-card .btn-outline-primary i {
    transition: transform 250ms ease;
}

.ts-card .btn-outline-primary:hover i {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Sección "Líderes en Desarrollo"
   -------------------------------------------------------------------------- */
section.py-5.my-4 {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
    position: relative;
    z-index: 1;
}

.col-lg-6 .ts-card.border-primary {
    border: 1px solid rgba(37, 99, 235, 0.4) !important;
    position: relative;
}

.col-lg-6 .ts-card.border-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Tarjetas pequeñas dentro de Líderes en Desarrollo */
.p-3.bg-body-tertiary.rounded-3.border {
    background-color: var(--ts-bg-card) !important;
    border: 1px solid var(--ts-border-subtle) !important;
    border-radius: var(--ts-radius-md) !important;
    transition: all 250ms ease;
}

.p-3.bg-body-tertiary.rounded-3.border:hover {
    border-color: var(--ts-blue-primary) !important;
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Catálogo de Servicios Sección
   -------------------------------------------------------------------------- */
#servicios-section {
    background-color: var(--ts-bg-secondary) !important;
    border-top: 1px solid var(--ts-border-subtle) !important;
    border-bottom: 1px solid var(--ts-border-subtle) !important;
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Estadísticas Counter
   -------------------------------------------------------------------------- */
.stats-section {
    background: var(--ts-bg-secondary);
    color: var(--ts-text-primary);
    padding: 5rem 0;
    border-top: 1px solid var(--ts-border-subtle);
    border-bottom: 1px solid var(--ts-border-subtle);
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6A1A 0%, #FF9B50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(255, 106, 26, 0.4));
    transition: all 0.3s ease;
}

.stats-section .col-md-3:hover .stat-number {
    transform: scale(1.08);
    filter: drop-shadow(0 0 30px rgba(255, 106, 26, 0.7));
}

.stat-label {
    color: var(--ts-text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.8rem;
}

@media (min-width: 768px) {
    .stats-section .col-md-3:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* --------------------------------------------------------------------------
   Timeline / Metodología (4 Pasos Reales)
   -------------------------------------------------------------------------- */
.process-step {
    position: relative;
    padding: 2.4rem 1.6rem;
    background-color: var(--ts-bg-card);
    border: 1px solid var(--ts-border-subtle);
    border-radius: var(--ts-radius-lg);
    text-align: center;
    height: 100%;
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--ts-shadow-card);
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: var(--ts-blue-primary);
    box-shadow: var(--ts-shadow-hover);
}

.process-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FF6A1A 0%, #E04E15 100%);
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem auto;
    box-shadow: 0 0 20px rgba(255, 106, 26, 0.4);
}

/* Línea conectora horizontal entre los pasos en desktop */
@media (min-width: 992px) {
    section .row.g-4 > [class*='col-']:not(:last-child) .process-step::after {
        content: '';
        position: absolute;
        top: 4.2rem;
        right: -1.2rem;
        width: 2.4rem;
        height: 1px;
        background: linear-gradient(90deg, rgba(255,106,26,0.6), rgba(37,99,235,0.6));
        z-index: 2;
    }
}

/* --------------------------------------------------------------------------
   CTA Banner "Solicita Presupuesto"
   -------------------------------------------------------------------------- */
section.py-5.bg-dark.text-white.text-center {
    background: radial-gradient(circle at 50% 50%, #071126 0%, #030712 100%) !important;
    border-top: 1px solid rgba(255, 106, 26, 0.3) !important;
    border-bottom: 1px solid rgba(255, 106, 26, 0.3) !important;
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
    position: relative;
    z-index: 1;
}

section.py-5.bg-dark.text-white.text-center h2 {
    font-size: 3.2rem;
    text-shadow: 0 0 35px rgba(255, 106, 26, 0.5);
}

/* --------------------------------------------------------------------------
   Formulario de Contacto & Inputs
   -------------------------------------------------------------------------- */
#contacto-form-section {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
    position: relative;
    z-index: 1;
}

#contacto-form-section .form-control,
#contacto-form-section .form-select {
    height: 54px;
    background-color: var(--ts-bg-secondary) !important;
    border: 1px solid var(--ts-border-subtle) !important;
    color: #FFFFFF !important;
    border-radius: var(--ts-radius-sm);
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

#contacto-form-section textarea.form-control {
    height: auto !important;
    min-height: 140px;
}

#contacto-form-section .form-control::placeholder {
    color: #64748B;
}

#contacto-form-section .form-control:focus,
#contacto-form-section .form-select:focus {
    border-color: var(--ts-blue-primary) !important;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4) !important;
    outline: none;
}

#contacto-form-section ul li i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.15);
    color: var(--ts-blue-bright) !important;
    border: 1px solid rgba(37, 99, 235, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Filtros Portafolio Pizazz
   -------------------------------------------------------------------------- */
.portfolio-filter-btn {
    background: transparent;
    border: 1px solid var(--ts-border-subtle);
    color: var(--ts-text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0.25rem;
    transition: all 0.25s ease;
}

.portfolio-filter-btn:hover, .portfolio-filter-btn.active {
    background: linear-gradient(135deg, #FF6A1A 0%, #E04E15 100%);
    color: #FFFFFF;
    border-color: var(--ts-orange-cta);
    box-shadow: 0 4px 18px rgba(255, 106, 26, 0.35);
}

/* --------------------------------------------------------------------------
   Footer Refinado
   -------------------------------------------------------------------------- */
footer.footer-section {
    background-color: #030611 !important;
    border-top: 1px solid rgba(37, 99, 235, 0.25) !important;
    position: relative;
    z-index: 1;
}

footer.footer-section .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--ts-text-secondary) !important;
    transition: all 0.25s ease;
}

footer.footer-section .btn-outline-secondary:hover {
    background-color: var(--ts-blue-primary) !important;
    border-color: var(--ts-blue-primary) !important;
    color: #FFFFFF !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Formulario Newsletter Responsivo */
.newsletter-form .newsletter-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: var(--ts-radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--ts-border-subtle);
    transition: all 0.25s ease;
}

.newsletter-form .newsletter-input-group:focus-within {
    border-color: var(--ts-blue-primary);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
}

.newsletter-form .newsletter-input {
    height: 48px !important;
    background-color: rgba(7, 17, 38, 0.85) !important;
    border: none !important;
    color: #FFFFFF !important;
    padding: 0.75rem 1.1rem;
    font-size: 0.95rem;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    flex: 1;
    min-width: 0;
}

.newsletter-form .newsletter-input::placeholder {
    color: var(--ts-text-muted);
}

.newsletter-form .newsletter-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.newsletter-form .newsletter-btn {
    height: 48px !important;
    min-height: 48px !important;
    width: auto !important;
    padding: 0 1.25rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-radius: 0 var(--ts-radius-sm) var(--ts-radius-sm) 0 !important;
    flex-shrink: 0;
    margin: 0 !important;
    white-space: nowrap !important;
}

/* --------------------------------------------------------------------------
   Botón WhatsApp Flotante & Volver Arriba
/* Reset de subrayados y bordes inferiores en enlaces e iconos */
a, a:hover, a:focus, a:active,
i, i:hover, i:focus {
    text-decoration: none !important;
    border-bottom: none !important;
}

.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: #FFFFFF !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.45);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus,
.floating-whatsapp:active {
    color: #FFFFFF !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    transform: scale(1.12);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.6);
}

.floating-whatsapp i,
.floating-whatsapp i::before,
.floating-whatsapp i::after {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    line-height: 1;
}

.back-to-top {
    position: fixed;
    bottom: 98px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--ts-bg-card);
    color: #FFFFFF !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    border: 1px solid var(--ts-border-glow);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Adaptaciones para Pantallas Móviles & Menú Responsivo */
@media (max-width: 991.98px) {
    .navbar-tecnosach .navbar-collapse {
        background: rgba(7, 17, 38, 0.98) !important;
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--ts-border-glow) !important;
        border-radius: var(--ts-radius-md);
        padding: 1.25rem !important;
        margin-top: 0.75rem;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(37, 99, 235, 0.2);
    }
    
    .navbar-tecnosach .navbar-nav {
        gap: 0.35rem;
        margin-bottom: 1rem !important;
    }

    .navbar-tecnosach .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--ts-radius-sm);
        border: 1px solid transparent;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 1rem;
    }

    .navbar-tecnosach .nav-link:hover,
    .navbar-tecnosach .nav-link.active {
        background: rgba(37, 99, 235, 0.14);
        border-color: rgba(37, 99, 235, 0.3);
    }
    
    .navbar-tecnosach .nav-link.active::after {
        display: none;
    }

    /* Reset Mega Menú Dropdown en Móvil */
    .mega-dropdown-menu {
        min-width: 100% !important;
        width: 100% !important;
        position: static !important;
        transform: none !important;
        float: none !important;
        background-color: rgba(11, 20, 51, 0.95) !important;
        border: 1px solid var(--ts-border-subtle) !important;
        border-radius: var(--ts-radius-sm) !important;
        padding: 1rem !important;
        margin-top: 0.5rem !important;
        box-shadow: none !important;
    }

    .mega-dropdown-menu .row > [class*="col-"] {
        width: 100% !important;
    }

    .mega-menu-item {
        padding: 0.75rem;
        gap: 0.85rem;
    }

    .mega-menu-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .navbar-toggler {
        padding: 0.5rem 0.75rem;
        border-radius: 12px;
        background: rgba(37, 99, 235, 0.15);
        border: 1px solid rgba(37, 99, 235, 0.35) !important;
        transition: all 0.25s ease;
    }

    .navbar-toggler:hover,
    .navbar-toggler:focus,
    .navbar-toggler:active {
        outline: none;
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.5) !important;
        background: rgba(37, 99, 235, 0.3);
    }
}

@media (max-width: 768px) {
    section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    
    .btn-ts-primary, .btn-ts-outline, .btn-ts-whatsapp {
        width: 100%;
        text-align: center;
    }
    
    /* Excepción para el botón del formulario de Newsletter en el Footer */
    .newsletter-form .newsletter-input-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .newsletter-form .btn-ts-primary.newsletter-btn {
        width: auto !important;
        flex-shrink: 0 !important;
    }

    .hero-badge {
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }

    .hero-image-wrapper pre {
        overflow-x: auto;
        white-space: pre;
        max-width: 100%;
    }
    
    .ts-card {
        padding: 1.8rem;
    }
}

@media (max-width: 576px) {
    .process-step {
        padding: 1.6rem 1.2rem;
    }
    
    .process-number {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* --------------------------------------------------------------------------
   Página de Detalle de Producto & Servicio Premium
   -------------------------------------------------------------------------- */
.product-detail-header {
    background: radial-gradient(circle at 50% 0%, #071126 0%, #030712 90%) !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25) !important;
    padding-top: 6.5rem !important;
    padding-bottom: 3.5rem !important;
    position: relative;
    z-index: 1;
}

.product-detail-header .breadcrumb {
    background: rgba(11, 20, 51, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    padding: 0.4rem 1.1rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.product-detail-header .breadcrumb-item a {
    color: var(--ts-blue-bright) !important;
    font-weight: 600;
}

.product-detail-header .breadcrumb-item.active {
    color: #FFFFFF !important;
    font-weight: 600;
}

.product-detail-header .badge-glow {
    background: linear-gradient(135deg, #FF6A1A 0%, #E04E15 100%);
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(255, 106, 26, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-card-item {
    background-color: var(--ts-bg-secondary) !important;
    border: 1px solid var(--ts-border-subtle) !important;
    border-radius: var(--ts-radius-md) !important;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    transition: all 250ms ease;
}

.detail-card-item:hover {
    transform: translateY(-4px);
    border-color: var(--ts-blue-primary) !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.detail-icon-orb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.detail-icon-orb.icon-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.detail-icon-orb.icon-warning {
    background: rgba(255, 106, 26, 0.15);
    color: #FF6A1A;
    border: 1px solid rgba(255, 106, 26, 0.3);
}

.detail-sticky-sidebar {
    position: sticky;
    top: 110px;
    z-index: 10;
    background-color: var(--ts-bg-card) !important;
    border: 1px solid var(--ts-border-glow) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(37, 99, 235, 0.12) !important;
}

.detail-sticky-sidebar .form-control {
    height: 52px;
    background-color: var(--ts-bg-secondary) !important;
    border: 1px solid var(--ts-border-subtle) !important;
    color: #FFFFFF !important;
    border-radius: var(--ts-radius-sm);
    padding: 0.8rem 1.1rem;
    font-size: 0.95rem;
}

.detail-sticky-sidebar .form-control:focus {
    border-color: var(--ts-blue-primary) !important;
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.4) !important;
}

/* Utilidades de Ancho Máximo y Control de Saltos de Línea */
.max-w-500 { max-width: 500px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.max-w-900 { max-width: 900px; }
.max-w-1000 { max-width: 1000px; }

@media (min-width: 992px) {
    .text-nowrap-desktop {
        white-space: nowrap !important;
    }
}

