/* Variables globales */
:root {
    --primary-blue: #3b82f6;
    --accent-dark: #2563eb;
    --text-gray: #4b5563;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1a1b1e;
    --border-light: #e2e8f0;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Colores por conductor con opacidad reducida */
:root {
    --conductor-ferreira: rgba(51, 255, 181, 0.3);
    --conductor-gomez: rgba(59, 130, 246, 0.3);
    --conductor-diaz: rgba(16, 185, 129, 0.3);
    --conductor-barbero: rgba(245, 158, 11, 0.3);
    --conductor-rivas: rgba(255, 87, 51, 0.3);
    --conductor-pavon: rgba(51, 255, 87, 0.3);
    --conductor-gordillo: rgba(51, 87, 255, 0.3);
    --conductor-pachon: rgba(255, 51, 233, 0.3);
    --conductor-delgado: rgba(51, 255, 246, 0.3);
    --conductor-perez: rgba(255, 181, 51, 0.3);
    --conductor-correa: rgba(255, 51, 51, 0.3);
    --conductor-juarez: rgba(181, 51, 255, 0.3);
}

/* Estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-button {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* Main content */
.main-content {
    padding: 2rem;
    margin-bottom: 70px;
}

/* Controls bar */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filters select {
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.refresh-button {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.refresh-button:hover {
    background-color: var(--accent-dark);
}

.stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    min-width: 80px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Content container */
.content-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Conductor sections */
.conductor-section {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.conductor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--conductor-color, var(--primary-blue)) 0%, rgba(255,255,255,0.9) 100%);
    color: var(--text-dark); /* Cambiar a texto oscuro para mejor contraste */
}

.conductor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.conductor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.conductor-details h3 {
    margin: 0;
    font-size: 1.2rem;
}

.conductor-details p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.conductor-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.pedidos-count {
    font-weight: 600;
    font-size: 1.1rem;
}

.vehicle-info {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Pedidos list */
.pedidos-list {
    padding: 0;
}

.pedido-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.pedido-item:hover {
    background-color: var(--bg-light);
}

.pedido-item:last-child {
    border-bottom: none;
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.cliente-nombre {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    flex: 1;
}

.pedido-fecha {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.pedido-descripcion {
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.pedido-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--text-gray);
    width: 16px;
}

.detail-value {
    color: var(--text-dark);
    font-weight: 500;
}

/* Colores específicos por conductor */
.conductor-ferreira {
    --conductor-color: var(--conductor-ferreira);
}

.conductor-gomez {
    --conductor-color: var(--conductor-gomez);
}

.conductor-diaz {
    --conductor-color: var(--conductor-diaz);
}

.conductor-barbero {
    --conductor-color: var(--conductor-barbero);
}

.conductor-rivas {
    --conductor-color: var(--conductor-rivas);
}

.conductor-pavon {
    --conductor-color: var(--conductor-pavon);
}

.conductor-gordillo {
    --conductor-color: var(--conductor-gordillo);
}

.conductor-pachon {
    --conductor-color: var(--conductor-pachon);
}

.conductor-delgado {
    --conductor-color: var(--conductor-delgado);
}

.conductor-perez {
    --conductor-color: var(--conductor-perez);
}

.conductor-correa {
    --conductor-color: var(--conductor-correa);
}

.conductor-juarez {
    --conductor-color: var(--conductor-juarez);
}

/* Pendientes header */
.pendientes-header {
    background: linear-gradient(135deg, #6b7280 0%, rgba(255,255,255,0.1) 100%);
}

/* Navigation bar */
.navigation-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    color: var(--text-gray);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-blue);
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1rem;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin: 0.5rem 0 0 0;
        max-width: none;
    }

    .main-content {
        padding: 1rem;
    }

    .controls-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .filters {
        flex-wrap: wrap;
    }

    .stats {
        justify-content: center;
    }

    .conductor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .conductor-stats {
        align-items: flex-start;
    }

    .pedido-details {
        grid-template-columns: 1fr;
    }

    .navigation-bar {
        gap: 20px;
    }

    .nav-item {
        font-size: 0.8rem;
    }

    .nav-item i {
        font-size: 1.3rem;
    }
}

/* Loading state */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--text-gray);
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-light);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-create-albaran {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-create-albaran:hover {
    background-color: var(--accent-dark);
}

.btn-view-details {
    background-color: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background-color: var(--bg-light);
    border-color: var(--text-gray);
}


.modal-content {
    background-color: var(--bg-white);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-medium);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}


