/* Estilos Generales */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f4f7fc;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 3px solid #e74c3c; /* Rojo RedPack */
}

.logo {
    height: 50px;
}

/* Sección de Búsqueda */
.search-container {
    text-align: center;
    padding: 80px 0;
    background: #0033a0; /* Azul RedPack */
    color: white;
}

.title {
    font-size: 3em;
    font-weight: 900;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.2em;
    margin-top: 10px;
    opacity: 0.9;
}

.search-box {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#tracking-number {
    width: 300px;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1.1em;
    outline: none;
    transition: all 0.3s ease;
}

#tracking-number:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

#search-button, #new-search-button {
    background-color: #e74c3c; /* Rojo RedPack */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

#search-button:hover, #new-search-button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Animación del Camión */
.loader-container {
    text-align: center;
    padding: 100px 0;
}

.loader-container p {
    font-size: 1.5em;
    color: #0033a0;
    font-weight: 700;
    margin-top: 30px;
}

.truck-animation {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto;
    animation: drive 3s linear infinite;
}

.truck-body {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 140px;
    height: 60px;
    background-color: #0033a0;
    border-top-right-radius: 10px;
}

.truck-cab {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 60px;
    height: 50px;
    background-color: #e74c3c;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.wheel {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}

.wheel1 { left: 15px; }
.wheel2 { left: 110px; }

@keyframes drive {
    0% { transform: translateX(-200px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(200px); opacity: 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Sección de Resultados */
.results-container {
    padding: 60px 0;
    animation: fadeIn 1s ease-in-out;
}

.status-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 51, 160, 0.15);
    padding: 40px;
    text-align: center;
}

.status-card h2 {
    font-size: 1.5em;
    color: #0033a0;
    margin: 0;
}

.status-main {
    font-size: 4em;
    font-weight: 900;
    margin: 20px 0;
    color: #e74c3c;
    text-transform: uppercase;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

.status-item {
    background-color: #f4f7fc;
    padding: 20px;
    border-radius: 10px;
}

.status-item strong {
    display: block;
    color: #0033a0;
    font-size: 0.9em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* --- NUEVOS ESTILOS PARA DIRECCIÓN Y COMENTARIOS --- */

/* Estilo para la sección de observaciones/comentarios */
.status-observations {
  margin-top: -15px; /* Lo acerca al estatus principal */
  margin-bottom: 30px;
  font-style: italic;
  color: #5a6a85; /* Un gris azulado sutil */
  font-size: 1.1em;
  padding: 0 20px; /* Evita que el texto toque los bordes en móviles */
}

.status-observations strong {
  font-style: normal;
}

/* Estilo para que la dirección ocupe todo el ancho del grid */
.status-item-full {
  grid-column: 1 / -1; /* Esto hace que la celda ocupe el 100% del ancho */
}

.status-item span {
    font-size: 1.2em;
}

#new-search-button {
    margin-top: 40px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}