/* ==========================================
   RESET & CONFIGURACIÓN GENERAL
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   CONTROL DE VISTAS (SPA - SIN SCROLL VERTICAL)
   ========================================== */
.page-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding-top: 40px; /* Ajustado para que Servicios y Cobertura queden alineados igual que Nosotros */
    padding-bottom: 60px;
}

.page-section.active-section {
    display: block;
    opacity: 1;
}

/* ==========================================
   TOPBAR
   ========================================== */
.topbar {
    background-color: #0f172a;
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    gap: 20px;
}

.top-left span, .top-right span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar i {
    color: #84cc16;
}

/* ==========================================
   HEADER & LOGO (FIJO Y UNIFICADO SIN BLANCO)
   ========================================== */
header {
    position: fixed;
    width: 100%;
    top: 33px; /* Respeta tu topbar */
    left: 0;
    z-index: 999;
    background: #0f172a;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

header .container {
    height: 75px; /* Altura compacta y uniforme para toda la barra */
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 42px; /* Tamaño real controlado, sin necesidad de scale() */
    width: auto;
    object-fit: contain;
    display: block;
    margin-left: 0;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
    cursor: pointer;
}

header nav ul li a:hover, header nav ul li a.active {
    color: #84cc16 !important;
}

.btn-primary {
    background-color: #84cc16;
    color: #0f172a;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #65a30d;
    transform: translateY(-2px);
}

/* ==========================================
   HERO SECTION CON 6 KPIS (3x2)
   ========================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 145px 0 80px 0; /* Este sí necesita el espacio grande por la topbar y el header fijo */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(132, 204, 22, 0.15);
    color: #a3e635;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(132, 204, 22, 0.3);
}

.hero h1 {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
}

.highlight-text {
    color: #84cc16;
}

.hero p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-green {
    background-color: #84cc16;
    color: #0f172a;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(132, 204, 22, 0.3);
    transition: all 0.3s ease;
}

.btn-green:hover {
    background-color: #65a30d;
    transform: translateY(-2px);
}

.btn-white {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-white:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Buscador de guías en Hero */
.tracking-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: #0f172a;
    max-width: 500px;
}

.tracking-box h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tracking-form {
    display: flex;
    gap: 10px;
}

.tracking-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.tracking-form input:focus {
    border-color: #84cc16;
}

.tracking-form button {
    background-color: #84cc16;
    color: #0f172a;
    border: none;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tracking-form button:hover {
    background-color: #65a30d;
}

/* Grid compacto de 6 Tarjetas (2 columnas, 3 filas) */
.hero-right {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    align-self: flex-start;
    width: 100%;
}

.floating-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 14px 10px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.floating-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(132, 204, 22, 0.4);
}

.floating-card h2 {
    font-size: 20px;
    font-weight: 800;
    color: #84cc16;
    margin-bottom: 2px;
}

.floating-card span {
    font-size: 11px;
    color: #cbd5e1;
    font-weight: 500;
}

/* ==========================================
   ESTADÍSTICAS / STATS
   ========================================== */
