/* RESET / BASES */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Definición del color azul para la marca temática */
:root {
    --main-color: #007bff; /* Azul vibrante */
}

/* HEADER Y BÚSQUEDA */
header {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-bottom: 2px solid var(--main-color); /* Cambio a azul */
    margin-bottom: 20px;
}

.search-container {
    padding: 15px;
    background-color: #f0f0f0;
    margin-top: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 10px auto;
}

#trackingInput {
    padding: 10px;
    width: 70%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 1em;
}

.search-container button {
    padding: 10px 20px;
    background-color: var(--main-color); /* Cambio a azul */
    color: #fff; /* Texto blanco para mejor contraste */
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.2s;
}

.search-container button:hover {
    background-color: #0056b3; /* Azul más oscuro al pasar el ratón */
}

/* CONTENEDOR PRINCIPAL Y RESULTADOS */
.tracking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.status-summary {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 30px;
    border-left: 5px solid var(--main-color); /* Cambio a azul */
    border-radius: 4px;
    font-size: 1.1em;
}

.section-title {
    font-size: 1.3em;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

/* --- ESTILOS DE LA LÍNEA DE TIEMPO (GENERADO POR JS) --- */

.timeline-date-header {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: #000;
}

.timeline-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* TRUCO 1: LA LÍNEA VERTICAL CON PSEUDO-ELEMENTO */
.timeline-group ul::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px; 
    width: 2px;
    background-color: var(--main-color); /* Cambio a azul */
    z-index: 0;
}

.timeline-item {
    padding: 10px 0 10px 45px; 
    position: relative;
    border-bottom: 1px dashed #eee; 
}

.timeline-group ul li:last-child {
    border-bottom: none;
}

/* TRUCO 2: EL PUNTO/MARCADOR (Para items NO-ACTUALES) */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px; 
    top: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--main-color); /* Cambio a azul */
    z-index: 1;
}

/* ESTILO PARA EL ÍTEM MÁS ACTUAL (El triángulo con clase 'current') */
.timeline-item.current::before {
    content: '▲'; 
    font-size: 16px; /* Tamaño ligeramente ajustado */
    line-height: 1;
    color: var(--main-color); /* Cambio a azul */
    background: none;
    border: none;
    top: 12px; /* AJUSTE CRÍTICO: Posición vertical para centrar el triángulo */
    left: 10px; /* AJUSTE CRÍTICO: Posición horizontal para alinear con la línea */
    z-index: 2; /* Asegurar que esté sobre la línea */
}

/* CONTENIDO DE TEXTO */
.timeline-content .timeline-time {
    display: block;
    font-weight: bold;
    color: #000;
    font-size: 0.95em;
}

.timeline-content .timeline-location {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 3px;
}

.timeline-content .timeline-description {
    margin: 0;
    font-size: 1em;
}