/* ====================
   PANEL ADMINISTRADOR (DASHBOARD)
   ==================== */

   .admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.admin-header {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-header-titles h1 {
    font-size: 28px;
    color: var(--color-primary-dark);
    margin: 10px 0 5px 0;
}

.admin-header-titles p {
    color: var(--color-text-muted);
    font-size: 15px;
}

.back-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
}

.back-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Nav Pills para Admin */
.admin-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-pill {
    padding: 10px 20px;
    border-radius: 30px;
    background: #f4f9f6;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.nav-pill:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.nav-pill.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 143, 67, 0.2);
}

.nav-pill.logout {
    background: #fff0f0;
    color: #e74c3c;
    border: 1px solid #ffdcdc;
}

.nav-pill.logout:hover {
    background: #e74c3c;
    color: white;
}

/* Grillas de Formulario Admin */
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

/* Checkbox destacado */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    background: #fff8eb;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid #ffe6b3;
    color: #d35400;
}

.checkbox-label input {
    width: auto;
}

/* Tablas Admin */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* Permite scroll horizontal en movil */
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 10px;
}

.admin-table {
    width: 100%;
    min-width: 800px; /* Evita que se colapse demasiado */
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody tr {
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background: #fdfdfd;
}

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-featured { background: #fff8eb; color: #f39c12; }
.badge-normal { background: #f4f9f6; color: var(--color-primary-dark); }

.btn-icon {
    background: none;
    border: none;
    color: #e74c3c;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: #fff0f0;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-form-grid {
        grid-template-columns: 1fr; /* Colapsa a 1 columna en movil */
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-nav-pills {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ====================
   LÍNEA DE TIEMPO PÚBLICA (TIMELINE)
   ==================== */
.timeline-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid #008f43;
    margin-left: 15px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease both;
}

.timeline-badge {
    position: absolute;
    left: -47px;
    top: 0;
    width: 32px;
    height: 32px;
    background: #008f43;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.timeline-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.timeline-img {
    width: 200px;
    min-height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .timeline-card {
        flex-direction: column;
    }
    .timeline-img {
        width: 100%;
        height: 160px;
        min-height: auto;
    }
}

.timeline-info {
    padding: 24px;
}

.timeline-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    margin-bottom: 8px;
    color: #111;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.timeline-meta span {
    background: #f4f9f6;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.timeline-desc {
    font-size: 14.5px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* ====================
   ESTADO VACÍO (EMPTY STATE)
   ==================== */
.empty-state-card {
    background: white;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    max-width: 500px;
    margin: 40px auto;
}

.empty-state-icon {
    font-size: 54px;
    margin-bottom: 20px;
}

.empty-state-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    margin-bottom: 10px;
    color: #111;
}

.empty-state-card p {
    font-size: 14.5px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* ====================
   ANIMACIONES Y GPS EN VIVO
   ==================== */
@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
.gps-pulse-pin {
    display: flex;
    align-items: center;
    justify-content: center;
}
.transfer-badge {
    transition: all 0.3s ease;
}
.transfer-badge.loaded {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
}