.stats {
    background-color: #ffffff;
    padding: 35px 0;
    border-bottom: 1px solid #e2e8f0;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat h2 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.stat p {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* ==========================================
   SECCIONES COMUNES
   ========================================== */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.section-tag {
    display: inline-block;
    color: #65a30d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.section-title p {
    color: #64748b;
    font-size: 15px;
}

/* ==========================================
   ACERCA DE / ABOUT
   ========================================== */
.about-card:hover {
    transform: translateY(-3px);
    border-color: rgba(132, 204, 22, 0.5) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.about-card {
    transition: all 0.3s ease;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 80px;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-card i {
    font-size: 22px;
    color: #84cc16;
    margin-bottom: 12px;
}

.about-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
}

.about-card p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* ==========================================
   SERVICIOS
   ========================================== */
.services {
    background-color: #ffffff;
    padding-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 30px 25px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #84cc16;
    background: #ffffff;
}

.service-icon {
    width: 45px;
    height: 45px;
    background: rgba(132, 204, 22, 0.15);
    color: #65a30d;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* ==========================================
   COBERTURA INTERACTIVA Y RUTAS
   ========================================== */
.coverage-interactive-section {
    background-color: #0f172a;
    color: #ffffff;
}

.coverage-map-banner {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.map-img {
    width: 100%;
    height: auto;
    display: block;
}

.routes-title {
    font-size: 18px;
    font-weight: 700;
    color: #84cc16;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.routes-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
    padding-bottom: 60px;
}

.route-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    backdrop-filter: blur(10px);
}

.route-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: #a3e635;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
}

.route-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.route-box ul li {
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.route-box ul li::before {
    content: "•";
    color: #84cc16;
    font-weight: bold;
}

.scrollable-list {
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
}

.scrollable-list::-webkit-scrollbar {
    width: 4px;
}

.scrollable-list::-webkit-scrollbar-thumb {
    background: rgba(132, 204, 22, 0.3);
    border-radius: 4px;
}

/* ==========================================
   WHATSAPP FLOTANTE
   ========================================== */
.chatbot-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-tooltip {
    background: #ffffff;
    color: #0f172a;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.chatbot-btn {
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.chatbot-btn:hover {
    transform: scale(1.1);
}

/* ==========================================
   ESTILOS DE LÍNEA DE TIEMPO PARA RASTREO
   ========================================== */
.tracking-result-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    color: #333;
    text-align: left;
}

.timeline {
    position: relative;
    padding-left: 25px;
    margin: 15px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: #e2e8f0;
}

.timeline-step {
    position: relative;
    margin-bottom: 18px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 4px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #cbd5e1;
}

.timeline-step.completed::before {
    background: #10b981;
    box-shadow: 0 0 0 2px #d1fae5;
}

.timeline-step.active-step::before {
    background: #3b82f6;
    box-shadow: 0 0 0 3px #bfdbfe;
}

.timeline-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-content h4 i {
    color: #65a30d; 
    font-size: 15px;
}

.timeline-content span {
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.btn-download-img {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-download-img:hover {
    background: #1d4ed8;
}

/* ==========================================
   CORRECCIÓN AISLADA PARA LAS TARJETAS (NOSOTROS / SERVICIOS)
   ========================================== */

/* Contenedor en cuadrícula flexible y limpio */
.about-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-top: 30px !important;
    margin-bottom: 40px !important;
}

/* Columna derecha contenedora de las tarjetas tecnológicas */
.about-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    height: 100% !important;
}

/* Tarjetas individuales con altura y distribución uniforme */
.about-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Asegurar distribución interna flex para evitar que el texto se encime al icono */
.about-card-content {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    width: 100% !important;
}

/* Imagen o bloque izquierdo de la torre de control */
.about-image {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.tech-hero-box {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* ==========================================
   CORRECCIÓN PARA EL CTA DE DESARROLLADORES
   ========================================== */

.tech-cta-box {
    display: flex !important;
    flex-wrap: wrap !important; /* Permite que el botón baje si no hay espacio horizontal */
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    background-color: #f8fafc !important; /* Ajusta según el color de fondo que uses */
    padding: 25px !important;
    border-radius: 12px !important;
    margin-top: 40px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.tech-cta-text {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex: 1 1 300px !important; /* Ocupa el espacio disponible pero asegura un ancho mínimo */
    min-width: 0 !important;
}

.tech-cta-box .btn-green {
    flex-shrink: 0 !important; /* Evita que el botón se deforme o colapse */
}


/* ==========================================
   PANEL HUD AVANZADO - TORRE DE CONTROL
   ========================================== */

.hud-panel-advanced {
    background: linear-gradient(145deg, #090d16 0%, #111827 100%) !important;
    border: 1px solid rgba(132, 204, 22, 0.35) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Efecto de luz láser de escaneo en la parte superior */
.hud-panel-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #84cc16, transparent);
    animation: laserScan 4s infinite linear;
}

@keyframes laserScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hud-top-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.hud-badge-tech {
    background: rgba(132, 204, 22, 0.1) !important;
    color: #84cc16 !important;
    border: 1px solid rgba(132, 204, 22, 0.3) !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #84cc16;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.7);
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(132, 204, 22, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(132, 204, 22, 0); }
}

.hud-status-live {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #84cc16;
    background: rgba(132, 204, 22, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(132, 204, 22, 0.2);
}

.hud-content-area h3 {
    color: #ffffff !important;
    font-size: 24px !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
}

.hud-content-area p {
    color: #94a3b8 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.hud-metrics-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 20px !important;
    margin-top: 5px !important;
}

.hud-metric-box {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 15px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    transition: all 0.3s ease;
}

.hud-metric-box:hover {
    border-color: rgba(132, 204, 22, 0.4) !important;
    background: rgba(132, 204, 22, 0.04) !important;
    transform: translateY(-2px);
}

.metric-icon-wrap {
    font-size: 22px;
    color: #84cc16;
    background: rgba(132, 204, 22, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.metric-data h4 {
    color: #ffffff !important;
    font-size: 20px !important;
    margin: 0 0 2px 0 !important;
    font-weight: 700 !important;
}

.metric-data span {
    color: #94a3b8 !important;
    font-size: 12px !important;
}

/* ==========================================
   MÓDULO CENTRAL DE ENTREGAS Y RUTA (HUD)
   ========================================== */

.delivery-tracker-module {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(132, 204, 22, 0.25) !important;
    border-radius: 12px !important;
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.delivery-progress-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background: rgba(132, 204, 22, 0.03) !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.delivery-steps {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
}

.delivery-steps .step {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.delivery-steps .step.completed {
    color: #84cc16 !important;
}

.delivery-steps .step.active {
    color: #ffffff !important;
}

.delivery-steps .step.active i {
    color: #84cc16 !important;
}

/* Barra de progreso con camión en movimiento animado */
.progress-track-bar {
    width: 100% !important;
    height: 6px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    position: relative !important;
    overflow: visible !important;
    margin-top: 5px !important;
}

.progress-fill-animation {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 65% !important; /* Simula el avance actual de la flota */
    background: linear-gradient(90deg, rgba(132, 204, 22, 0.5), #84cc16) !important;
    border-radius: 10px !important;
    animation: pulseTrack 2s infinite ease-in-out;
}

/* Icono de camión flotante que se desplaza al borde del progreso */
.truck-icon-pulse {
    position: absolute !important;
    right: -10px !important;
    top: -10px !important;
    width: 24px !important;
    height: 24px !important;
    background-color: #84cc16 !important;
    color: #090d16 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    box-shadow: 0 0 10px rgba(132, 204, 22, 0.9);
    animation: truckBlink 1.5s infinite alternate;
}

@keyframes truckBlink {
    0% { transform: scale(0.9); box-shadow: 0 0 5px rgba(132, 204, 22, 0.5); }
    100% { transform: scale(1.1); box-shadow: 0 0 12px rgba(132, 204, 22, 1); }
}

@keyframes pulseTrack {
    0% { opacity: 0.8; }
    50% { opacity: 1; filter: brightness(1.2); }
    100% { opacity: 0.8; }
}


.tracking-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tracking-form-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.tracking-form {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
}

.tracking-form input#guideInput {
    flex: 1 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(132, 204, 22, 0.3) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    outline: none !important;
}

.tracking-form input#guideInput:focus {
    border-color: #84cc16 !important;
    box-shadow: 0 0 10px rgba(132, 204, 22, 0.25);
}

.tracking-form button[type="submit"] {
    background: #84cc16 !important;
    color: #090d16 !important;
    border: none !important;
    padding: 0 20px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease;
}

.tracking-form button[type="submit"]:hover {
    background: #65a30d !important;
    box-shadow: 0 0 12px rgba(132, 204, 22, 0.5);
}

/* ==========================================
   ESTILOS PARA EL COMPROBANTE (FONDO CLARO Y CUADRO ADAPTABLE)
   ========================================== */

.tracking-pod-preview {
    background: #f8fafc !important; /* Fondo claro y limpio */
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-top: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.tracking-pod-preview > span {
    color: #334155 !important; /* Texto oscuro para mayor legibilidad sobre fondo claro */
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Cuadro adaptable para la imagen preliminar */
.pod-thumbnail-container {
    position: relative !important;
    width: 100% !important;
    max-width: 220px !important; /* Ancho máximo controlado para que sea un cuadro estético */
    height: 140px !important; /* Altura fija para mantener proporción */
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin: 0 auto !important; /* Centrado (puedes quitarlo si lo prefieres a la izquierda) */
}

/* Imagen que se adapta perfectamente al cuadro sin estirarse de más */
.pod-img-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Cambiado a contain para que la foto completa encaje sin recortarse */
    background-color: #f1f5f9;
    transition: transform 0.3s ease;
}

.pod-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pod-zoom-overlay i {
    color: #84cc16;
    font-size: 16px;
}

.pod-thumbnail-container:hover .pod-zoom-overlay {
    opacity: 1;
}

.pod-thumbnail-container:hover .pod-img-thumb {
    transform: scale(1.05);
}

/* ==========================================
   TEXTO BLANCO EN LÍNEA DE TIEMPO DE RASTREO
   ========================================== */

/* Asegura que tanto el título como la fecha sean blancos y legibles */
.timeline-content h4,
.timeline-content strong,
.timeline-content span,
.timeline-content small {
    color: #ffffff !important;
}

/* Opcional: si quieres que la fecha mantenga un tono ligeramente más sutil (gris claro) para contrastar con el título blanco */
.timeline-content span,
.timeline-content small {
    color: #e2e8f0 !important;
    opacity: 0.9;
}
/* ==========================================
   TEXTO DE GUÍA N° EN BLANCO
   ========================================== */

.guide-number-title,
.guide-number-title i,
.guide-number-title strong,
.result-header p,
.result-header strong {
    color: #ffffff !important;
}

/* Opcional: Si quieres que el número de la guía resalte con el color verde característico de la interfaz */
.guide-number-title strong,
.result-header strong {
    color: #84cc16 !important;
}

/* ==========================================
   ESTILOS ROBUSTOS - TORRE DE CONTROL SERVICIOS
   ========================================== */

.services-section-hud {
    width: 100% !important;
    padding: 80px 20px !important;
    background: radial-gradient(circle at center, #0f172a 0%, #090d16 100%) !important;
    box-sizing: border-box !important;
    border-top: 1px solid rgba(132, 204, 22, 0.15) !important;
    border-bottom: 1px solid rgba(132, 204, 22, 0.15) !important;
}

.services-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 45px !important;
}

.services-header-hud {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
}

.hud-top-metrics {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.metric-tag {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.metric-tag i {
    color: #84cc16 !important;
}

.services-header-hud h2 {
    color: #ffffff !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    letter-spacing: -0.5px !important;
}

.services-header-hud p {
    color: #94a3b8 !important;
    font-size: 16px !important;
    max-width: 650px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Grilla robusta */
.services-grid-hud {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
    gap: 30px !important;
}

/* Tarjeta HUD Avanzada */
.service-card-hud {
    background: linear-gradient(160deg, #0f172a 0%, #111827 100%) !important;
    border: 1px solid rgba(132, 204, 22, 0.25) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-hud:hover {
    border-color: #84cc16 !important;
    box-shadow: 0 0 25px rgba(132, 204, 22, 0.3) !important;
    transform: translateY(-6px);
}

.service-card-hud.active-card {
    border-color: #84cc16 !important;
    background: linear-gradient(160deg, #111c33 0%, #0f172a 100%) !important;
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.2);
}

/* Barra de estado interna superior tipo HUD */
.card-status-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-bottom: 12px !important;
}

.card-status-bar .service-top-icon {
    margin-left: auto !important;
    color: #475569 !important;
    font-size: 14px !important;
}

.status-indicator {
    width: 8px !important;
    height: 8px !important;
    background-color: #ef4444 !important;
    border-radius: 50% !important;
}

.status-indicator.active {
    background-color: #84cc16 !important;
    box-shadow: 0 0 8px #84cc16;
}

.pulse-gold {
    animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(132, 204, 22, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(132, 204, 22, 0); }
}

/* Caja de Icono Principal */
.service-icon-box {
    width: 65px !important;
    height: 65px !important;
    background: rgba(132, 204, 22, 0.08) !important;
    border: 1px solid rgba(132, 204, 22, 0.25) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #84cc16 !important;
    font-size: 26px !important;
    transition: all 0.3s ease;
}

.service-card-hud:hover .service-icon-box {
    background: #84cc16 !important;
    color: #090d16 !important;
    box-shadow: 0 0 15px rgba(132, 204, 22, 0.6);
}

/* Contenido y Listas Técnicas */
.service-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.service-content h3 {
    color: #ffffff !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.service-content p {
    color: #94a3b8 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.service-specs-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 10px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.service-specs-list li {
    color: #cbd5e1 !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.service-specs-list li i {
    color: #84cc16 !important;
    font-size: 11px !important;
}

/* Footer de la tarjeta con Acciones */
.card-action-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 16px !important;
    margin-top: auto !important;
}

.spec-badge {
    background: rgba(132, 204, 22, 0.08);
    color: #84cc16;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(132, 204, 22, 0.2);
}

.spec-badge.highlight {
    background: #84cc16;
    color: #090d16;
}

.hud-mini-btn {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease;
}

.hud-mini-btn:hover {
    border-color: #84cc16 !important;
    color: #84cc16 !important;
    background: rgba(132, 204, 22, 0.05) !important;
}

.hud-mini-btn.primary {
    background: #84cc16 !important;
    color: #090d16 !important;
    border-color: #84cc16 !important;
    font-weight: 700 !important;
}

.hud-mini-btn.primary:hover {
    background: #65a30d !important;
    box-shadow: 0 0 10px rgba(132, 204, 22, 0.4);
}

/* Línea de brillo inferior */
.card-glow-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #84cc16, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-hud:hover .card-glow-line {
    opacity: 1;
}

/* Contenedor que agrupa ambos elementos */
.services-header-hud .hud-top-metrics {
    display: flex;
    align-items: center; /* Alinea verticalmente al centro */
    gap: 15px;           /* Espacio horizontal entre los dos elementos */
    flex-wrap: wrap;     /* Permite que bajen si la pantalla es muy pequeña */
}

/* Opcional: Asegurar que las etiquetas no tengan márgenes internos que rompan el centrado */
.services-header-hud .hud-badge-tech,
.services-header-hud .metric-tag {
    margin: 0;
}

/* =========================================
   ESTILOS SECCIÓN LOGIBOT (ROBUSTA)
   ========================================= */
.logibot-hero-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 30px;
}

@media(max-width: 1024px) {
    .logibot-hero-grid {
        grid-template-columns: 1fr;
    }
}

.logibot-avatar-card {
    padding: 25px;
    text-align: center;
    position: relative;
    background: linear-gradient(145deg, rgba(16, 24, 39, 0.9), rgba(11, 15, 25, 0.95));
    border: 1px solid rgba(163, 230, 53, 0.2);
    border-radius: 16px;
}

.logibot-img-container {
    width: 100%;
    max-height: 320px;
    overflow: hidden;
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.logibot-render {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

.logibot-speech-bubble {
    background: rgba(163, 230, 53, 0.1);
    border: 1px solid rgba(163, 230, 53, 0.3);
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    text-align: left;
    position: relative;
}

.logibot-speech-bubble .quote-icon {
    color: #a3e635;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.logibot-speech-bubble p {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

.logibot-mini-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.mini-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
}

.mini-badge-item i {
    color: #a3e635;
    font-size: 1.1rem;
}

/* Columna derecha */
.logibot-desc-card {
    padding: 20px 25px;
    margin-bottom: 20px;
    background: rgba(16, 24, 39, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    line-height: 1.6;
}

.logibot-attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media(max-width: 768px) {
    .logibot-attributes-grid {
        grid-template-columns: 1fr;
    }
}

.logibot-attr-box {
    background: rgba(16, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.logibot-attr-box:hover {
    border-color: rgba(163, 230, 53, 0.4);
    transform: translateY(-2px);
}

.logibot-attr-box.full-width {
    grid-column: span 2;
}

@media(max-width: 768px) {
    .logibot-attr-box.full-width {
        grid-column: span 1;
    }
}

.attr-icon {
    background: rgba(163, 230, 53, 0.15);
    color: #a3e635;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.attr-content .attr-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #a3e635;
    margin-bottom: 5px;
}

.attr-content h4 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.attr-content p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.attr-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attr-list li {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attr-list li i {
    color: #a3e635;
    font-size: 0.8rem;
}

.logibot-cta-wrapper {
    margin-top: 25px;
    text-align: center;
}

.btn-pulse-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    padding: 16px 35px;
    box-shadow: 0 0 25px rgba(163, 230, 53, 0.4);
    transition: all 0.3s ease;
}

.btn-pulse-large:hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(163, 230, 53, 0.7);
}

/* =========================================
   ESTILO SÓLIDO Y ROBUSTO PARA TARJETAS LOGIBOT
   ========================================= */

/* Elimina desvanecidos y aplica un fondo sólido y borde nítido */
.page-section#logibot .logibot-avatar-card,
.page-section#logibot .logibot-desc-card,
.page-section#logibot .logibot-attr-box {
    background: #0f172a !important; /* Fondo totalmente sólido (Azul oscuro profundo) */
    border: 1px solid #334155 !important; /* Borde sutil y definido, sin difuminados */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; /* Sombra baja y limpia */
    backdrop-filter: none !important; /* Elimina cualquier efecto de difuminado trasero */
    opacity: 1 !important;
}

/* Efecto hover nítido al pasar el mouse */
.page-section#logibot .logibot-attr-box:hover {
    border-color: #a3e635 !important; /* Borde verde neón al pasar el cursor */
    background: #1e293b !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4) !important;
}

/* =========================================
   CORRECCIÓN DE TEXTOS EN MINI-BADGES LOGIBOT
   ========================================= */
.page-section#logibot .mini-badge-item {
    background: #0f172a !important; /* Fondo sólido oscuro */
    border: 1px solid #334155 !important; /* Borde definido */
}

.page-section#logibot .mini-badge-item span {
    color: #ffffff !important; /* Texto en blanco nítido */
    font-weight: 500;
}

.page-section#logibot .mini-badge-item i {
    color: #a3e635 !important; /* Ícono verde brillante */
}
/* =========================================
   CORRECCIÓN TÍTULO SUPERIOR LOGIBOT
   ========================================= */
.page-section#logibot .section-title h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-section#logibot .section-title p {
    color: #cbd5e1 !important;
}

/* =========================================
   CORRECCIÓN DE POSICIÓN Y CONTENEDOR DEL TÍTULO
   ========================================= */
.page-section#logibot .section-title {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.page-section#logibot .section-title h2 {
    color: #ffffff !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: none !important; /* Quitamos sombras extrañas */
}

.page-section#logibot .section-title p {
    color: #94a3b8 !important; /* Tono gris claro legible */
    font-size: 1.1rem;
    margin: 0 auto;
}
/* =========================================
   SOLUCIÓN DEFINITIVA: CONTRASTE DEL TÍTULO
   ========================================= */
.page-section#logibot .section-title h2 {
    color: #0f172a !important; /* Texto en azul oscuro sólido para que contraste con el fondo claro */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: none !important;
}

.page-section#logibot .section-title p {
    color: #475569 !important; /* Gris oscuro legible para el subtítulo */
    font-size: 1.1rem;
    margin: 0 auto;
}

.page-section#logibot .section-tag {
    background: rgba(15, 23, 42, 0.08) !important;
    color: #3f6212 !important; /* Verde oscuro visible para la etiqueta superior */
}

/* =========================================
   TARJETAS HUD IMPACTANTES (HERO-RIGHT)
   ========================================= */

.hero-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.floating-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(132, 204, 22, 0.25); /* Borde sutil verde neón */
    border-radius: 14px;
    padding: 20px;
    text-align: left;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto al pasar el cursor (Hover impactante) */
.floating-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #84cc16;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
    box-shadow: 0 12px 30px rgba(132, 204, 22, 0.25), inset 0 0 15px rgba(132, 204, 22, 0.1);
}

/* Tipografía de las cifras */
.floating-card h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(132, 204, 22, 0.3);
}

/* Subtítulo o etiqueta */
.floating-card span {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Línea decorativa inferior con brillo dinámico */
.floating-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #84cc16, transparent);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.floating-card:hover::after {
    opacity: 1;
}

/* =========================================
   ESTILOS SECCIÓN CONTACTO Y TRABAJA CON NOSOTROS
   ========================================= */

.contact-section-container {
    padding: 60px 20px;
}

.contact-grid-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .contact-grid-main {
        grid-template-columns: 1fr;
    }
}

.contact-card-hud {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(132, 204, 22, 0.25);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
}

/* Inputs personalizados estilo HUD */
.hud-text-input, .hud-select, .hud-file-input {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: all 0.3s ease;
    width: 100%;
}

.hud-text-input:focus, .hud-select:focus {
    border-color: #84cc16 !important;
    box-shadow: 0 0 10px rgba(132, 204, 22, 0.25);
}

.hud-textarea {
    resize: vertical;
    min-height: 100px;
}

.hud-file-input {
    padding: 8px !important;
    color: #94a3b8 !important;
    cursor: pointer;
}

.work-intro-text p {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.5;
}

.full-width {
    width: 100%;
    justify-content: center;
    padding: 12px !important;
    margin-top: 10px;
}
/* =========================================
   AJUSTES: FONDO MÁS OSCURO Y TARJETAS PROFUNDAS
   ========================================= */

/* Fondo general de la sección de contacto más oscuro */
#contacto {
    background: #060913 !important; /* Un tono casi negro muy tecnológico */
    padding: 60px 0;
}

/* Títulos y textos superiores más claros y visibles */
#contacto .section-title h2 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(132, 204, 22, 0.2);
}

#contacto .section-title p {
    color: #cbd5e1 !important; /* Letras superiores más claras y legibles */
    font-size: 1.05rem;
}

