/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --border-radius: 12px;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== ESTILOS BASE ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== STATUS BAR ===== */
.status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar.show {
    left: 0;
}

.sidebar-header {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 20px 20px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.points-icon {
    color: #ffc107;
}

.profile-edit-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.profile-edit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu-item:hover {
    background: rgba(0, 123, 255, 0.05);
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-menu-item.active {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu-item i {
    width: 20px;
    margin-right: 15px;
    font-size: 18px;
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===== APP HEADER ===== */
.app-header {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 0 20px;
    z-index: 997;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.menu-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
}

.menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-icon {
    font-size: 20px;
    color: var(--dark-color);
}

.app-header-icon {
    color: var(--primary-color);
    font-size: 24px;
}

.app-header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
}

.header-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: var(--secondary-color);
}

.header-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.icon-md {
    font-size: 20px;
}

/* ===== CONTENT AREA ===== */
.content-area {
    margin-top: 114px; /* status bar + header */
    margin-bottom: 80px; /* bottom nav */
    padding: 20px;
    min-height: calc(100vh - 194px);
}

/* ===== SEARCH CARD ===== */
.search-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.text-primary-color {
    color: var(--primary-color) !important;
}

.text-secondary-color {
    color: var(--secondary-color) !important;
}

.text-accent-color {
    color: var(--warning-color) !important;
}

.btn-app {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-app:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

/* ===== SECTIONS ===== */
.section-header {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 30px 0 15px 0;
}

/* ===== SCROLL CONTAINER ===== */
.scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0 20px;
    margin-right: -20px;
    padding-right: 20px;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    min-width: 140px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.scroll-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: inherit;
}

/* ===== ROUTE VISUAL ===== */
.route-visual {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.route-point {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.route-point.start {
    background: var(--success-color);
}

.route-point.end {
    background: var(--danger-color);
}

.route-line {
    position: absolute;
    top: 50%;
    left: 6px;
    right: 6px;
    height: 2px;
    background: linear-gradient(to right, var(--success-color), var(--danger-color));
    transform: translateY(-50%);
}

.route-cities {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-color);
}

/* ===== ROUTE CARD ===== */
.route-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.route-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: inherit;
}

.btn-light-2 {
    background: var(--light-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

/* ===== OFFER CARD ===== */
.offer-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: inherit;
}

.offer-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    background: var(--gradient-1);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.icon-50 {
    width: 50px;
    height: 50px;
}

.gradient-1 {
    background: var(--gradient-1);
}

.gradient-2 {
    background: var(--gradient-2);
}

.fs-24 {
    font-size: 24px;
}

.fs-12 {
    font-size: 12px;
}

.fs-11 {
    font-size: 11px;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 996;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding: 0 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    min-width: 60px;
    position: relative;
}

.nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* ===== FLOATING ACTION BUTTON (FAB) ===== */
.fab-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fab-button {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
    z-index: 10;
}

.fab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fab-button:hover::before {
    opacity: 1;
}

.fab-button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.5);
}

.fab-button:active {
    transform: scale(0.95) translateY(0px);
    transition: all 0.1s ease;
}

.fab-button .fab-icon {
    transition: transform 0.3s ease;
}

.fab-button:hover .fab-icon {
    transform: rotate(90deg);
}

.fab-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== RIPPLE EFFECT ===== */
.fab-button .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== FLOATING MENU ===== */
.floating-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-menu.show {
    opacity: 1;
    visibility: visible;
}

.menu-grid {
    position: absolute;
    bottom: 100px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    max-height: 70vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-menu.show .menu-grid {
    transform: translateY(0);
}

.menu-grid-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.menu-grid-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.menu-grid-subtitle {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 5px 0 0 0;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.menu-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    background: #f8f9fa;
    border-radius: 16px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.menu-grid-item:hover {
    background: rgba(0, 123, 255, 0.05);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--primary-color);
}

.menu-grid-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.menu-grid-item:hover .menu-grid-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.menu-grid-text {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.primary::before {
    background: var(--primary-color);
}

.stat-card.success::before {
    background: var(--success-color);
}

.stat-card.warning::before {
    background: var(--warning-color);
}

.stat-card.info::before {
    background: var(--info-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
}

.stat-card.primary .stat-icon {
    background: var(--primary-color);
}

.stat-card.success .stat-icon {
    background: var(--success-color);
}

.stat-card.warning .stat-icon {
    background: var(--warning-color);
}

.stat-card.info .stat-icon {
    background: var(--info-color);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quick-action {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: inherit;
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
}

.quick-action.primary .quick-action-icon {
    background: var(--gradient-primary);
}

.quick-action.success .quick-action-icon {
    background: var(--gradient-1);
}

.quick-action.warning .quick-action-icon {
    background: var(--gradient-2);
}

.quick-action-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.quick-action-desc {
    font-size: 12px;
    color: var(--secondary-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-area {
        padding: 15px;
    }

    .search-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-item {
        min-width: 120px;
        padding: 15px;
    }

    .route-visual {
        height: 50px;
    }

    .route-cities {
        font-size: 11px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinning {
    animation: spin 1s linear infinite;
}

/* ===== LOADING ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: white;
    text-align: center;
}

.loading-text h5 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.loading-text p {
    font-size: 16px;
    opacity: 0.9;
}