:root {
    --amarillo-placa: #f1b400;
    --verde-pro: #27ae60;
    --rojo-pro: #e74c3c;
    --whatsapp: #25d366;
    --gris-texto: #576574;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body { 
    background-color: #f0f2f5; 
    display: flex; 
    justify-content: center; 
    padding: 15px; 
}

.main-wrapper { width: 100%; max-width: 420px; }
.app-container { background: #ffffff; border-radius: 25px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }

/* Encabezado */
.brand-header { text-align: center; margin-bottom: 20px; }
.logo-placeholder { 
    width: 60px; height: 60px; background: #eee; margin: 0 auto 10px; 
    border-radius: 12px; display: flex; align-items: center; justify-content: center; 
    font-size: 0.6rem; color: #999; border: 1px dashed #ccc;
}

/* SPRINT 7: Corrección de alineación Foto + Placa */
.hero-section { 
    display: flex; 
    align-items: center; /* Mantiene foto y placa niveladas */
    justify-content: center;
    gap: 12px; 
    margin-bottom: 15px; 
    background: #fdfdfd; 
    padding: 10px; 
    border-radius: 15px; 
    border: 1px solid #f0f0f0; 
}

.moto-container {
    display: none; /* Controlado por JS */
    flex: 1;
    max-width: 120px; /* Tamaño controlado para no empujar la placa */
}

#foto-vehiculo {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--amarillo-placa);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.placa-marco-mini {
    flex: 1.5; 
    background: var(--amarillo-placa); 
    border: 3px solid #000; 
    border-radius: 8px;
    padding: 6px 4px; 
    text-align: center; 
    position: relative; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#placa-texto { font-family: 'Oswald', sans-serif; font-size: 2rem; line-height: 1; color: #000; }
.pais { font-family: 'Oswald', sans-serif; font-size: 0.6rem; letter-spacing: 3px; font-weight: bold; }
.tornillo { width: 6px; height: 6px; background: #333; border-radius: 50%; position: absolute; top: 4px; }
.tl { left: 8px; } .tr { right: 8px; }

/* Botones y Semáforos */
.btn-ruta { display: flex; align-items: center; justify-content: center; gap: 10px; background: #4b7bec; color: white; text-decoration: none; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; margin-bottom: 20px; }
.badge-status { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 12px; margin-bottom: 10px; border: 1px solid #eee; }
.info-left { display: flex; flex-direction: column; }
.info-left .label { font-size: 0.65rem; font-weight: 800; color: #999; }
.info-left .date { font-size: 0.95rem; font-weight: 700; color: #333; }
.status-box { padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 800; min-width: 90px; text-align: center; }

/* Dinámica de colores desde Backend */
.verde { border-left: 5px solid var(--verde-pro); }
.verde .status-box { background: var(--verde-pro); color: white; }
.rojo { border-left: 5px solid var(--rojo-pro); }
.rojo .status-box { background: var(--rojo-pro); color: white; }
.naranja { border-left: 5px solid #f39c12; }
.naranja .status-box { background: #f39c12; color: white; }

.btn-whatsapp { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--whatsapp); color: white; text-decoration: none; padding: 15px; border-radius: 15px; font-weight: 800; margin-top: 20px; }
.footer-avaealo { margin-top: 30px; text-align: center; border-top: 1px solid #eee; padding-top: 20px; font-size: 0.7rem; }