/* =====================================================
   ===== ESTILOS PARA BANNER DE NOTIFICACIONES ==========
   ===================================================== */

.notification-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 420px;
    width: 90%;
    background: #1a1a2e;
    color: white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(120%) scale(0.8);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.notification-banner.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.notification-banner.hidden {
    transform: translateX(120%) scale(0.8);
    opacity: 0;
}

.notification-banner-content {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    gap: 14px;
}

.notification-icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: notifIconPulse 0.6s ease-out;
}

@keyframes notifIconPulse {
    0% { transform: scale(0) rotate(-30deg); }
    50% { transform: scale(1.3) rotate(10deg); }
    70% { transform: scale(0.9) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.notification-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.notification-text span {
    display: block;
}

.notification-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.notification-progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #f97316, #ef4444);
    width: 100%;
    animation: notifProgress 6s linear forwards;
}

@keyframes notifProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* ===== ESTILOS RESPONSIVE PARA NOTIFICACIONES ===== */
@media (max-width: 640px) {
    .notification-banner {
        top: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        border-radius: 12px;
    }
    
    .notification-banner-content {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .notification-icon {
        font-size: 22px;
    }
    
    .notification-text {
        font-size: 12px;
    }
    
    .notification-close {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .notification-banner-content {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .notification-icon {
        font-size: 18px;
    }
    
    .notification-text {
        font-size: 11px;
    }
}

/* =====================================================
   ===== ESTILOS PARA ICONOS DE MAPA ESTILO WALMART ====
   ===================================================== */

.custom-store-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    user-select: none;
}

.custom-store-marker:hover {
    transform: scale(1.1);
}

.marker-pin {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2.5px solid #0071DC;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 113, 220, 0.25);
    transition: all 0.2s ease;
}

.marker-pin::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid white;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.marker-pin i {
    font-size: 18px;
    color: #0071DC;
}

.marker-pin.store-primary {
    background: #0071DC;
    border-color: #005BB5;
}

.marker-pin.store-primary i {
    color: white;
}

.marker-pin.store-primary::after {
    border-top-color: #0071DC;
}

.marker-pin.store-produce {
    background: #2E7D32;
    border-color: #1B5E20;
}

.marker-pin.store-produce i {
    color: white;
}

.marker-pin.store-produce::after {
    border-top-color: #2E7D32;
}

.marker-pin.store-meat {
    background: #C62828;
    border-color: #B71C1C;
}

.marker-pin.store-meat i {
    color: white;
}

.marker-pin.store-meat::after {
    border-top-color: #C62828;
}

.marker-pin.store-pharmacy {
    background: #00695C;
    border-color: #004D40;
}

.marker-pin.store-pharmacy i {
    color: white;
}

.marker-pin.store-pharmacy::after {
    border-top-color: #00695C;
}

.marker-label {
    margin-top: 4px;
    background: rgba(255,255,255,0.95);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-location-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.user-location-pulse {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0071DC;
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(0, 113, 220, 0.3);
    animation: pulseLocation 2s ease-in-out infinite;
    position: relative;
}

.user-location-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

@keyframes pulseLocation {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 113, 220, 0.4);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(0, 113, 220, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 113, 220, 0);
    }
}

/* ===== INFO WINDOW MODIFICADA - RESPONSIVE ===== */
.custom-info-window {
    padding: 12px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 180px;
    text-align: center;
}

.custom-info-window .store-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: block;
    border: 2px solid #e2e8f0;
    object-fit: cover;
}

.custom-info-window h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.custom-info-window .store-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.custom-info-window .store-badge.open {
    background: #E8F5E9;
    color: #2E7D32;
}

.custom-info-window .store-badge.closed {
    background: #FFEBEE;
    color: #C62828;
}

.custom-info-window .btn-comprar {
    display: block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.custom-info-window .btn-comprar:hover {
    background: #16a34a;
    transform: scale(1.02);
    text-decoration: none;
    color: white;
}

.custom-info-window .btn-comprar i {
    margin-right: 6px;
}

/* ===== AJUSTES RESPONSIVE PARA EL LOGO EN INFO WINDOW ===== */
@media (max-width: 768px) {
    .custom-info-window .store-logo {
        width: 50px;
        height: 50px;
        margin: 0 auto 8px;
    }
    
    .custom-info-window h4 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .custom-info-window .store-logo {
        width: 40px !important;
        height: 40px !important;
        margin: 0 auto 6px !important;
    }
    
    .custom-info-window {
        padding: 8px 12px !important;
        min-width: 150px !important;
    }
    
    .custom-info-window h4 {
        font-size: 13px !important;
        margin: 0 0 2px 0 !important;
    }
    
    .custom-info-window .store-badge {
        font-size: 9px !important;
        padding: 1px 8px !important;
        margin-top: 4px !important;
    }
    
    .custom-info-window .btn-comprar {
        font-size: 11px !important;
        padding: 6px 14px !important;
        margin-top: 6px !important;
    }
}

@media (max-width: 360px) {
    .custom-info-window .store-logo {
        width: 32px !important;
        height: 32px !important;
        margin: 0 auto 4px !important;
    }
    
    .custom-info-window {
        padding: 6px 8px !important;
        min-width: 120px !important;
    }
    
    .custom-info-window h4 {
        font-size: 11px !important;
    }
    
    .custom-info-window .store-badge {
        font-size: 8px !important;
        padding: 1px 6px !important;
    }
    
    .custom-info-window .btn-comprar {
        font-size: 10px !important;
        padding: 4px 10px !important;
        margin-top: 4px !important;
    }
}

/* ===== ESTILOS CRÍTICOS PARA EL MAPA ===== */
.map-section {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    margin: 12px 0;
    background: #e2e8f0;
}

#google-map-mobile {
    width: 100% !important;
    height: 100% !important;
    min-height: 280px;
    display: block;
}

.map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.map-fallback i {
    font-size: 32px;
    color: #94a3b8;
}

.map-fallback.hidden {
    display: none;
}

.map-controls {
    position: absolute;
    bottom: 60px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.map-control-btn:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}

.map-control-btn:active {
    transform: scale(0.9);
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay-work {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInOverlay 0.3s ease-out;
}

.modal-overlay-work.show {
    display: flex;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay-work iframe {
    width: 100%;
    max-width: 920px;
    height: 90vh;
    max-height: 750px;
    border: none;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
    animation: slideUpModal 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== AJUSTES PARA EL MENÚ ===== */
.sidebar-item .badge-new {
    background: #f97316;
    color: #fff;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 700;
    text-transform: uppercase;
}

.bottom-nav-item .badge-new {
    background: #f97316;
    color: #fff;
    font-size: 8px;
    padding: 1px 6px;
    border-radius: 10px;
    position: absolute;
    top: -4px;
    right: 4px;
    font-weight: 700;
}

.bottom-nav-item {
    position: relative;
}

/* ===== ESTILOS PARA BOTONES DE AUTENTICACIÓN ===== */
.btn-register-header {
    background: #22c55e;
    color: white !important;
    border-radius: 20px;
    padding: 0 16px !important;
    height: 36px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.btn-register-header:hover {
    background: #16a34a;
    color: white !important;
    text-decoration: none;
}

.btn-login-header {
    color: #1e293b !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 0 8px;
}

.btn-login-header:hover {
    color: #22c55e !important;
    text-decoration: none;
}

.header-auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== SIDEBAR AUTENTICACIÓN ===== */
.sidebar-auth-guest {
    display: none;
    width: 100%;
    padding: 4px 0;
}

.sidebar-auth-guest .sidebar-item {
    margin: 4px 0;
    padding: 10px 16px;
}

.sidebar-auth-guest .btn-register-sidebar {
    background: #22c55e;
    color: white !important;
    border-radius: 8px;
}

.sidebar-auth-guest .btn-register-sidebar i {
    color: white !important;
}

.sidebar-auth-guest .btn-register-sidebar:hover {
    background: #16a34a;
}

.sidebar-user-logged {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    padding: 8px 0;
}

.sidebar-user-logged.hidden {
    display: none;
}

/* ===== BOTÓN CERRAR SESIÓN ===== */
.sidebar-logout {
    cursor: pointer;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    color: #ef4444;
    display: none;
}

.sidebar-logout i {
    color: #ef4444;
}

.sidebar-logout:hover {
    background: #fef2f2;
    border-radius: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .modal-overlay-work {
        padding: 8px;
    }
    .modal-overlay-work iframe {
        height: 95vh;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .header-auth-buttons .btn-login-header {
        font-size: 12px;
    }
    
    .header-auth-buttons .btn-register-header {
        font-size: 11px;
        padding: 0 12px !important;
        height: 32px;
    }

    .map-section {
        height: 240px;
    }

    #google-map-mobile {
        min-height: 240px;
    }

    .marker-pin {
        width: 36px;
        height: 36px;
    }
    
    .marker-pin i {
        font-size: 14px;
    }
    
    .marker-label {
        font-size: 8px;
        padding: 1px 8px;
        max-width: 60px;
    }
}

@media (min-width: 768px) {
    .map-section {
        height: 320px;
    }
    #google-map-mobile {
        min-height: 320px;
    }
}

/* ===== ESTILOS ADICIONALES ===== */
.icon-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #1e293b;
    transition: all 0.2s;
    cursor: pointer;
}

.icon-btn:hover {
    background: #e2e8f0;
}

.icon-btn .badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* =====================================================
   ===== PANEL DE NOTIFICACIONES =======================
   ===================================================== */

.notification-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    backdrop-filter: blur(4px);
    animation: fadeInOverlay 0.3s ease-out;
}

.notification-panel-overlay.show {
    display: flex;
}

.notification-panel {
    background: white;
    width: 400px;
    max-width: 90%;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    animation: slideInPanel 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

@keyframes slideInPanel {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #f8fafc;
}

.notification-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-panel-header h3 .badge-count-panel {
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 10px;
    border-radius: 12px;
}

.notification-panel-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.notification-panel-close:hover {
    background: #f1f5f9;
    color: #1a1a2e;
}

.notification-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.notification-panel-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.notification-panel-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: #cbd5e1;
}

.notification-panel-empty h4 {
    font-size: 18px;
    color: #475569;
    margin-bottom: 8px;
}

.notification-panel-empty p {
    font-size: 14px;
    margin: 0;
}

/* ===== ITEM DE NOTIFICACIÓN ===== */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-left: 4px solid #22c55e;
    transition: all 0.2s ease;
    cursor: default;
}

.notification-item:hover {
    background: #f1f5f9;
}

.notification-item .notif-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-radius: 50%;
}

