/* Paleta de colores Telexpress */
:root {
    --color-1: #03045E;
    --color-2: #023E8A;
    --color-3: #0077B6;
    --color-4: #0096C7;
    --color-5: #00B4D8;
    --color-6: #48CAE4;
    --color-7: #90E0EF;
    --color-8: #ADE8F4;
    --color-9: #CAF0F8;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

/* Cards de categorías */
.category-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(3, 4, 94, 0.2);
    border-bottom: 3px solid var(--color-1);
}

.category-icon {
    transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
    transform: scale(1.1);
}

/* Cards de comercios */
.comercio-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comercio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.2);
}

/* Buscador */
.input-group .form-control:focus {
    border-color: var(--color-3);
    box-shadow: 0 0 0 0.2rem rgba(0, 119, 182, 0.25);
}

/* Botones */
.btn-primary-custom {
    background-color: var(--color-3);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--color-2);
    color: white;
}

/* Menú lateral */
.offcanvas {
    max-width: 280px;
}

.list-group-item {
    border: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--color-9);
    padding-left: 30px;
}

.list-group-item i {
    width: 25px;
}

/* Perfil de comercio */
.profile-cover {
    height: 150px;
    background: linear-gradient(135deg, var(--color-1), var(--color-4));
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: -60px;
}

/* Responsive */
@media (max-width: 768px) {
    .category-card h6 {
        font-size: 14px;
    }
    
    .category-icon i {
        font-size: 2em;
    }
    
    h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .profile-avatar {
        width: 90px;
        height: 90px;
        margin-top: -45px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Badges */
.badge {
    padding: 8px 12px;
    font-weight: normal;
}

/* Formularios */
.form-control:focus {
    border-color: var(--color-4);
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 199, 0.25);
}

/* Instalación PWA */
#installButton {
    transition: all 0.3s ease;
}

#installButton:hover {
    background-color: var(--color-2) !important;
    transform: scale(1.02);
}

/* Loading spinner */
.spinner-custom {
    color: var(--color-3);
    width: 3rem;
    height: 3rem;
}


/* Estilos para la instalación */
#installButton {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

#installButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
    background-color: #023E8A !important;
}

#installButton:active {
    transform: translateY(0);
}

/* Toast de éxito */
.toast {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modo offline */
.offline::before {
    content: "📡 Modo sin conexión";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffc107;
    color: #000;
    text-align: center;
    padding: 5px;
    z-index: 9999;
    font-size: 14px;
}

/* Ajustar el padding top cuando hay mensaje offline */
.offline body {
    padding-top: 30px;
}

/* Estilos para el botón de instalación */
#installButton {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
    animation: pulse 2s infinite;
}

#installButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
    background-color: #023E8A !important;
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 119, 182, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 119, 182, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 119, 182, 0);
    }
}

/* Toast de instalación exitosa */
.toast {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}