/* =========================================
   CONFIGURACIÓN BASE
   ========================================= */
body {
    background-color: #111316; /* Dark Depth */
    color: #8D99AE;
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

.text-brand { color: var(--bx-brand); }
.section-padding { padding: 80px 0; }
.ls-2 { letter-spacing: 2px; }

/* =========================================
   1. HERO SECTION (Logística)
   ========================================= */
.delivery-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    margin-top: -85px;
    padding-top: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0b0c0e; /* Fondo casi negro */
}

/* Mapa de puntos de fondo */
.hero-map-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#2c3036 1px, transparent 1px);
    background-size: 30px 30px; /* Efecto grid de puntos */
    opacity: 0.3;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 214, 0, 0.1); /* Amarillo muy suave */
    color: var(--bx-yellow);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 214, 0, 0.3);
}

.text-highlight {
    color: var(--bx-yellow); /* Destacamos en amarillo logística */
    position: relative;
}

/* Línea animada en la parte inferior del hero */
.tracking-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
}

.tracking-dot {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bx-brand), transparent);
    position: absolute;
    top: 0;
    left: -100px;
    animation: trackMove 3s linear infinite;
}

@keyframes trackMove {
    0% { left: -10%; }
    100% { left: 110%; }
}

/* =========================================
   2. TIMELINE SECTION
   ========================================= */
.section-header .separator-dots span {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--bx-brand);
    border-radius: 50%;
    margin: 0 4px;
    opacity: 0.5;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.timeline-item {
    flex: 1;
    text-align: center;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.timeline-icon {
    width: 80px; height: 80px;
    background: #202328;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bx-white);
    transition: 0.3s;
}

/* Icono central destacado */
.icon-glow {
    border-color: var(--bx-brand);
    box-shadow: 0 0 20px rgba(255, 31, 46, 0.2);
    color: var(--bx-brand);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    background: var(--bx-brand);
    color: white;
    box-shadow: 0 0 20px rgba(255, 31, 46, 0.4);
    border-color: var(--bx-brand);
}

.step-badge {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #555;
    font-weight: 700;
    margin-bottom: 5px;
}

.badge-active { color: var(--bx-brand); }

.timeline-content h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Flecha conectora entre pasos */
.timeline-connector {
    padding-top: 30px;
    color: rgba(255,255,255,0.1);
    font-size: 1.5rem;
}

/* Responsive Timeline */
@media (max-width: 991px) {
    .process-timeline { flex-direction: column; gap: 40px; }
    .timeline-connector { display: none; }
}

/* =========================================
   3. COBERTURA & MAPA
   ========================================= */
.coverage-section {
    background: #0b0c0e; /* Fondo un poco más oscuro */
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.coverage-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    transition: 0.3s;
}

.coverage-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(5px);
}

.check-icon {
    width: 30px; height: 30px;
    background: var(--bx-brand);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.alert-custom {
    background: rgba(255, 214, 0, 0.1);
    color: var(--bx-yellow);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px dashed rgba(255, 214, 0, 0.3);
}

/* Contenedor del Mapa Tecnológico */
.tech-map-container {
    position: relative;
    height: 400px;
    background: #15181e;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Grid de fondo tipo radar */
.map-grid {
    position: absolute;
    width: 200%; height: 200%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(20deg);
}

.map-content {
    position: relative;
    z-index: 10;
}

.btn-outline-brand {
    border: 2px solid var(--bx-brand);
    color: var(--bx-brand);
    transition: 0.3s;
}

.btn-outline-brand:hover {
    background: var(--bx-brand);
    color: white;
    box-shadow: 0 0 15px rgba(255, 31, 46, 0.5);
}

/* Puntos de Radar Animados */
.radar-dot {
    position: absolute;
    width: 10px; height: 10px;
    background: var(--bx-brand);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--bx-brand);
    animation: pulseRadar 2s infinite;
}

.dot-1 { top: 30%; left: 20%; }
.dot-2 { bottom: 40%; right: 30%; animation-delay: 0.5s; }
.dot-3 { top: 60%; left: 70%; animation-delay: 1s; }

@keyframes pulseRadar {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* =========================================
   4. FAQ (Custom Dark Accordion)
   ========================================= */
.custom-accordion .accordion-item {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background: #202328;
    color: white;
    font-weight: 600;
    box-shadow: none;
    border: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: rgba(255, 31, 46, 0.05); /* Rojo muy sutil al abrir */
    color: var(--bx-brand);
    border-bottom: 1px solid rgba(255, 31, 46, 0.1);
}

.custom-accordion .accordion-button::after {
    filter: invert(1); /* Flecha blanca */
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(16%) sepia(99%) saturate(7404%) hue-rotate(358deg) brightness(96%) contrast(114%); /* Flecha roja */
}

.custom-accordion .accordion-body {
    background: #202328;
    color: #8D99AE;
    border-top: none;
    font-size: 0.95rem;
}