/* Tarjetas de contacto mucho más oscuras estilo HUD */
.contact-card-hud {
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.95) 0%, rgba(5, 8, 17, 0.98) 100%) !important;
    border: 1px solid rgba(132, 204, 22, 0.35) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Etiquetas dentro de los formularios más brillantes */
.form-group label {
    color: #e2e8f0 !important;
    font-weight: 600;
}
/* =========================================
   ESTILOS FOOTER HUD / INSTITUCIONAL
   ========================================= */

.hud-footer {
    background: #04060d; /* Fondo ultra oscuro de cierre */
    border-top: 1px solid rgba(132, 204, 22, 0.2);
    color: #94a3b8;
    font-size: 14px;
    padding-top: 60px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 30px;
    padding-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

/* Línea decorativa sutil debajo del título de cada columna */
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #84cc16;
}

.footer-desc {
    margin: 15px 0 20px 0;
    line-height: 1.6;
    font-size: 13px;
}

/* Redes sociales */
.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(132, 204, 22, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #84cc16;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: #84cc16;
    color: #04060d;
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(132, 204, 22, 0.4);
}

/* Listas de enlaces */
.footer-links, .footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #84cc16;
    padding-left: 4px;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.footer-contact-info i {
    color: #84cc16;
}

/* Insignia tecnológica del footer */
.footer-tech-badge {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(132, 204, 22, 0.3);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-tech-badge i {
    font-size: 24px;
    color: #84cc16;
}

.footer-tech-badge span {
    font-size: 11px;
    display: block;
    color: #64748b;
    text-transform: uppercase;
}

.footer-tech-badge a {
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.footer-tech-badge a:hover {
    color: #84cc16;
    text-decoration: underline;
}

.footer-status-text {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
}

/* Barra inferior de Copyright */
.footer-bottom {
    background: #020408;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    font-size: 12px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #84cc16;
}

/* ==========================================
   ESTILOS RESPONSIVE PARA MÓVILES Y TABLETS
   ========================================== */

@media (max-width: 992px) {
    /* 1. Topbar: Permitir que los datos de contacto bajen en columna si no caben */
    .topbar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 6px 15px;
    }

    .top-left {
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
    }

    /* Ajustar el desplazamiento superior del header ya que la topbar ahora es más alta en móviles */
    header {
        top: 60px; 
    }

    /* 2. Header y Menú: Apilar logo y navegación de forma limpia */
    header .container {
        height: auto;
        padding: 12px 15px;
        flex-direction: column;
        gap: 12px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }

    header nav ul li a {
        font-size: 13px;
    }

    /* Ocultar botón de cotizar superior en pantallas muy pequeñas si satura el menú (opcional) */
    header .btn-primary {
        display: none; 
    }

    /* 3. Hero y Secciones Principales: Convertir grillas dobles a una sola columna */
    .hero {
        padding-top: 140px; /* Espacio dinámico para que no lo tape el header fijo */
    }

    .hero-grid,
    .about-grid,
    .services-grid,
    .stats .container {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    /* Tarjetas del Hero (KPIs) en móviles de 2 columnas compactas */
    .hero-right {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Textos principales adaptados */
    .hero h1 {
        font-size: 28px;
    }

    .section-title h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    /* Ajustes extra para teléfonos muy pequeños */
    .hero-right {
        grid-template-columns: 1fr !important; /* Una sola columna para los KPIs en celulares pequeños */
    }
    
    header nav ul {
        gap: 8px 12px;
    }
    
    header nav ul li a {
        font-size: 12px;
    }
}

