:root {
    --primary-color: #3b82f6; /* Azure Blue */
    --secondary-color: #db2777; /* Rose/Pink */
    --dark-bg: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-light: #f8fafc;
}

body {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%), 
                url('./bg-catedral.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.btn-ice {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-ice:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
    filter: brightness(1.1);
}

.btn-outline-ice {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 10px 20px;
    backdrop-filter: blur(4px);
    text-decoration: none;
}

.btn-outline-ice:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 12px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 210, 255, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#map {
    height: 400px;
    border-radius: 20px;
    margin-top: 1rem;
    z-index: 1;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pendiente {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.order-count {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Landing Page Specific */
.landing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 1px solid var(--glass-border);
}

.landing-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.logo-main {
    max-width: 320px;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.2));
    margin-bottom: 1rem;
    transition: transform 0.5s ease;
}

.logo-main:hover {
    transform: scale(1.05);
}

/* Print Styles */
@media print {
    nav, .btn, .btn-sm, form, .navbar, .no-print {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .glass-card {
        background: white !important;
        border: 1px solid #eee !important;
        box-shadow: none !important;
        color: black !important;
        backdrop-filter: none !important;
        padding: 1rem !important;
    }
    .table {
        color: black !important;
    }
    .table-dark {
        --bs-table-bg: white !important;
        --bs-table-color: black !important;
    }
    .table-dark th, .table-dark td {
        border-color: #ddd !important;
    }
    .text-info, .text-success, .text-warning, .text-danger, .badge {
        color: black !important;
        border: 1px solid #ddd !important;
        background: white !important;
    }
    h3, h4, h5, h6 {
        color: black !important;
    }
}

/* Logistic Markers */
.depot-marker {
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.marker-number {
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: -10px;
    right: -10px;
    border: 2px solid white;
}