.notification-item .notif-content {
    flex: 1;
}

.notification-item .notif-content .notif-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.notification-item .notif-content .notif-message {
    font-size: 13px;
    color: #475569;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.notification-item .notif-content .notif-time {
    font-size: 11px;
    color: #94a3b8;
}

.notification-item .notif-badge {
    flex-shrink: 0;
    background: #22c55e;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    margin-top: 2px;
}

/* ===== BOTÓN MARCAR COMO LEÍDAS ===== */
.notification-panel-footer {
    padding: 12px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    background: #f8fafc;
}

.btn-mark-read {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #f1f5f9;
    color: #475569;
}

.btn-mark-read:hover {
    background: #e2e8f0;
}

.btn-mark-read.primary {
    background: #22c55e;
    color: white;
}

.btn-mark-read.primary:hover {
    background: #16a34a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .notification-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .notification-panel-header {
        padding: 16px 20px;
    }
    
    .notification-panel-header h3 {
        font-size: 16px;
    }
    
    .notification-panel-body {
        padding: 12px 16px;
    }
    
    .notification-item {
        padding: 12px 14px;
    }
    
    .notification-item .notif-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .notification-item .notif-content .notif-title {
        font-size: 13px;
    }
    
    .notification-item .notif-content .notif-message {
        font-size: 12px;
    }
}
  /* ===== ESTILOS PARA FAVORITOS EN TARJETAS ===== */
        .fav-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(255,255,255,0.9);
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 5;
            font-size: 14px;
            color: #94a3b8;
        }

        .fav-btn:hover {
            transform: scale(1.1);
        }

        .fav-btn.active {
            color: #ef4444;
            background: rgba(255,255,255,0.95);
        }

        .fav-btn.active i {
            font-weight: 900;
        }

        .promo-card, .desktop-promo-card {
            position: relative;
        }

        /* ===== TOAST NOTIFICACIÓN ===== */
        .toast-fav {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: #1a1a2e;
            color: white;
            padding: 12px 24px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 500;
            box-shadow: 0 8px 32px rgba(0,0,0,0.2);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            z-index: 999;
            display: flex;
            align-items: center;
            gap: 10px;
            max-width: 90%;
        }

        .toast-fav.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .toast-fav i {
            font-size: 18px;
        }

        .toast-fav.success i { color: #22c55e; }
        .toast-fav.error i { color: #ef4444; }

        /* ===== ESTILOS PARA BANNER DE NOTIFICACIONES ===== */
        .notification-banner {
            position: fixed;
            top: 20px;
            right: 20px;
            max-width: 420px;
            width: 90%;
            background: #1a1a2e;
            color: white;
            border-radius: 16px;
            box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
            z-index: 10000;
            transform: translateX(120%) scale(0.8);
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            overflow: hidden;
        }

        .notification-banner.show {
            transform: translateX(0) scale(1);
            opacity: 1;
        }

        .notification-banner.hidden {
            transform: translateX(120%) scale(0.8);
            opacity: 0;
        }

        .notification-banner-content {
            display: flex;
            align-items: center;
            padding: 16px 18px;
            gap: 14px;
        }

        .notification-icon {
            font-size: 28px;
            flex-shrink: 0;
            animation: notifIconPulse 0.6s ease-out;
        }

        @keyframes notifIconPulse {
            0% { transform: scale(0) rotate(-30deg); }
            50% { transform: scale(1.3) rotate(10deg); }
            70% { transform: scale(0.9) rotate(-5deg); }
            100% { transform: scale(1) rotate(0deg); }
        }

        .notification-text {
            flex: 1;
            font-size: 14px;
            line-height: 1.5;
            font-weight: 500;
        }

        .notification-text span {
            display: block;
        }

        .notification-close {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .notification-close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .notification-progress-bar {
            height: 4px;
            background: linear-gradient(90deg, #22c55e, #f97316, #ef4444);
            width: 100%;
            animation: notifProgress 6s linear forwards;
        }

        @keyframes notifProgress {
            0% { width: 100%; }
            100% { width: 0%; }
        }

        /* ===== PANEL DE NOTIFICACIONES ===== */
        .notification-panel-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 99999;
            display: none;
            align-items: flex-start;
            justify-content: flex-end;
            backdrop-filter: blur(4px);
            animation: fadeInOverlay 0.3s ease-out;
        }

        .notification-panel-overlay.show {
            display: flex;
        }

        .notification-panel {
            background: white;
            width: 400px;
            max-width: 90%;
            height: 100vh;
            max-height: 100vh;
            display: flex;
            flex-direction: column;
            box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
            animation: slideInPanel 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            overflow: hidden;
        }

        @keyframes slideInPanel {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes fadeInOverlay {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .notification-panel-header {
            padding: 20px 24px;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
            background: #f8fafc;
        }

        .notification-panel-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 700;
            color: #1a1a2e;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .notification-panel-header h3 .badge-count-panel {
            background: #ef4444;
            color: white;
            font-size: 11px;
            font-weight: 700;
            padding: 1px 10px;
            border-radius: 12px;
        }

        .notification-panel-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #94a3b8;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .notification-panel-close:hover {
            background: #f1f5f9;
            color: #1a1a2e;
        }

        .notification-panel-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px 20px;
        }

        .notification-panel-empty {
            text-align: center;
            padding: 60px 20px;
            color: #94a3b8;
        }

        .notification-panel-empty i {
            font-size: 48px;
            margin-bottom: 16px;
            display: block;
            color: #cbd5e1;
        }

        .notification-panel-empty h4 {
            font-size: 18px;
            color: #475569;
            margin-bottom: 8px;
        }

        .notification-panel-empty p {
            font-size: 14px;
            margin: 0;
        }

        .notification-item {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 14px 16px;
            border-radius: 12px;
            margin-bottom: 8px;
            background: #f8fafc;
            border-left: 4px solid #22c55e;
            transition: all 0.2s ease;
            cursor: default;
        }

        .notification-item:hover {
            background: #f1f5f9;
        }

        .notification-item.unread {
            border-left-color: #22c55e;
            background: #f0fdf4;
        }

        .notification-item .notif-icon {
            font-size: 24px;
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #e2e8f0;
            border-radius: 50%;
        }

        .notification-item .notif-content {
            flex: 1;
        }

        .notification-item .notif-content .notif-title {
            font-size: 14px;
            font-weight: 600;
            color: #1a1a2e;
            margin: 0 0 4px 0;
        }

        .notification-item .notif-content .notif-message {
            font-size: 13px;
            color: #475569;
            margin: 0 0 4px 0;
            line-height: 1.4;
        }

        .notification-item .notif-content .notif-time {
            font-size: 11px;
            color: #94a3b8;
        }

        .notification-item .notif-badge {
            flex-shrink: 0;
            background: #22c55e;
            color: white;
            font-size: 9px;
            font-weight: 700;
            padding: 2px 10px;
            border-radius: 10px;
            margin-top: 2px;
        }

        .notification-panel-footer {
            padding: 12px 24px;
            border-top: 1px solid #e2e8f0;
            display: flex;
            gap: 10px;
            flex-shrink: 0;
            background: #f8fafc;
        }

        .btn-mark-read {
            flex: 1;
            padding: 10px;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            background: #f1f5f9;
            color: #475569;
        }

        .btn-mark-read:hover {
            background: #e2e8f0;
        }

        .btn-mark-read.primary {
            background: #22c55e;
            color: white;
        }

        .btn-mark-read.primary:hover {
            background: #16a34a;
        }

        /* ===== RESPONSIVE NOTIFICACIONES ===== */
        @media (max-width: 640px) {
            .notification-banner {
                top: 10px;
                right: 10px;
                max-width: calc(100% - 20px);
                border-radius: 12px;
            }
            
            .notification-banner-content {
                padding: 12px 14px;
                gap: 10px;
            }
            
            .notification-icon {
                font-size: 22px;
            }
            
            .notification-text {
                font-size: 12px;
            }
            
            .notification-close {
                width: 24px;
                height: 24px;
                font-size: 12px;
            }

            .notification-panel {
                width: 100%;
                max-width: 100%;
                border-radius: 0;
            }
            
            .notification-panel-header {
                padding: 16px 20px;
            }
            
            .notification-panel-header h3 {
                font-size: 16px;
            }
            
            .notification-panel-body {
                padding: 12px 16px;
            }
            
            .notification-item {
                padding: 12px 14px;
            }
            
            .notification-item .notif-icon {
                width: 32px;
                height: 32px;
                font-size: 18px;
            }
            
            .notification-item .notif-content .notif-title {
                font-size: 13px;
            }
            
            .notification-item .notif-content .notif-message {
                font-size: 12px;
            }
        }

        @media (max-width: 360px) {
            .notification-banner-content {
                padding: 10px 12px;
                gap: 8px;
            }
            
            .notification-icon {
                font-size: 18px;
            }
            
            .notification-text {
                font-size: 11px;
            }
        }

        /* ===== AJUSTES RESPONSIVE ===== */
        @media (max-width: 480px) {
            .fav-btn {
                width: 28px;
                height: 28px;
                font-size: 12px;
                top: 6px;
                right: 6px;
            }
        }
    