/* ===== APRSTORE GPS TRACKER STYLES ===== */
/* Colores basados en APRSTORE.PE - Azul corporativo + blanco + negro */

:root {
    --aprstore-primary: #1a56db;      /* Azul profundo */
    --aprstore-secondary: #3b82f6;    /* Azul claro */
    --aprstore-dark: #111827;         /* Negro suave */
    --aprstore-light: #f3f4f6;        /* Gris claro */
    --aprstore-white: #ffffff;
    --aprstore-success: #10b981;      /* Verde */
    --aprstore-warning: #f59e0b;      /* Naranja */
    --aprstore-danger: #ef4444;       /* Rojo */
    --aprstore-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== CONTENEDOR GENERAL ===== */
.aprstore-tracker-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: var(--aprstore-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    font-family: var(--aprstore-font);
    border: 1px solid #e5e7eb;
}

/* ===== HEADER ===== */
.aprstore-tracker-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--aprstore-light);
}

.aprstore-tracker-header h2 {
    color: var(--aprstore-dark);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.aprstore-tracker-header h2 .highlight {
    color: var(--aprstore-primary);
}

.aprstore-tracker-header p {
    color: #6b7280;
    font-size: 16px;
    margin-top: 8px;
}

/* ===== MAPA ===== */
#aprstore-map {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

/* ===== ESTADO / INFO ===== */
.aprstore-status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--aprstore-light);
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 5px solid var(--aprstore-primary);
    margin-top: 20px;
}

.aprstore-status-box .status-label {
    font-weight: 600;
    color: var(--aprstore-dark);
    font-size: 16px;
}

.aprstore-status-box .status-value {
    font-size: 18px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 30px;
}

.status-verified {
    background: #d1fae5;
    color: var(--aprstore-success);
}

.status-unverified {
    background: #fee2e2;
    color: var(--aprstore-danger);
}

.status-waiting {
    background: #fef3c7;
    color: var(--aprstore-warning);
}

/* ===== BOTONES ===== */
.aprstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--aprstore-font);
}

.aprstore-btn-primary {
    background: var(--aprstore-primary);
    color: var(--aprstore-white);
}

.aprstore-btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.3);
}

.aprstore-btn-danger {
    background: var(--aprstore-danger);
    color: var(--aprstore-white);
}

.aprstore-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.aprstore-btn-success {
    background: var(--aprstore-success);
    color: var(--aprstore-white);
}

/* ===== INPUTS ===== */
.aprstore-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    justify-content: center;
}

.aprstore-input-group input {
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    font-size: 16px;
    font-family: var(--aprstore-font);
    flex: 1;
    min-width: 200px;
    outline: none;
    transition: border 0.3s;
}

.aprstore-input-group input:focus {
    border-color: var(--aprstore-primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .aprstore-tracker-container {
        padding: 20px;
        margin: 20px;
    }
    
    #aprstore-map {
        height: 300px;
    }
    
    .aprstore-tracker-header h2 {
        font-size: 22px;
    }
    
    .aprstore-status-box {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===== LOADER ===== */
.aprstore-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(26, 86, 219, 0.2);
    border-radius: 50%;
    border-top-color: var(--aprstore-primary);
    animation: aprstore-spin 0.8s linear infinite;
}

@keyframes aprstore-spin {
    to { transform: rotate(360deg); }
}