:root {
    --primary-color: #492fe5; 
    --secondary-color: #ff9d1f;
    --success-color: #302d74;
    --progress-bg: #e9ecef;
    --text-color: #333;
    --card-bg: #fff;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /* background: url('/static/CAMPANAZO-HIRCASA.svg') no-repeat center center fixed; */
    color: var(--text-color);
    overflow: hidden;
}

/* Campana de notificación */
.notification-bell-container {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 10;
}

.notification-bell-container.visible {
    opacity: 1;
}

.notification-bell {
    font-size: 40px;
    animation: none;
}

.notification-bell.animate-bell {
    animation: bounce 1.5s infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

/* Tarjeta de actualización */
.card-container {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200; /* Mayor que el canvas del confeti */
}

.card-container.visible {
    opacity: 1;
}

.card {
    background: var(--card-bg);
    padding: 50px 60px;
    border-radius: 16px;
    box-shadow: 0 6px 20px var(--shadow-color);
    text-align: center;
    max-width: 700px;
    width: 100%;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.card.highlight {
    transform: scale(1.5);
}

.highlight {
    transform: scale(1.5);
    transition: transform 0.3s ease-in-out;
}


.card h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card .venta {
    font-size: 20px;
    line-height: 1.6;
}

.card .sucursal {
    color: var(--primary-color);
    font-weight: bold;
}

.card .monto {
    color: var(--success-color);
    font-weight: bold;
}

.card .total {
    color: var(--secondary-color);
    font-weight: bold;
}

.card .progreso {
    margin: 20px 0;
    height: 15px;
    background: var(--progress-bg);
    border-radius: 7.5px;
    overflow: hidden;
    position: relative;
}

.card .progreso .barra {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 7.5px;
    transition: width 0.5s ease;
}

.card .meta {
    font-size: 16px;
    color: var(--text-color);
    font-weight: bold;
}

.card .meta .porcentaje {
    color: var(--text-color);
}


.carousel-img {
    height: 600px;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.carrousel-zone{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 50%;
    height: 150px;
}

/* Estilos para la notificación de venta */
.notification-card {
    position: absolute;
    top: 10%;
    left: 20%;
    /*transform: translate(-50%, -50%);*/
    background: linear-gradient(135deg, #FF8F1C 0%, #FFCB00 100%);
    border-radius: 20px;
    height: 500px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    min-width: 400px;
    animation: bounce 0.6s ease-out;
    z-index: 200; /* Mayor que el canvas del confeti (z-index: 100) */
}

.card-header {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.branch-name {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2F2D74;
    font-weight: 600;
}



.amount {
    background-color:#2F2D74;
    margin-top: 50px;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    margin-left: 220px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.amount p {
    margin: 0;

}

.message{
    font-size: 2rem;
}

.celebration {
    font-size: 4rem;
    animation: spin 2s linear infinite;
}

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