/* assets/style.css */
/* Modern Edge-to-Edge Responsive Industrial Design - Dual Service Electronic */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --header-blue: #0047AB;     /* Azul Corporativo de la Barra Superior */
    --primary: #003B95;         /* Azul Oscuro Títulos */
    --accent-blue: #0047AB;     /* Azul Botón Primario */
    --cta-red: #D32F2F;         /* Rojo Botón Admin Panel */
    --cta-red-hover: #b90323;
    --bg-main: #F4F6F9;         /* Gris Claro Sección Servicios */
    --bg-card: #FFFFFF;         /* Blanco */
    --text-main: #003B95;       /* Texto Noche */
    --text-body: #424242;       /* Texto Cuerpo */
    --text-muted: #616161;      /* Texto Muted */
    --border: #E0E0E0;          /* Borde */
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 18px 40px rgba(0, 71, 171, 0.12);

    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles (Sin Bordes en los Bordes del Navegador) */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: var(--font-family);
    background-color: #0b192c;
    color: var(--text-body);
    line-height: 1.6;
}

main, .site-main {
    flex: 1 0 auto;
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* BOTÓN ROJO SÓLIDO 3D BRILANTE Y ULTRA CLARO DE CERRAR SESIÓN */
.btn-3d-danger-logout {
    background: linear-gradient(180deg, #ff4d4d 0%, #ff1a1a 55%, #cc0000 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    border: 1px solid #ff6666 !important;
    border-radius: 8px !important;
    padding: 0.48rem 1.2rem !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.03em !important;
    box-shadow: 0 4px 0 #990000, 0 6px 18px rgba(255, 26, 26, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    text-decoration: none !important;
    transition: all 0.12s ease-in-out !important;
    cursor: pointer !important;
    opacity: 1 !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
}

.btn-3d-danger-logout:hover {
    background: linear-gradient(180deg, #ff6666 0%, #ff3333 55%, #e60000 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 0 #990000, 0 8px 22px rgba(255, 26, 26, 0.65) !important;
}

.btn-3d-danger-logout:active {
    transform: translateY(3px) !important;
    box-shadow: 0 1px 0 #990000, 0 2px 6px rgba(255, 26, 26, 0.4) !important;
}

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

/* Header Navbar Sticky Full-Width Edge-to-Edge (Exacto a la Imagen) */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.45rem 0.85rem !important;
    width: 100%;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    gap: 0.6rem;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #0f172a;
    text-decoration: none;
    flex-shrink: 0;
    
    /* Textura de Cristal Templado Idéntica a la Tarjeta Hero (Ice-White Glass 3D) */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 246, 255, 0.92) 55%, rgba(230, 241, 255, 0.88) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.3rem 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    max-height: 48px;
    box-shadow: 
        0 8px 20px rgba(0, 59, 149, 0.15),
        0 3px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.logo-brand:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 12px 25px rgba(0, 59, 149, 0.2),
        0 5px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.logo-brand-img {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: transform 0.25s ease;
}

.logo-brand:hover .logo-brand-img {
    transform: scale(1.06) rotate(1deg);
}

.logo-brand-text {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Efecto 3D para el nombre de la empresa sobre fondo blanco/crema */
.logo-brand-3d-red {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #D90429;
    background: linear-gradient(180deg, #FF1E43 0%, #D90429 60%, #A8001F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
    font-family: var(--font-family);
    text-transform: uppercase;
}

.logo-brand-3d-blue {
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: #185ADB;
    background: linear-gradient(180deg, #2563EB 0%, #185ADB 60%, #0A2A6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
    font-family: var(--font-family);
    text-transform: uppercase;
}

.logo-brand-sub {
    font-size: 0.58rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.02em;
    text-shadow: none;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-shrink: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    padding: 0.4rem 0;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link.active::after, .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Submenu Dropdown Tarjeta Blanca con Sombras e Iconos (Exacto a la Imagen) */
.nav-item {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 280px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    padding: 0.8rem;
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 1100;
    border: 1px solid #e2e8f0;
}

.nav-item:hover .submenu {
    display: flex;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    border-radius: 8px;
    transition: var(--transition);
}

.submenu-link i {
    color: #0047AB;
    width: 20px;
    height: 20px;
}

.submenu-link:hover {
    background-color: #f1f5f9;
    color: #0047AB;
}

/* Selector Desplegable de Idioma Personalizado (España 🇪🇸 y EE.UU. 🇺🇸) */
.custom-lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-flag-img, .lang-flag-icon {
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.lang-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.custom-lang-dropdown:hover .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.4rem;
    margin-top: 0; /* Sin separación para evitar pérdida de hover */
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1200;
    border: 1px solid #e2e8f0;
}

/* Puente Invisible ::before para mantener el hover activo */
.lang-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.custom-lang-dropdown:hover .lang-dropdown-menu {
    display: flex;
}

.lang-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: #1e293b;
    font-size: 0.85rem;
    transition: all 0.18s ease;
}

.lang-option-item:hover {
    background-color: #f1f5f9;
    color: #0047AB;
}

.lang-option-item.active-lang {
    background-color: #eff6ff;
    color: #0047AB;
}

.active-check-icon {
    width: 15px;
    height: 15px;
    color: #0047AB;
}

/* Botón Dashboard (Blanco Sólido con Texto Azul) */
.btn-dashboard-white {
    background-color: #FFFFFF !important;
    border: none !important;
    color: #0047AB !important;
    font-weight: 700 !important;
    padding: 0 0.65rem !important;
    height: 32px !important;
    max-height: 32px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    font-size: 0.78rem !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap !important;
    box-sizing: border-box !important;
    align-self: center !important;
}

.btn-dashboard-white:hover {
    background-color: #f8fafc !important;
    transform: translateY(-1px);
}

/* Botón Admin Panel (Rojo Sólido #D32F2F con Icono de Candado/Escudo) */
.btn-admin-red-solid {
    background-color: #D32F2F !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0 0.65rem !important;
    height: 32px !important;
    max-height: 32px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    font-size: 0.78rem !important;
    box-shadow: 0 3px 8px rgba(211, 47, 47, 0.3);
    white-space: nowrap !important;
    box-sizing: border-box !important;
    align-self: center !important;
}

.btn-admin-red-solid:hover {
    background-color: #b90323 !important;
    transform: translateY(-1px);
}

/* Mobile Toggle Switch */
.mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10000;
}

@media (max-width: 992px) {
    .mobile-toggle-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .site-header {
        position: relative !important;
    }

    .main-nav {
        display: none !important;
        width: 100% !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(180deg, #0b192c 0%, #0f2442 100%) !important;
        padding: 1.5rem 1.25rem !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.6) !important;
        border-bottom: 3px solid #d90429 !important;
        border-radius: 0 0 16px 16px !important;
        z-index: 99999 !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
    
    .main-nav.active {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 0.75rem !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-item {
        width: 100% !important;
    }

    .nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.75rem 1rem !important;
        border-radius: 10px !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        text-decoration: none !important;
    }

    .nav-link:hover, .nav-link.active {
        background: linear-gradient(90deg, rgba(24, 90, 219, 0.4) 0%, rgba(217, 4, 41, 0.4) 100%) !important;
        color: #ffffff !important;
        border-color: #38bdf8 !important;
    }

    /* Submenú desplegable de servicios en móvil */
    .dropdown-services-item {
        position: relative !important;
        width: 100% !important;
    }

    .services-dropdown-menu {
        position: static !important;
        width: 100% !important;
        display: none;
        flex-direction: column !important;
        background: rgba(15, 23, 42, 0.85) !important;
        border: 1px solid rgba(56, 189, 248, 0.3) !important;
        border-radius: 12px !important;
        padding: 0.75rem !important;
        margin-top: 0.5rem !important;
        box-shadow: inset 0 2px 8px rgba(0,0,0,0.4) !important;
    }

    .services-dropdown-item {
        color: #e2e8f0 !important;
        padding: 0.6rem 0.8rem !important;
        border-radius: 8px !important;
    }

    .services-dropdown-item:hover {
        background: rgba(56, 189, 248, 0.15) !important;
        color: #ffffff !important;
    }

    .service-item-title {
        color: #ffffff !important;
    }

    .service-item-sub {
        color: #94a3b8 !important;
    }

    /* Grupo de Botones de Acción (Teléfono, Dashboard, Admin, Idioma) en móvil */
    .header-actions-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 0.75rem !important;
        margin-top: 0.5rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .nav-phone-red-btn,
    .btn-dashboard-white,
    .btn-admin-red-solid {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
    }

    .custom-lang-dropdown {
        width: 100% !important;
    }

    .lang-toggle-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.65rem 1rem !important;
    }
}

/* Hero Section Rediseñada Moderna 3D */
.hero-section-full {
    width: 100%;
    min-height: 560px;
    position: relative;
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Capa de Difuminado eliminada para vista Full HD limpia de la imagen de fondo */
.hero-overlay-gradient {
    display: none !important;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    max-width: 1350px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    width: 100%;
}

/* Tarjeta Flotante 3D con Cristal Templado (*Glassmorphism*) */
.hero-card-3d-modern {
    max-width: 680px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 2.8rem 2.6rem;
    box-shadow: 
        0 20px 50px rgba(0, 59, 149, 0.12),
        0 10px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.hero-card-3d-modern:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 30px 65px rgba(0, 59, 149, 0.18),
        0 12px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Reglas Globales para todas las Tarjetas 3D (Servicios, Blog, Foro y Contacto) */
.hp-catalog-card,
.dse-catalog-card,
.service-card-3d,
.article-card-box,
.sidebar-widget-card,
.blog-post-card,
.post-main-card,
.category-row-card,
.welcome-alert-card,
.forum-stats-box,
.forum-topic-card,
.post-card,
.card-topic-form,
.info-card,
.contact-form-card {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 22px !important;
    box-shadow: 
        0 18px 45px rgba(0, 59, 149, 0.15),
        0 6px 18px rgba(0, 0, 0, 0.04),
        inset 0 1.5px 0 rgba(255, 255, 255, 1) !important;
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.hp-catalog-card:hover,
.dse-catalog-card:hover,
.service-card-3d:hover,
.article-card-box:hover,
.sidebar-widget-card:hover,
.category-row-card:hover,
.forum-topic-card:hover,
.post-card:hover,
.info-card:hover {
    transform: translateY(-6px) scale(1.012) !important;
    border-color: #185ADB !important;
    box-shadow: 
        0 28px 65px rgba(0, 59, 149, 0.24),
        0 10px 25px rgba(0, 0, 0, 0.07),
        inset 0 1.5px 0 rgba(255, 255, 255, 1) !important;
}

/* Insignia / Pill Badge */
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0047AB 0%, #002D62 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.25);
}

.hero-title-main {
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 900;
    color: #002D62;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.hero-subtitle-main {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 1.8rem;
    font-weight: 500;
}

/* Botones 3D con Relief Sombra */
.btn-blue-3d-solid {
    background: linear-gradient(180deg, #0056D2 0%, #0047AB 60%, #003380 100%);
    color: #ffffff !important;
    font-weight: 800;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.98rem;
    border: none;
    box-shadow: 0 6px 16px rgba(0, 71, 171, 0.35), inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.22s ease;
    text-decoration: none;
}

.btn-blue-3d-solid:hover {
    background: linear-gradient(180deg, #0066FF 0%, #0056D2 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 71, 171, 0.45);
}

.btn-blue-3d-outline {
    border: 2px solid #0047AB;
    background: rgba(255, 255, 255, 0.9);
    color: #0047AB !important;
    font-weight: 800;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.98rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.22s ease;
    text-decoration: none;
}

.btn-blue-3d-outline:hover {
    background: #0047AB;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 71, 171, 0.3);
}
    font-size: 1rem;
}

.btn-blue-outline-translucent:hover {
    background-color: #ffffff;
}

/* Sección de 3 Tarjetas Blancas (Exactas a la Imagen) */
.services-section-full {
    width: 100%;
    padding: 4.5rem 2rem;
    background-color: #F4F6F9;
}

.services-container-inner {
    max-width: 1350px;
    margin: 0 auto;
}

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

@media (max-width: 992px) {
    .cards-grid-3 {
        grid-template-columns: 1fr;
    }
}

.white-service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.8rem 2.2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid #ffffff;
    transition: var(--transition);
}

.white-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem auto;
    color: #0047AB;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.white-service-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #003B95;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.white-service-card p {
    font-size: 0.92rem;
    color: #616161;
    line-height: 1.6;
    margin: 0;
}

/* Pie de Página Centrado Limpio (Exacto a la Imagen) */
footer.clean-footer {
    width: 100%;
    background-color: #F4F6F9;
    border-top: 1px solid #E0E0E0;
    padding: 1.8rem 1rem;
    text-align: center;
    font-size: 0.88rem;
    color: #616161;
    font-weight: 500;
}

/* -------------------------------------------------------------
   ESTILOS EXCLUSIVOS DEL SUBMENÚ DESPLEGABLE DE SERVICIOS (380px)
   ------------------------------------------------------------- */
.dropdown-services-item {
    position: relative;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.services-nav-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.4rem 0.65rem !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.services-nav-btn span {
    white-space: nowrap !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.services-nav-btn.active-services-blue, .services-nav-btn:hover {
    background-color: #185ADB !important;
    color: #ffffff !important;
}

.dropdown-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.dropdown-services-item:hover .dropdown-chevron {
    transform: rotate(180deg);
}

/* Dropdown blanco de 420px, borde superior rojo 2px, sombra elegante y bordes redondeados 16px */
.services-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    background: #ffffff;
    border-top: 3px solid #D90429;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0,0,0,0.06);
    padding: 0.65rem;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 3000;
    border-left: 1px solid #eef2f7;
    border-right: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.dropdown-services-item:hover .services-dropdown-menu {
    display: flex;
    animation: fadeInDropdown 0.2s ease-in-out forwards;
}

/* Pseudo-puente invisible que llena el gap de 8px para mantener el hover activo */
.dropdown-services-item .services-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

/* Encabezado decorativo al tope del dropdown */
.services-dropdown-header {
    padding: 0.55rem 0.9rem 0.6rem;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 0.3rem;
}

.services-dropdown-header-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translate(-50%, 6px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Cada ítem del submenú con icono cuadrado azul, texto en negro y flecha > que se vuelve azul al hover */
.services-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
    gap: 0.9rem;
}

.services-dropdown-item:hover {
    background-color: #F0F4FF;
    box-shadow: inset 0 0 0 1px #e0e8ff;
}

.service-icon-square {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e6ef5 0%, #0d4cc7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(24, 90, 219, 0.30);
    transition: transform 0.18s ease;
}

.services-dropdown-item:hover .service-icon-square {
    transform: scale(1.08);
}

.service-icon-square i {
    width: 22px;
    height: 22px;
}

.service-item-info {
    flex: 1;
}

.service-item-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    transition: color 0.18s ease;
}

.services-dropdown-item:hover .service-item-title {
    color: #185ADB;
}

.service-item-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
    margin-top: 2px;
    transition: color 0.18s ease;
}

.services-dropdown-item:hover .service-item-sub {
    color: #185ADB;
    opacity: 0.75;
}

.service-arrow {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.services-dropdown-item:hover .service-arrow {
    color: #185ADB;
    transform: translateX(3px);
}

/* Botón Teléfono Rojo #D90429 & Búsqueda */
.header-actions-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: 0.75rem;
}

.nav-search-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nav-search-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-phone-red-btn {
    background-color: #D90429;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0 0.65rem !important;
    height: 32px !important;
    max-height: 32px !important;
    border-radius: 6px !important;
    text-decoration: none;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    font-size: 0.78rem !important;
    box-shadow: 0 3px 8px rgba(217, 4, 41, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    align-self: center !important;
    flex-shrink: 0 !important;
}

.nav-phone-red-btn span {
    white-space: nowrap !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.nav-phone-red-btn:hover {
    background-color: #b0021f;
    transform: translateY(-1px);
}

/* -------------------------------------------------------------
   ESTILOS DEL BOTÓN FLOTANTE DE WHATSAPP CON PULSO Y TOOLTIP
   ------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn-circle {
    width: 65px;
    height: 65px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    position: relative;
    z-index: 10;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.whatsapp-btn-circle:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
}

.whatsapp-icon-svg {
    width: 36px;
    height: 36px;
}

/* Anillos de pulso animados de fondo */
.whatsapp-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.5);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.ring-1 {
    animation: waPulseRing 2.2s ease-out infinite;
}

.ring-2 {
    animation: waPulseRing 2.2s ease-out infinite 0.8s;
}

@keyframes waPulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.7);
        opacity: 0;
    }
}

/* Tooltip blanco flotante interactivo */
.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    background: #ffffff;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    border: 1px solid #e2e8f0;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.tooltip-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.tooltip-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #16a34a;
    margin-top: 2px;
}

/* Adaptación Responsive Móvil */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 18px;
    }
    .whatsapp-btn-circle {
        width: 55px;
        height: 55px;
    }
    .whatsapp-icon-svg {
        width: 30px;
        height: 30px;
    }
    .whatsapp-pulse-ring {
        width: 55px;
        height: 55px;
    }
    .whatsapp-tooltip {
        display: none; /* Ocultar tooltip en móviles para no obstruir pantalla */
    }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVO GLOBAL — Edge-to-Edge en todos los monitores
   Dual Service Electronic — Todas las páginas
   VERSIÓN CORREGIDA — sin conflictos con iconos ni layouts
═══════════════════════════════════════════════════════════════ */

/* ─── BASE EDGE-TO-EDGE ─── */
html {
    overflow-x: hidden;
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Secciones y bloques principales al 100% de ancho */
section,
.service-hero-3d,
.hero-section-full,
.services-section-full,
footer,
header.site-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Imágenes (NO SVG ni iconos) no desbordan */
img {
    max-width: 100%;
}

/* Contenedor de texto largo con word-wrap */
.card-3d-detail,
.item-3d-check {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ─── TABLET 768px – 1024px ─── */
@media (max-width: 1024px) {
    header.site-header {
        padding: 0.65rem 1.25rem;
    }
    .header-container {
        max-width: 100%;
    }
    .hero-content-wrap {
        padding: 2.5rem 1.25rem;
    }
    .hero-card-3d-modern {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    .hero-title-main {
        font-size: 1.8rem;
    }
    /* Catálogos → 2 columnas en tablet */
    .hp-service-grid,
    .dse-service-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .card-3d-detail {
        padding: 1.6rem 1.2rem;
    }
}

/* ─── MÓVIL — hasta 768px ─── */
@media (max-width: 768px) {

    /* HEADER */
    header.site-header {
        padding: 0.6rem 1rem;
    }
    .header-container {
        max-width: 100%;
    }
    .logo-brand-sub {
        display: none;
    }

    /* HERO */
    .hero-section-full {
        min-height: 380px;
    }
    .hero-content-wrap {
        padding: 1.75rem 1rem;
    }
    .hero-card-3d-modern {
        max-width: 100%;
        padding: 1.5rem 1.1rem;
        border-radius: 16px;
    }
    .hero-title-main {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    .hero-subtitle-main {
        font-size: 0.95rem;
    }
    .hero-badge-pill {
        font-size: 0.75rem;
        padding: 0.35rem 0.85rem;
    }

    /* CATÁLOGO GRID → 1 columna en móvil */
    .hp-service-grid,
    .dse-service-grid {
        grid-template-columns: 1fr !important;
        gap: 0.9rem !important;
    }

    /* BARRA SOPORTE */
    .hp-support-bar,
    .dse-support-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
        gap: 1rem;
    }
    .hp-btn-wa,
    .dse-btn-wa {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    /* BANNER URGENTE */
    .dse-banner {
        border-left-width: 6px;
        border-radius: 14px;
    }
    .dse-banner h2 {
        font-size: 1.3rem;
    }
    .dse-banner-cut {
        display: none;
    }
    .dse-btn-red,
    .dse-btn-ghost {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    /* TARJETAS DETALLE SERVICIO */
    .card-3d-detail {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }
    .item-3d-check {
        padding: 0.75rem 0.85rem;
    }
    .gallery-3d-frame img {
        height: 200px;
        object-fit: cover;
    }

    /* CATÁLOGO HOMEPAGE */
    #servicios {
        padding: 2rem 0.75rem 2.5rem;
    }
    #servicios h2 {
        font-size: 1.4rem;
    }
    .hp-catalog-card {
        padding: 1.2rem 1rem;
    }

    /* HERO PÁGINA DE SERVICIO */
    .service-hero-3d {
        padding: 2rem 1rem 1.75rem;
    }
    .service-hero-content h1 {
        font-size: 1.5rem;
    }
    .btn-3d-red-action {
        width: 100%;
        justify-content: center;
    }

    /* BREADCRUMB */
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.8rem;
    }
}

/* ─── MÓVIL PEQUEÑO — hasta 480px ─── */
@media (max-width: 480px) {
    header.site-header {
        padding: 0.55rem 0.75rem;
    }
    .logo-brand-img {
        height: 40px;
    }
    .logo-brand-3d-red {
        font-size: 1.05rem;
    }
    .logo-brand-3d-blue {
        font-size: 0.9rem;
    }

    .hero-title-main {
        font-size: 1.25rem;
    }
    .hero-card-3d-modern {
        padding: 1.15rem 0.9rem;
    }

    .dse-banner {
        padding: 1.25rem 1rem;
    }
    .dse-banner h2 {
        font-size: 1.1rem;
    }

    .hp-catalog-card,
    .dse-catalog-card {
        padding: 1rem 0.9rem;
    }
    .hp-icon-circle,
    .dse-icon-wrap {
        width: 44px;
        height: 44px;
    }
}

/* ─── MONITORES GRANDES > 1400px ─── */
@media (min-width: 1400px) {
    .hero-content-wrap {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
    header.site-header {
        padding: 0.75rem 2.5rem;
    }
}

/* ─── WHATSAPP FLOAT — safe area en iPhones con notch ─── */
@supports (padding: max(0px)) {
    .whatsapp-float {
        bottom: max(24px, calc(24px + env(safe-area-inset-bottom)));
        right: max(24px, calc(24px + env(safe-area-inset-right)));
    }
}


/* ─── BASE EDGE-TO-EDGE: sin márgenes laterales en el body ─── */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Todas las secciones y bloques principales van al 100% de ancho */
section, .service-hero-3d, .hero-section-full,
.services-section-full, footer, header.site-header {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Contenedores internos con max-width se centran solos */
.container, .services-container-inner,
.hero-content-wrap, .service-hero-content {
    width: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
}

/* ─── TABLET — 768px a 1024px ─── */
@media (max-width: 1024px) {
    /* Header más compacto */
    header.site-header { padding: 0.65rem 1.25rem !important; }
    .header-container { max-width: 100% !important; }

    /* Hero ajustado */
    .hero-content-wrap { padding: 2.5rem 1.25rem !important; }
    .hero-card-3d-modern { max-width: 100% !important; padding: 2rem 1.5rem !important; }
    .hero-title-main { font-size: 1.8rem !important; }

    /* Catálogo servicio.php y index.php */
    .hp-service-grid,
    .dse-service-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* Banner urgente */
    .dse-banner .row { flex-direction: column !important; }

    /* Contenido de servicios */
    .card-3d-detail { padding: 1.6rem 1.2rem !important; }
}

/* ─── MÓVIL — hasta 768px ─── */
@media (max-width: 768px) {

    /* ── HEADER MÓVIL ── */
    header.site-header {
        padding: 0.6rem 1rem !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
    .header-container { max-width: 100% !important; }

    /* Ocultar texto del logo en pantallas muy pequeñas */
    .logo-brand-sub { display: none !important; }

    /* ── HERO ── */
    .hero-section-full { min-height: 420px !important; }
    .hero-content-wrap { padding: 2rem 1rem !important; }
    .hero-card-3d-modern {
        max-width: 100% !important;
        padding: 1.5rem 1.1rem !important;
        border-radius: 16px !important;
    }
    .hero-title-main { font-size: 1.5rem !important; line-height: 1.25 !important; }
    .hero-subtitle-main { font-size: 0.95rem !important; }
    .hero-badge-pill { font-size: 0.75rem !important; padding: 0.35rem 0.85rem !important; }

    /* ── CATÁLOGO GRID 1 COLUMNA ── */
    .hp-service-grid,
    .dse-service-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* ── BARRA SOPORTE ── */
    .hp-support-bar,
    .dse-support-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1.25rem !important;
        gap: 1rem !important;
    }
    .hp-btn-wa, .dse-btn-wa {
        width: 100% !important;
        justify-content: center !important;
    }

    /* ── BANNER URGENTE ── */
    .dse-banner { border-left-width: 6px !important; border-radius: 14px !important; }
    .dse-banner .row, .dse-banner > div > .row {
        flex-direction: column !important;
    }
    .dse-banner h2 { font-size: 1.35rem !important; }
    .dse-banner-cut { display: none !important; }
    .dse-btn-red, .dse-btn-ghost {
        width: 100% !important;
        justify-content: center !important;
        font-size: .88rem !important;
    }

    /* ── TARJETAS DE SERVICIO (servicio.php) ── */
    .card-3d-detail {
        padding: 1.25rem 1rem !important;
        border-radius: 14px !important;
    }
    .item-3d-check { padding: 0.75rem 0.85rem !important; }
    .gallery-3d-frame img { height: 200px !important; }

    /* ── SECCIÓN CATÁLOGO HP (index.php) ── */
    #servicios { padding: 2rem 0.75rem 2.5rem !important; }
    #servicios h2 { font-size: 1.45rem !important; }
    .hp-catalog-card { padding: 1.2rem 1rem !important; }

    /* ── FOOTER ── */
    footer .container,
    footer > div > div,
    .site-footer-inner { flex-direction: column !important; gap: 1.5rem !important; }

    /* ── BREADCRUMB ── */
    .breadcrumb { flex-wrap: wrap !important; font-size: 0.8rem !important; }

    /* ── SECCIÓN HERO SERVICIO ── */
    .service-hero-3d { padding: 2.2rem 1rem 1.8rem !important; }
    .service-hero-content { padding: 0 !important; }
    .service-hero-content h1 { font-size: 1.5rem !important; }
    .btn-3d-red-action { width: 100% !important; justify-content: center !important; }
}

/* ─── MÓVIL PEQUEÑO — hasta 480px ─── */
@media (max-width: 480px) {
    header.site-header { padding: 0.55rem 0.75rem !important; }
    .logo-brand-img { height: 40px !important; }
    .logo-brand-3d-red { font-size: 1.05rem !important; }
    .logo-brand-3d-blue { font-size: 0.9rem !important; }

    .hero-title-main { font-size: 1.3rem !important; }
    .hero-card-3d-modern { padding: 1.2rem 0.9rem !important; }

    .dse-support-bar, .hp-support-bar { border-radius: 12px !important; }

    /* Banner */
    .dse-banner { padding: 1.5rem 1rem !important; }
    .dse-banner h2 { font-size: 1.15rem !important; }
    .dse-banner p { font-size: 0.88rem !important; }

    /* Tarjetas catálogo */
    .hp-catalog-card, .dse-catalog-card { padding: 1rem 0.9rem !important; }
    .hp-icon-circle, .dse-icon-wrap { width: 44px !important; height: 44px !important; }
    .hp-icon-circle i, .dse-icon-wrap i { width: 20px !important; height: 20px !important; }
}

/* ─── MONITORES GRANDES (>1400px): sin límite de ancho ─── */
@media (min-width: 1400px) {
    .hero-content-wrap { max-width: 1400px !important; }
    .container { max-width: 1320px !important; }
    header.site-header { padding: 0.75rem 3rem !important; }
}

/* ─── FIX: Bootstrap container no tiene bordes laterales ─── */
.container, .container-fluid, .container-lg, .container-xl {
    padding-left: max(1rem, env(safe-area-inset-left)) !important;
    padding-right: max(1rem, env(safe-area-inset-right)) !important;
}

/* ─── FIX: imágenes y SVG no desbordan ─── */
img:not(.logo-brand-img):not(.gallery-3d-frame img), svg, video, iframe {
    max-width: 100% !important;
    height: auto !important;
}

/* ─── FIX: Galería de imágenes 100% ancho y alto sin espacios blancos ─── */
.gallery-3d-frame {
    width: 100% !important;
    height: 280px !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 14px !important;
}
.gallery-3d-frame img {
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* ─── FIX: overflow en contenido de servicios ─── */
.card-3d-detail, .item-3d-check {
    overflow: hidden !important;
    word-break: break-word !important;
}

/* ─── SAFE AREA para notch/home bar en iPhones ─── */
body {
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
}
.whatsapp-float {
    bottom: calc(24px + env(safe-area-inset-bottom, 0)) !important;
    right: calc(24px + env(safe-area-inset-right, 0)) !important;
}

/* ─── BOTÓN HABLAR CON UN INGENIERO ROJO NEÓN 3D ─── */
.hp-btn-wa {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: linear-gradient(135deg, #FF0033 0%, #D90429 50%, #9B001C 100%) !important;
    color: #ffffff !important;
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    font-weight: 900 !important;
    font-size: 0.95rem !important;
    padding: 0.85rem 1.8rem !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 8px 25px rgba(217, 4, 41, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.35) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

/* -------------------------------------------------------------
   PIE DE PÁGINA FUTURISTA UNIFICADO (DSE NEON CIRCUIT FOOTER)
   ------------------------------------------------------------- */
.dse-unified-footer {
    width: 100% !important;
    position: relative !important;
    background: linear-gradient(180deg, rgba(13, 22, 41, 0.96) 0%, rgba(7, 12, 23, 0.99) 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
}

/* Línea de brillo neón multicolor superior */
.dse-footer-top-line {
    height: 3px !important;
    width: 100% !important;
    background: linear-gradient(90deg, #005bea 0%, #7f00ff 45%, #ff0055 100%) !important;
    box-shadow: 0 0 12px rgba(127, 0, 255, 0.6) !important;
}

/* Envoltorio del contenido */
.dse-footer-content-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 1.25rem 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    background-image: radial-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
}

/* Texto centrado */
.dse-footer-text {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
    text-align: center !important;
    z-index: 2 !important;
}

.dse-footer-copy {
    color: #94a3b8 !important;
}

.dse-footer-brand {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.dse-footer-sep {
    color: rgba(255, 255, 255, 0.25) !important;
    margin: 0 8px !important;
    font-weight: 300 !important;
}

.dse-footer-link {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

.dse-footer-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
}

/* Marcas de agua sutiles laterales */
.dse-footer-icon-left {
    position: absolute !important;
    left: 25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #38bdf8 !important;
    opacity: 0.18 !important;
    display: flex !important;
    align-items: center !important;
    pointer-events: none !important;
}

.dse-footer-icon-right {
    position: absolute !important;
    right: 25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #ff0055 !important;
    opacity: 0.18 !important;
    display: flex !important;
    align-items: center !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .dse-footer-icon-left,
    .dse-footer-icon-right {
        display: none !important;
    }
    .dse-footer-content-wrap {
        padding: 1rem 1rem !important;
    }
    .dse-footer-text {
        font-size: 0.82rem !important;
    }
}

/* -------------------------------------------------------------
   BOTÓN AZUL NEÓN 3D GLOBAL (SOLICITAR DIAGNÓSTICO AHORA)
   ------------------------------------------------------------- */
.btn-neon-blue-3d {
    background: linear-gradient(135deg, #00d2ff 0%, #0072ff 50%, #0040aa 100%) !important;
    color: #ffffff !important;
    border: 2px solid #38bdf8 !important;
    border-radius: 14px !important;
    padding: 0.85rem 1.8rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    text-decoration: none !important;
    box-shadow: 
        0 0 18px rgba(0, 210, 255, 0.85),
        0 0 32px rgba(0, 114, 255, 0.5),
        0 8px 25px rgba(0, 114, 255, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-neon-blue-3d:hover {
    background: linear-gradient(135deg, #33f5ff 0%, #0088ff 50%, #0055d4 100%) !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 
        0 0 28px rgba(0, 210, 255, 1),
        0 0 48px rgba(0, 114, 255, 0.8),
        0 12px 30px rgba(0, 114, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.btn-neon-blue-3d .btn-text-3d {
    font-family: 'Inter', sans-serif !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: 
        0 2px 0 #003b80,
        0 3.5px 0 #002654,
        0 5px 6px rgba(0, 0, 0, 0.7) !important;
    letter-spacing: 0.02em !important;
}

.btn-neon-blue-3d i, .btn-neon-blue-3d svg {
    color: #00f2fe !important;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.9)) drop-shadow(0 2px 3px rgba(0,0,0,0.5)) !important;
    transition: transform 0.3s ease !important;
}

.btn-neon-blue-3d:hover i, .btn-neon-blue-3d:hover svg {
    transform: scale(1.15) rotate(8deg) !important;
}

/* -------------------------------------------------------------
   ADAPTACIÓN Y ESTILOS RESPONSIVOS PARA CELULARES Y TABLETS
   PANEL ERP DASHBOARD & PANEL ADMIN CMS
   ------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Sidebars de navegación móvil como menú lateral desplegable */
    .sidebar-admin, .sidebar-cms {
        position: fixed !important;
        top: 44px !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 290px !important;
        z-index: 100000 !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.75) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-admin:not(.show), .sidebar-cms:not(.show) {
        display: none !important;
    }

    .sidebar-admin.show, .sidebar-cms.show {
        display: block !important;
        animation: fadeInAdminSidebar 0.25s ease-out forwards;
    }

    @keyframes fadeInAdminSidebar {
        from { opacity: 0; transform: translateX(-20px); }
        to { opacity: 1; transform: translateX(0); }
    }

    /* Ajuste de contenedor principal de administración en celular */
    .admin-main-content, .cms-main-content {
        padding: 1rem 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Reestructuración de la barra de título superior en celular */
    .admin-main-content > .d-flex.pb-2,
    .cms-main-content > .d-flex.pb-2 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .admin-main-content > .d-flex.pb-2 > h2,
    .cms-main-content > .d-flex.pb-2 > h2 {
        font-size: 1.35rem !important;
        text-align: left !important;
    }

    .admin-main-content > .d-flex.pb-2 > .d-flex,
    .cms-main-content > .d-flex.pb-2 > .d-flex {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    /* Adaptación de tablas de gestión en celulares */
    .table-responsive {
        border-radius: 10px !important;
        border: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        margin-bottom: 1rem !important;
    }

    .table {
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }

    .table th, .table td {
        padding: 0.6rem 0.75rem !important;
    }

    /* Gráficos y Tarjetas KPI del Dashboard en celular */
    .card {
        margin-bottom: 0.85rem !important;
        border-radius: 12px !important;
    }

    .card-header {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    /* Modal dialogs en móviles */
    .modal-dialog {
        margin: 0.5rem !important;
    }

    /* Ajuste de formularios en modal */
    .form-control, .form-select {
        font-size: 0.95rem !important;
        padding: 0.6rem 0.75rem !important;
    }
}



