/* =============== CUADRO CONSUMO CSS - VERSIÓN SANEADA =============== */

/* =============== HEADER DE PROYECTO — COMPACTO =============== */
.project-header-improved {
    background: var(--bg-surface, #1E293B);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius, 8px);
    border-left: 4px solid var(--accent, #D97706);
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.project-grid {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.project-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.project-field:first-child {
    padding-left: 0;
}

.project-field:last-child {
    border-right: none;
}

.project-name-field {
    flex: 1;
    min-width: 200px;
}

.project-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.6;
    white-space: nowrap;
    margin: 0;
}

.project-value {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    color: white;
    font-family: var(--font-display, 'Barlow Condensed', sans-serif);
    letter-spacing: 0.3px;
}

.project-name-input {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 160px;
    width: 100%;
}

.project-name-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.project-name-input:focus {
    outline: none;
    border-color: var(--accent, #D97706);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(217,119,6,0.25);
}

/* =============== DESCUENTO GLOBAL INTEGRADO — COMPACTO =============== */
.descuento-global-integrado {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400E;
    transition: all 0.2s ease;
}

.descuento-global-integrado.active {
    background: #F0FDF4;
    border-color: #4ADE80;
    color: #166534;
}

.descuento-global-integrado label {
    margin: 0;
    font-size: 0.78rem;
    white-space: nowrap;
    font-weight: 700;
}

.descuento-input-group {
    display: flex;
    align-items: center;
    gap: 2px;
    background: white;
    border-radius: 4px;
    padding: 2px 6px;
    border: 1px solid #FCD34D;
}

.descuento-global-input-mini {
    border: none;
    outline: none;
    width: 38px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    background: white;
    color: #1a202c;
    padding: 1px 2px;
    border-radius: 3px;
}

.descuento-input-group span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #92400E;
}

.btn-restablecer-mini {
    background: none;
    color: #64748B;
    border: none;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.btn-restablecer-mini:hover {
    color: var(--accent, #D97706);
}

.descuento-global-integrado.active .descuento-input-group {
    border-color: #4ADE80;
}

.descuento-global-integrado.active .descuento-input-group span {
    color: #166534;
}

.descuento-global-integrado.active .btn-restablecer-mini {
    color: #166534;
}

.descuento-global-input-mini:focus {
    background: #f8f9fa;
    color: #1a202c;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

/* =============== CORRECCIÓN BUG #3: BOTONES FIJOS MINIMIZADOS - SIMPLIFICADO =============== */
.cuadro-actions-fixed-mini {
    position: fixed;
    top: 62px; /* fallback; ajustado dinámicamente por JS según altura real del nav */
    left: 0;
    right: 0;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 999; /* Justo debajo de la nav (z-index 1000) */
    transform: translateY(-200%); /* Oculto más arriba para no solapar la nav */
    transition: transform 0.3s ease;
    border-bottom: 3px solid var(--accent, #D97706);
}

.cuadro-actions-fixed-mini.visible {
    transform: translateY(0);
}

.cuadro-actions-fixed-mini .cuadro-actions {
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* ✅ CORRECCIÓN: Solo mostrar botones esenciales en menú fijo */
.cuadro-actions-fixed-mini .cuadro-actions > *:not(.btn-esencial) {
    display: none !important;
}

/* Ocultar separadores en toolbar fija */
.cuadro-actions-fixed-mini .action-sep {
    display: none !important;
}

.cuadro-actions-fixed-mini .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    min-height: 40px;
}

/* Marcar botones esenciales para menú fijo */
.cuadro-actions-fixed-mini #btnAñadirProductoFixed,
.cuadro-actions-fixed-mini #btnAñadirEspacioFixed,
.cuadro-actions-fixed-mini #btnGuardarFixed,
.cuadro-actions-fixed-mini #btnImprimirFixed,
.cuadro-actions-fixed-mini #btnProyectosFixed,
.cuadro-actions-fixed-mini #btnLimpiarCuadroFixed {
    display: flex !important;
}

/* Espaciado cuando las acciones están fijas */
body.fixed-actions-active {
    padding-top: 80px;
}

/* =============== ACCIONES PRINCIPALES DEL CUADRO — COMPACTO =============== */
.cuadro-actions {
    background: #F8FAFC;
    border: 1px solid var(--border, #E2E8F0);
    padding: 8px 12px;
    border-radius: var(--radius, 8px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* Separador vertical entre grupos */
.action-sep {
    display: inline-block;
    width: 1px;
    height: 26px;
    background: var(--border, #E2E8F0);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Botones compactos */
.btn-compact {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    min-height: 32px !important;
    white-space: nowrap;
}

.iva-toggle-cuadro {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.iva-toggle-cuadro:has(input:checked) {
    background: #DBEAFE;
    border-color: var(--info, #0891B2);
}

.iva-checkbox {
    width: 15px;
    height: 15px;
    accent-color: var(--info, #0891B2);
    cursor: pointer;
    margin: 0;
}

.iva-label {
    font-weight: 700;
    color: var(--info, #0891B2);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
}

.iva-incluido {
    font-size: 0.7rem;
    color: var(--info, #0891B2);
    font-weight: 500;
    margin-left: 3px;
    display: inline-block;
}

/* =============== BOTONES GENERALES =============== */
.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #856404;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1aa589);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-cambiar {
    background: #ffc107;
    color: #856404;
    font-weight: bold;
}

.btn-cambiar:hover {
    background: #ffb300;
    color: #533b03;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.btn-cambiar:active {
    transform: scale(0.95);
}

.btn-cambiar:focus {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

/* =============== CONTENEDOR DEL CUADRO =============== */
.cuadro-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    width: 100%;
}

.cuadro-header {
    display: grid;
    grid-template-columns: 
        60px 2fr 100px 80px 60px 100px 120px 70px 50px 70px 80px 1.2fr 1.2fr 90px 70px;
    gap: 0;
    background: var(--nav-bg, #0F172A);
    padding: 0;
    width: 100%;
}

.cuadro-header > div {
    background: white;
    padding: 12px 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-align: center;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    border-right: 1px solid var(--bg-surface, #1E293B);
    border-bottom: 1px solid var(--bg-surface, #1E293B);
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    hyphens: auto;
}

.cuadro-header > div:last-child {
    border-right: none;
}

.cuadro-header > div:first-child {
    border-radius: 15px 0 0 0;
}

.cuadro-header > div:last-child {
    border-radius: 0 15px 0 0;
}

.cuadro-lineas {
    min-height: 400px;
    background: #f8f9fa;
    width: 100%;
    overflow-x: hidden;
}

/* =============== WELCOME MESSAGE =============== */
.welcome-cuadro {
    text-align: center;
    padding: 80px 40px;
    color: #6c757d;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.welcome-cuadro h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #495057;
}

.welcome-cuadro p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.tips-cuadro {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    color: #495057;
}

.tip-icon {
    font-size: 1.2rem;
}

/* =============== LÍNEAS DE PRODUCTOS =============== */
.linea-producto {
    display: grid;
    grid-template-columns: 
        60px 2fr 100px 80px 60px 100px 120px 70px 50px 70px 80px 1.2fr 1.2fr 90px 70px;
    gap: 0;
    background: #e9ecef;
    transition: all 0.3s ease;
}

.linea-producto:hover {
    background: rgba(217, 119, 6, 0.05);
    transform: translateX(1px);
}

.linea-producto.linea-espacio {
    background: transparent;
    height: 30px;
    grid-template-columns: 1fr;
}

.linea-producto.linea-espacio:hover {
    transform: none;
}

.linea-sumatorio {
    display: grid;
    grid-template-columns: 
        60px 2fr 100px 80px 60px 100px 120px 70px 50px 70px 80px 1.2fr 1.2fr 90px 70px;
    gap: 0;
    background: #b4dcb4;
    margin: 5px 0;
}

.linea-sumatorio .celda {
    background: #b4dcb4;
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
}

.linea-precio-m2 {
    display: grid;
    grid-template-columns: 
        60px 2fr 100px 80px 60px 100px 120px 70px 50px 70px 80px 1.2fr 1.2fr 90px 70px;
    gap: 0;
    background: #17a2b8;
}

.linea-precio-m2 .celda {
    background: #d1ecf1;
    color: #0c5460;
    font-weight: 600;
    font-size: 0.75rem;
}

.producto-cambiado {
    animation: highlightChange 1s ease-in-out;
}

/* =============== CELDAS GENERALES =============== */
.celda {
    background: white;
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    min-height: 50px;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.celda:last-child {
    border-right: none;
}

.celda-movimiento {
    flex-direction: column;
    gap: 3px;
    padding: 6px 4px;
}

.celda-producto {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 6px;
}

.producto-nombre {
    font-weight: 600;
    color: #333;
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 3px;
    width: 100%;
    text-align: left;
}

.producto-codigo {
    font-size: 0.65rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-bottom: 4px;
}

.precio-celda {
    flex-direction: column;
    gap: 4px;
}

.precio-sin-descuento {
    text-decoration: line-through !important;
    color: #6c757d !important;
    font-size: 0.85rem !important;
    display: block !important;
    font-weight: 400 !important;
}

.precio-con-descuento {
    font-weight: 700 !important;
    color: #dc3545 !important;
    font-size: 1.05rem !important;
    display: block !important;
}

.precio-descuento {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
}

.total-celda {
    flex-direction: column;
    gap: 3px;
    font-weight: 700;
}

.total-bruto {
    color: #6c757d;
    text-decoration: line-through;
    font-size: 0.75rem;
}

.total-neto {
    color: #dc3545;
    font-size: 0.95rem;
}

.acciones-celda {
    gap: 2px;
    flex-direction: column;
    padding: 4px 2px;
}

/* =============== INPUTS Y CONTROLES =============== */
.input-small {
    width: 100%;
    max-width: 70px;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
    font-size: 0.8rem;
}

.input-small:focus {
    outline: none;
    border-color: var(--accent, #D97706);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.input-rendimiento {
    width: 100%;
    max-width: 90px;
    padding: 6px 8px;
    border: 1px solid #28a745;
    border-radius: 4px;
    text-align: center;
    font-size: 0.75rem;
    background: #f8fff8;
    color: #155724;
    font-weight: 500;
}

.input-rendimiento:focus {
    outline: none;
    border-color: #20c997;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
    background: white;
}

.select-small {
    width: 100%;
    max-width: 90px;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.75rem;
    background: white;
}

.descuento-input {
    width: 45px !important;
    padding: 3px 5px !important;
    font-size: 0.7rem !important;
    border: 1px solid #28a745 !important;
    border-radius: 3px !important;
    text-align: center;
}

.descuento-input:focus {
    border-color: #20c997 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1) !important;
}

.descuento-label {
    font-size: 0.7rem;
    color: #28a745;
    font-weight: 500;
}

.comentario-input {
    width: 100%;
    min-height: 35px;
    max-height: 70px;
    padding: 4px 6px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: inherit;
    resize: vertical;
    background: #fff;
    color: #495057;
    transition: all 0.3s ease;
}

.comentario-input:focus {
    outline: none;
    border-color: var(--accent, #D97706);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
    background: #fffbf0;
}

.comentario-input::placeholder {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.65rem;
}

.comentario-input-mobile {
    width: 100%;
    min-height: 50px;
    max-height: 100px;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    background: #fff;
    color: #495057;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.comentario-input-mobile:focus {
    outline: none;
    border-color: var(--accent, #D97706);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
    background: #fffbf0;
}

.comentario-input-mobile::placeholder {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.8rem;
}

/* =============== BOTONES DE ACCIÓN =============== */
.btn-mover {
    padding: 3px 6px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 40px;
}

.btn-mover-up {
    background: #007bff;
    color: white;
}

.btn-mover-up:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.btn-mover-down {
    background: #6c757d;
    color: white;
}

.btn-mover-down:hover {
    background: #545b62;
    transform: scale(1.1);
}

.btn-mover:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn-accion {
    padding: 2px 4px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.6rem;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-accion:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.btn-eliminar {
    background: #dc3545;
    color: white;
}

.btn-eliminar:hover {
    background: #c82333;
    transform: scale(1.1);
}

.btn-duplicar {
    background: #17a2b8;
    color: white;
}

.btn-duplicar:hover {
    background: #138496;
    transform: scale(1.1);
}

/* =============== PDF VIEWER =============== */
.pdf-icon {
    display: inline-block;
    padding: 2px 4px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1;
    cursor: pointer;
    border: none;
}

.pdf-icon:hover {
    background: #c82333;
    transform: scale(1.1);
    text-decoration: none;
    color: white;
}

.pdf-icon:active {
    transform: scale(0.95);
}

.modal-pdf {
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: none;
}

.modal-pdf-content {
    background: white;
    margin: 2% auto;
    border-radius: 15px;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #dee2e6;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
}

.modal-pdf-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-pdf-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-pdf-control {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-pdf-save {
    background: #28a745;
    color: white;
}

.btn-pdf-save:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-pdf-fullscreen {
    background: #17a2b8;
    color: white;
}

.btn-pdf-fullscreen:hover {
    background: #138496;
    transform: translateY(-1px);
}

.btn-pdf-close {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 1.2rem;
    padding: 5px 10px;
    min-width: auto;
}

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

.modal-pdf-body {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8f9fa;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.pdf-loading-spinner {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

.pdf-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #dc3545;
    padding: 40px;
    text-align: center;
}

.pdf-error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

/* =============== TOAST NOTIFICATIONS =============== */
.pdf-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    max-width: 350px;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.pdf-toast.show {
    transform: translateX(0);
}

.pdf-toast.success {
    border-left: 4px solid #28a745;
}

.pdf-toast.error {
    border-left: 4px solid #dc3545;
}

.pdf-toast.info {
    border-left: 4px solid #17a2b8;
}

.pdf-toast-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.pdf-toast-message {
    color: #666;
    font-size: 0.9rem;
}

.pdf-toast-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
}

.pdf-toast-close:hover {
    color: #333;
}

/* =============== RESUMEN DEL CUADRO =============== */
.cuadro-resumen {
    background: var(--bg-muted, #F1F5F9);
    border-top: 3px solid var(--accent, #D97706);
    padding: 25px;
}

.resumen-header {
    text-align: center;
    margin-bottom: 20px;
}

.resumen-header h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
}

.resumen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.resumen-item.resumen-total {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.resumen-label {
    font-weight: 600;
    color: #495057;
}

.resumen-total .resumen-label {
    color: white;
}

.resumen-valor {
    font-weight: 700;
    color: #333;
}

.resumen-total .resumen-valor {
    color: white;
    font-size: 1.3rem;
}

/* =============== MODALES GENERALES =============== */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    background: var(--bg-surface, #1E293B);
    color: white;
    border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-header.cambio-modo {
    background: linear-gradient(135deg, #ffc107, #ffb300) !important;
    color: #856404 !important;
}

.modal-header.cambio-modo h3::before {
    content: "🔄 ";
    margin-right: 5px;
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* =============== BÚSQUEDA DE PRODUCTOS =============== */
.search-producto {
    margin-bottom: 15px;
}

.search-producto input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
}

.filtros-modal {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filtros-modal select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
}

.lista-productos-modal {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.loading-modal {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1.1rem;
}

.producto-modal-item {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.producto-modal-item:hover {
    background: #f0f4ff;
    transform: translateX(5px);
}

.producto-modal-item:last-child {
    border-bottom: none;
}

.producto-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.producto-modal-nombre {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.producto-modal-codigo {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #6c757d;
}

.producto-modal-detalles {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #6c757d;
}

.producto-modal-opciones {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.opcion-modal {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 6px 10px;
    margin: 2px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #495057;
}

.rendimiento-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #28a745;
    margin-top: 5px;
}

.rendimiento-badge {
    background: #d4edda;
    color: #155724;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* =============== NAVEGACIÓN MEJORADA =============== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none !important;
    border: none !important;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(217, 119, 6, 0.08);
    color: var(--text-primary, #0F172A);
    transform: translateX(4px);
}

/* ✅ ELIMINADO - Estilos de logout movidos a navigation.css para consistencia */

/* =============== VISTA MÓVIL =============== */
.linea-producto-mobile {
    display: none !important;
}

.mobile-producto-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mobile-producto-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.mobile-producto-codigo {
    font-size: 0.8rem;
    color: #666;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.mobile-acciones {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.mobile-campos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.mobile-campo {
    display: flex;
    flex-direction: column;
}

.mobile-campo label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-campo input,
.mobile-campo select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.mobile-totales {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.mobile-precio {
    text-align: right;
}

.mobile-precio-unitario {
    font-size: 0.9rem;
    color: #666;
}

.mobile-precio-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #dc3545;
}

.mobile-descuento {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}

/* =============== ANIMACIONES =============== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes highlightChange {
    0% { background-color: rgba(255, 193, 7, 0.3); }
    50% { background-color: rgba(255, 193, 7, 0.6); }
    100% { background-color: transparent; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        transform: translate(100%, -50%);
        opacity: 0;
    }
    to {
        transform: translate(0, -50%);
        opacity: 1;
    }
}

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

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulseGlobal {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* =============== ESTADOS Y UTILIDADES =============== */
.loading-state {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

.high-contrast .descuento-global-integrado {
    border-width: 3px;
    border-style: solid;
}

.high-contrast .btn-restablecer-mini {
    border: 2px solid currentColor;
}

.high-contrast .descuento-global-input-mini {
    border: 2px solid currentColor !important;
}

/* =============== TOOLTIPS =============== */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 95%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    pointer-events: none;
}

/* =============== ELIMINACIÓN DE ESTILOS OBSOLETOS =============== */
.descuento-global-section,
.descuento-global-header,
.descuento-global-title,
.descuento-global-controls,
.descuento-global-input-group,
.descuento-global-input,
.descuento-global-symbol,
.btn-restablecer,
.descuento-activo-indicator {
    display: none !important;
}

/* =============== RESPONSIVE DESIGN =============== */
@media (max-width: 1400px) {
    .cuadro-header,
    .linea-producto,
    .linea-sumatorio,
    .linea-precio-m2 {
        grid-template-columns: 
            50px 2fr 90px 70px 55px 90px 110px 65px 45px 65px 75px 1.2fr 1.2fr 85px 65px;
    }
    
    .cuadro-header > div {
        font-size: 0.7rem;
        padding: 10px 3px;
    }
    
    .celda {
        padding: 6px 3px;
        font-size: 0.72rem;
    }
    
    .input-small {
        max-width: 55px;
        font-size: 0.7rem;
    }
    
    .select-small {
        max-width: 65px;
        font-size: 0.7rem;
    }
    
    .input-rendimiento {
        max-width: 75px;
        font-size: 0.7rem;
    }
}

@media (max-width: 1200px) {
    .cuadro-header,
    .linea-producto,
    .linea-sumatorio,
    .linea-precio-m2 {
        grid-template-columns: 
            45px 2fr 80px 65px 50px 80px 100px 60px 45px 60px 70px 1.1fr 1.1fr 80px 60px;
    }
    
    .cuadro-header > div {
        font-size: 0.65rem;
        padding: 8px 2px;
    }
    
    .celda {
        padding: 5px 2px;
        font-size: 0.68rem;
    }
    
    .input-small {
        max-width: 50px;
        font-size: 0.65rem;
    }
    
    .select-small {
        max-width: 60px;
        font-size: 0.65rem;
    }
    
    .input-rendimiento {
        max-width: 70px;
        font-size: 0.65rem;
    }

    .comentario-input {
        font-size: 0.6rem;
        min-height: 28px;
        max-height: 50px;
    }
    
    /* Mejoras responsive para layout compacto */
    .cuadro-actions {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .descuento-global-integrado {
        order: -1;
        flex: 0 0 auto;
    }
    
    .iva-toggle-cuadro {
        order: -1;
        flex: 0 0 auto;
    }
}

@media (max-width: 1024px) {
    .cuadro-actions-fixed-mini {
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .cuadro-header,
    .linea-producto,
    .linea-precio-m2 {
        display: none !important;
    }

    /* ── Sumatorio de partida visible en móvil ── */
    .linea-sumatorio {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        background: var(--bg-surface, #1E293B);
        color: white;
        border-radius: 0 8px 8px 0;
        border-left: 5px solid var(--accent, #D97706);
        padding: 12px 16px;
        margin-bottom: 6px;
        /* Ocultar todas las celdas por defecto */
    }

    .linea-sumatorio .celda {
        display: none;
        background: transparent;
        color: white;
        font-size: 0.82rem;
        font-weight: 600;
        padding: 2px 4px;
        border: none;
        justify-content: flex-start;
    }

    /* Mostrar: etiqueta TOTAL (col 2), superficie (col 6), precio neto (col 12), €/m² (col 14) */
    .linea-sumatorio .celda:nth-child(2) {
        display: flex;
        font-size: 0.78rem;
        font-weight: 700;
        opacity: 0.85;
        flex: 1 0 100%;   /* ocupa fila completa */
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .linea-sumatorio .celda:nth-child(6) {
        display: flex;
        font-size: 0.82rem;
        opacity: 0.9;
    }
    .linea-sumatorio .celda:nth-child(6)::before {
        content: "📐 ";
    }

    .linea-sumatorio .celda:nth-child(12) {
        display: flex;
        font-size: 0.9rem;
        font-weight: 700;
    }
    .linea-sumatorio .celda:nth-child(12)::before {
        content: "💰 ";
    }

    .linea-sumatorio .celda:nth-child(14) {
        display: flex;
        color: var(--accent, #D97706);
        font-size: 1rem;
        font-weight: 800;
    }
    .linea-sumatorio .celda:nth-child(14)::before {
        content: "📊 ";
    }

    .linea-producto-mobile {
        background: white;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border-left: 4px solid var(--accent, #D97706);
        display: block !important;
        margin-bottom: 15px;
    }

    .project-header-improved {
        padding: 8px 12px;
    }

    .project-grid {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 6px 12px;
        align-items: start;
    }

    /* Nº: columna 1 fila 1 */
    .project-field:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        padding: 0;
        border-right: none;
    }

    /* Proyecto: columna 2 fila 1, ocupa toda la anchura restante */
    .project-field.project-name-field {
        grid-column: 2;
        grid-row: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        padding: 0;
        border-right: none;
        border-top: none;
        min-width: 0;
        width: auto;
    }

    /* Rev.: columna 1 fila 2 */
    .project-field:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        padding: 0;
        border-right: none;
    }

    /* Fecha: columna 2 fila 2 */
    .project-field:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        padding: 0;
        border-right: none;
    }

    .project-value {
        white-space: normal;
        word-break: break-word;
        font-size: 0.88rem;
    }

    .project-name-input {
        min-width: 0;
        width: 100%;
        font-size: 0.85rem;
    }

    .cuadro-actions {
        gap: 5px;
        padding: 7px 10px;
    }

    .action-sep {
        height: 20px;
        margin: 0 2px;
    }

    .cuadro-actions .btn,
    .descuento-global-integrado,
    .iva-toggle-cuadro {
        flex-shrink: 0;
    }
    
    /* ── Menú fijo móvil: fila única horizontal con scroll ── */
    .cuadro-actions-fixed-mini {
        padding: 6px 10px;
    }

    .cuadro-actions-fixed-mini .cuadro-actions {
        flex-direction: row;
        flex-wrap: nowrap;       /* NUNCA romper en 2 filas */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;   /* ocultar scrollbar */
        justify-content: flex-start;
        gap: 6px;
    }

    .cuadro-actions-fixed-mini .cuadro-actions::-webkit-scrollbar {
        display: none;
    }

    .cuadro-actions-fixed-mini .btn {
        flex-shrink: 0;          /* no comprimir: scroll en su lugar */
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
        min-height: 32px !important;
        white-space: nowrap;
    }

    body.fixed-actions-active {
        padding-top: 60px;
    }
    
    .cuadro-lineas {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .tips-cuadro {
        flex-direction: column;
        gap: 15px;
    }
    
    .tip-item {
        justify-content: center;
    }
    
    .resumen-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .filtros-modal {
        flex-direction: column;
    }
    
    .modal-pdf-content {
        width: 98%;
        height: 95vh;
        margin: 1% auto;
    }
    
    .modal-pdf-header {
        padding: 10px 15px;
    }
    
    .modal-pdf-header h3 {
        font-size: 1rem;
    }
    
    .modal-pdf-controls {
        gap: 5px;
    }
    
    .btn-pdf-control {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .dropdown-menu {
        position: fixed;
        top: 60px !important;
        right: 10px;
        left: 10px;
        width: auto;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .descuento-global-integrado {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .descuento-global-integrado label {
        font-size: 0.7rem;
    }
    
    .descuento-global-input-mini {
        width: 30px;
        font-size: 0.75rem;
    }
    
    .descuento-input-group span {
        font-size: 0.7rem;
    }
    
    .cuadro-actions-fixed-mini .cuadro-actions {
        gap: 5px;
    }

    .cuadro-actions-fixed-mini .btn {
        padding: 5px 10px !important;
        font-size: 0.74rem !important;
    }
    
    body.fixed-actions-active {
        padding-top: 60px;
    }

    .project-header-improved {
        padding: 8px 10px;
    }

    .project-value {
        font-size: 0.85rem;
    }

    .project-name-input {
        font-size: 0.82rem;
        padding: 4px 8px;
    }
    
    .container {
        padding: 15px;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .comentario-input-mobile {
        min-height: 60px;
        font-size: 0.8rem;
    }

    .mobile-campos {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mobile-totales {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .mobile-precio {
        text-align: center;
    }

    .mobile-acciones {
        justify-content: center;
        flex-wrap: wrap;
    }

    .mobile-acciones .btn-accion,
    .mobile-acciones .btn-mover,
    .mobile-acciones .btn-cambiar {
        min-width: 35px;
        min-height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* =============== MÓVIL LANDSCAPE (iPhone, teléfonos apaisados) =============== */
/*
 * En landscape, el iPhone 17 Pro mide ~852px de ancho → supera el breakpoint de 768px
 * por lo que se muestra la tabla desktop, pero el contenedor tiene overflow:hidden y
 * la tabla necesita ~950px mínimo. Resultado: tabla cortada sin scroll posible.
 *
 * Fix: para teléfonos en landscape (height ≤ 500px), hacer scroll horizontal en el
 * contenedor y garantizar un ancho mínimo a las filas de la tabla.
 */
@media (orientation: landscape) and (max-height: 500px) {
    /* Permitir scroll horizontal en el contenedor principal */
    .cuadro-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Quitar el clip horizontal del área de filas */
    .cuadro-lineas {
        overflow-x: visible !important;
        min-width: 950px;
    }

    /* Fijar un ancho mínimo en header y filas para que el scroll tenga sentido */
    .cuadro-header,
    .linea-producto,
    .linea-sumatorio,
    .linea-precio-m2 {
        min-width: 950px;
    }

    /* Barrita de scroll discreta para indicar que hay más contenido */
    .cuadro-container::-webkit-scrollbar {
        height: 4px;
    }
    .cuadro-container::-webkit-scrollbar-track {
        background: #f1f5f9;
    }
    .cuadro-container::-webkit-scrollbar-thumb {
        background: #D97706;
        border-radius: 2px;
    }

    /* Reducir padding del área de líneas en landscape para aprovechar el espacio */
    .cuadro-lineas {
        padding: 10px 12px;
        gap: 8px;
    }

    /* ── Modales de advertencia en landscape ────────────────────────────────
     * Problema: en landscape (393px alto) los modales tienen max-height: 90vh/85vh
     * = ~334-353px. El header + scrollContainer (min-height:200px) + footer
     * suman más → los botones de acción quedan ocultos sin posibilidad de scroll.
     *
     * Fix: convertir el overlay en el scroll container y liberar el contenido
     * interno de restricciones de altura.
     * ──────────────────────────────────────────────────────────────────────── */

    /* Overlay scrollable + alinear al inicio para poder hacer scroll */
    #modalProductosObsoletos,
    #modalDatosConsumoActualizados {
        align-items: flex-start !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 8px !important;
    }

    /* Caja de contenido: quitar restricción de altura manteniendo el clip de border-radius */
    #modalProductosObsoletos > div,
    #modalDatosConsumoActualizados > div {
        max-height: none !important;
        overflow: hidden !important;
        margin: 0 auto 8px auto;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Scroll container interno (lista de productos): sin min-height ni max-height
       porque ahora el scroll está en el overlay, no dentro del modal */
    #modalDatosConsumoActualizados > div > div:nth-child(2),
    #modalProductosObsoletos > div > div:nth-child(2) {
        max-height: none !important;
        overflow-y: visible !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
    }

    /* Compactar el header del modal en landscape */
    #modalProductosObsoletos > div > div:first-child,
    #modalDatosConsumoActualizados > div > div:first-child {
        padding: 12px 15px !important;
        border-radius: 20px 20px 0 0;
    }
}

/* =============== MODO OSCURO =============== */
@media (prefers-color-scheme: dark) {
    .descuento-global-integrado {
        background: linear-gradient(135deg, #2d3748, #4a5568);
        border-color: #e2e8f0;
    }
    
    .descuento-input-group {
        background: #1a202c;
        border-color: #4a5568;
    }
    
    .descuento-global-input-mini {
        color: #e2e8f0;
    }
    
    .cuadro-actions-fixed-mini {
        background: #1a202c;
        border-bottom-color: #4a5568;
    }
}

/* =============== IMPRESIÓN =============== */
@media print {
    .cuadro-actions,
    .cuadro-actions-fixed-mini,
    .descuento-global-integrado,
    .nav,
    .modal {
        display: none !important;
    }
    
    .project-header-improved {
        background: white !important;
        color: black !important;
        border: 2px solid #333 !important;
        box-shadow: none !important;
    }
    
    .cuadro-container {
        box-shadow: none !important;
    }
}