/* Pedido details styles */
.pedido-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    font-size: 1.1rem;
}

.detail-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.detail-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Tabla de artículos */
.articulos-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.articulos-table table {
    width: 100%;
    border-collapse: collapse;
}

.articulos-table th,
.articulos-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.articulos-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.articulos-table tr:last-child td {
    border-bottom: none;
}

.articulos-table tr:hover {
    background-color: var(--bg-light);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        border-radius: 0;
        height: 100vh;
        max-height: none;
    }
    
    .modal-header {
        border-radius: 0;
    }
    
    .pedido-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .articulos-table {
        font-size: 0.9rem;
    }
    
    .articulos-table th,
    .articulos-table td {
        padding: 0.5rem;
    }
}
/* ===== Visor números albarán (header) ===== */
.albaran-counters {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 1rem;
}

.albaran-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: var(--shadow-light);
    font-size: 0.9rem;
    white-space: nowrap;
}

.albaran-pill i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.albaran-pill .pill-label {
    color: var(--text-gray);
    font-weight: 600;
    letter-spacing: .2px;
}

.albaran-pill .pill-number {
    color: var(--text-dark);
    font-weight: 700;
}

/* Responsive: en pantallas pequeñas reducimos el tamaño */
@media (max-width: 768px) {
    .albaran-counters {
        gap: 6px;
        margin-left: .5rem;
    }
    .albaran-pill {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}
/* Sistema de notificaciones y modales mejorados */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.notification-modal {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.notification-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.notification-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.notification-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.notification-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.notification-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.notification-icon.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.notification-icon.question {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.notification-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.notification-message {
    color: var(--text-gray);
    line-height: 1.5;
    font-size: 1rem;
}

.notification-body {
    padding: 1.5rem;
}

.notification-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-light);
}

.notification-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.notification-btn.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    color: white;
}

.notification-btn.primary:hover {
    background: linear-gradient(135deg, var(--accent-dark), #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.notification-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.notification-btn.success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.notification-btn.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.notification-btn.danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.notification-btn.secondary {
    background: var(--bg-white);
    color: var(--text-gray);
    border: 1px solid var(--border-light);
}

.notification-btn.secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-gray);
}

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.loading-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.loading-subtext {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notifications */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 1rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    z-index: 12000;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-blue);
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    border-left-color: #10b981;
}

.toast-notification.error {
    border-left-color: #ef4444;
}

.toast-notification.warning {
    border-left-color: #f59e0b;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.toast-message {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-modal {
        margin: 1rem;
        max-width: none;
    }
    
    .notification-buttons {
        flex-direction: column;
    }
    
    .notification-btn {
        width: 100%;
    }
    
    .toast-notification {
        right: 1rem;
        left: 1rem;
        min-width: auto;
    }
}
/* ===== ESTILOS PARA MODIFICACIÓN DE MODELOS ===== */
/* Agregar al final de cartaportealbaran.css */

.btn-close-modificacion {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-close-modificacion:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.modificacion-content {
    padding: 0;
}

/* Pestañas de navegación */
.modificacion-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    background-color: var(--bg-light);
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background-color: var(--bg-white);
}

.tab-button:hover:not(.active) {
    color: var(--text-dark);
    background-color: rgba(59, 130, 246, 0.05);
}

/* Contenido de pestañas */
.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tab-header h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.btn-refresh {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    color: var(--text-gray);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Lista de modelos */
.modelos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modelo-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.modelo-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
}

.modelo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modelo-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modelo-icon {
    color: #1f7a1f;
    font-size: 2rem;
}

