body {
    overflow-x: hidden;
}

@keyframes aparecerDesdeAbajo {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.efecto-aparecer {
    animation: aparecerDesdeAbajo 1s ease-out;
}
.efecto-aparecer-2 {
    animation: aparecerDesdeAbajo 1.3s ease-out;
}
.efecto-aparecer-3 {
    animation: aparecerDesdeAbajo 1.6s ease-out;
}
.efecto-aparecer-4 {
    animation: aparecerDesdeAbajo 1.9s ease-out;
}


@keyframes aparecerDesdeAbajo {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.aparecer-animado {
    opacity: 0;
    transition: opacity 0.3s;
}
.aparecer-animado.visible {
    animation: aparecerDesdeAbajo 1s ease-out forwards;
    opacity: 1;
}
.aparecer-animado:hover {
    animation: aparecerDesdeAbajo 0.7s cubic-bezier(.68,-0.55,.27,1.55) forwards;
    opacity: 1;
}

.img-zoom-hover {
    transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55), box-shadow 0.4s;
}
.img-zoom-hover:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.totales-panel {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: flex-end;
    align-items: flex-end;
    margin: 20px 0 0 auto;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    width: fit-content;
}
.totales-panel .item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
}
.totales-panel .label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.totales-panel .value {
    text-align: right;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    min-width: 90px;
}
.totales-panel .item.total .value {
    background: #eef9f0;
    border-color: #bfe3c9;
}

.modal{display:none;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:9999;align-items:center;justify-content:center}
.modal-content{background:#fff;padding:1rem;max-width:900px;width:95%;max-height:80vh;overflow:auto;border-radius:6px}
.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}
.modal table{width:100%;border-collapse:collapse}
.modal th,.modal td{border:1px solid #ddd;padding:.4rem}
.btn-select{cursor:pointer}