.modelo-details h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.modelo-type {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.modelo-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.file-size {
    font-weight: 600;
    color: var(--text-dark);
}

.file-date {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.modelo-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modelo-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-download {
    background-color: var(--primary-blue);
    color: white;
}

.btn-download:hover {
    background-color: var(--accent-dark);
}

.btn-info {
    background-color: var(--bg-light);
    color: var(--text-gray);
    border: 1px solid var(--border-light);
}

.btn-info:hover {
    background-color: #6b7280;
    color: white;
}

.btn-replace {
    background-color: #f59e0b;
    color: white;
}

.btn-replace:hover {
    background-color: #d97706;
}

/* Estados de carga y error */
.loading-state, .error-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.error-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ef4444;
}

/* Modal de reemplazo */
.replace-modal-content {
    max-width: 600px;
}

.warning-banner {
    background-color: #fef3cd;
    border: 1px solid #f6e05e;
    color: #975a16;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-upload-area {
    margin-bottom: 1.5rem;
}

.upload-dropzone {
    border: 2px dashed var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.upload-dropzone:hover {
    border-color: var(--primary-blue);
    background-color: rgba(59, 130, 246, 0.05);
}

.upload-dropzone i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.upload-dropzone p {
    margin: 0.5rem 0;
    color: var(--text-dark);
    font-weight: 500;
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--text-gray) !important;
}

.file-info {
    margin-bottom: 1.5rem;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: 6px;
}

.file-preview i {
    color: #1f7a1f;
    font-size: 1.2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-validate {
    background-color: #8b5cf6;
    color: white;
}

.btn-validate:hover {
    background-color: #7c3aed;
}

.btn-upload {
    background-color: var(--primary-blue);
    color: white;
}

.btn-upload:hover {
    background-color: var(--accent-dark);
}

.btn-cancel {
    background-color: var(--bg-light);
    color: var(--text-gray);
    border: 1px solid var(--border-light);
}

.btn-cancel:hover {
    background-color: var(--text-gray);
    color: white;
}

/* Lista de backups */
.backups-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.backup-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.backup-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.backup-info i {
    color: var(--text-gray);
    font-size: 1.2rem;
}

.backup-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.backup-name {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.backup-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.backup-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.backup-size {
    font-size: 0.8rem;
    color: var(--text-gray);
    min-width: 60px;
    text-align: right;
}

.btn-download-backup {
    background-color: transparent;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-download-backup:hover {
    background-color: var(--primary-blue);
    color: white;
}

.backup-more {
    text-align: center;
    padding: 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
    margin-top: 0.5rem;
}

/* Información de modelo */
.modelo-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-section h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.info-section p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.hoja-info {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background-color: var(--bg-light);
    border-radius: 4px;
}

.hoja-info strong {
    color: var(--text-dark);
}

.hoja-info small {
    color: var(--text-gray);
}
/* ============================================
   ESTILOS ACTUALIZADOS PARA BOTÓN PDF GIAHSA
   AGREGAR/REEMPLAZAR en cartaportealbaran.css
   ============================================ */

/* Botón de Modelos GIAHSA (SIN CAMBIOS) */
.btn-giahsa-models {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-giahsa-models:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.btn-giahsa-models:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-giahsa-models i {
    font-size: 1rem;
}

/* Modal de Modelos GIAHSA (SIN CAMBIOS) */
.giahsa-models-modal .giahsa-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.giahsa-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.giahsa-modal-content .modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.giahsa-modal-content .modal-title i {
    font-size: 1.5rem;
}

.giahsa-modal-content .modal-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.giahsa-modal-content .modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.giahsa-modal-content .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.giahsa-modal-content .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Banner de información ACTUALIZADO */
.giahsa-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #f59e0b;
}

.giahsa-info-banner i {
    color: #f59e0b;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.giahsa-info-banner strong {
    display: block;
    color: #92400e;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.giahsa-info-banner p {
    color: #78350f;
    margin: 0;
    font-size: 0.875rem;
}

/* Lista de archivos GIAHSA (SIN CAMBIOS) */
.giahsa-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.giahsa-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.giahsa-file-item:hover {
    background: #f3f4f6;
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.giahsa-file-item .file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.giahsa-file-item .file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.giahsa-file-item .file-icon i {
    color: white;
    font-size: 1.5rem;
}

.giahsa-file-item .file-details {
    flex: 1;
}

.giahsa-file-item .file-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.giahsa-file-item .file-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.giahsa-file-item .file-size::before {
    content: "📦 ";
}

.giahsa-file-item .file-date::before {
    content: "📅 ";
}

/* 🆕 Botón de Generar PDF (REEMPLAZA al botón de descarga) */
.btn-pdf-giahsa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-pdf-giahsa:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-pdf-giahsa:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-pdf-giahsa i {
    font-size: 1rem;
}

/* Footer del modal (SIN CAMBIOS) */
.giahsa-modal-content .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
}

/* Estado vacío */
.giahsa-files-list:empty::after {
    content: "No hay archivos disponibles";
    display: block;
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .giahsa-modal-content {
        max-width: 95%;
    }
    
    .giahsa-file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .giahsa-file-item .file-actions {
        width: 100%;
    }
    
    .btn-pdf-giahsa {
        width: 100%;
        justify-content: center;
    }
    
    .btn-giahsa-models {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn-giahsa-models span {
        display: none;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .modificacion-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        justify-content: center;
    }
    
    .modelo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .modelo-stats {
        align-items: flex-start;
    }
    
    .modelo-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .modelo-info-grid {
        grid-template-columns: 1fr;
    }
    
    .backup-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .backup-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
        justify-content: center;
    }
}
.btn-generar-pdf {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.btn-generar-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.btn-generar-pdf:active {
    transform: translateY(0);
}

.btn-generar-pdf:disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}
/* ============================================
   ESTILOS MEJORADOS - MODAL DE ALBARÁN VALORADO
   ============================================
   
   REEMPLAZA los estilos anteriores con estos
   ============================================ */

/* Modal overlay con mejor backdrop */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

/* Modal content mejorado */
.albaran-options-modal {
    background: white;
    border-radius: 16px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

/* Header del modal */
.modal-header {
    padding: 24px 28px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    color: white;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    font-size: 24px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
    font-size: 18px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Body del modal con mejores márgenes */
.modal-body {
    padding: 32px 28px;
}

/* Tarjeta de información del pedido mejorada */
.albaran-info-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item:first-child {
    padding-top: 0;
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    min-width: 100px;
}

.info-value {
    font-weight: 500;
    color: #212529;
    font-size: 14px;
    text-align: right;
    flex: 1;
    padding-left: 16px;
}

/* Info warning mejorado */
.info-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #ffc107;
    color: #856404;
    flex-direction: row;
    gap: 12px;
    margin-top: 16px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.info-warning i {
    color: #ffc107;
    font-size: 20px;
    flex-shrink: 0;
}

.info-warning span {
    font-size: 13px;
    line-height: 1.5;
}

.info-warning strong {
    color: #856404;
    font-weight: 700;
}

/* Sección de opciones mejorada */
.albaran-options-section {
    margin-bottom: 28px;
}

.option-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.option-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.15);
    transform: translateY(-2px);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.option-header i {
    font-size: 26px;
    color: #4CAF50;
}

.option-header span {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
}

.option-description {
    margin-bottom: 18px;
}

.option-description p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Toggle switch más profesional */
.option-toggle {
    margin-bottom: 14px;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.switch-label:hover {
    background: #e9ecef;
    border-color: #4CAF50;
}

.switch-input {
    position: relative;
    width: 54px;
    height: 28px;
    appearance: none;
    background: #ccc;
    border-radius: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.switch-input:checked {
    background: #4CAF50;
}

.switch-input::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.switch-input:checked::before {
    left: 28px;
}

.switch-text {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    flex: 1;
}

/* Nota informativa mejorada */
.option-note {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-note i {
    color: #4CAF50;
    font-size: 20px;
    flex-shrink: 0;
}

.option-note span {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 500;
    line-height: 1.5;
}

/* Mensaje de confirmación mejorado */
.confirmation-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    color: #1565c0;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(21, 101, 192, 0.2);
    box-shadow: 0 2px 6px rgba(21, 101, 192, 0.1);
}

.confirmation-message i {
    font-size: 22px;
    flex-shrink: 0;
}

/* Footer del modal mejorado */
.modal-footer {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    padding: 24px 28px;
    border-top: 2px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

/* Botones mejorados */
.btn {
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn i {
    font-size: 18px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Scrollbar personalizado */
.albaran-options-modal::-webkit-scrollbar {
    width: 8px;
}

.albaran-options-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 16px 16px 0;
}

.albaran-options-modal::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.albaran-options-modal::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 12px;
    }
    
    .albaran-options-modal {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 24px 20px;
    }
    
    .albaran-info-card {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 0;
    }
    
    .info-value {
        text-align: left;
        padding-left: 0;
    }
    
    .option-card {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-header h3 i {
        font-size: 20px;
    }
    
    .option-header span {
        font-size: 16px;
    }
    
    .option-header i {
        font-size: 22px;
    }
}