* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    color: #1f2937;
    line-height: 1.6;
}

/* Paleta personalizada escalada */
:root {
    --color-50:  #F8FAFC;
    --color-100: #F1F5F9;
    --color-200: #E2E8F0;
    --color-300: #CAD5E2;
    --color-400: #90A1B9;
    --color-500: #62748E;
    --color-600: #45556C;
    --color-700: #314158;
    --color-800: #1D293D;
    --color-900: #0F172B;
    --color-950: #020618;

    /* Mapeo de marca */
    --brand-bg: var(--color-800);
    --brand-primary: var(--color-600);
    --brand-accent: var(--color-400);
    --brand-contrast: var(--color-50);
    --brand-border: var(--color-700);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-bg) 100%);
    color: var(--brand-contrast);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    font-size: 2em;
    flex: 1;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.desktop-nav {
    display: flex;
}

.mobile-nav {
    display: none;
}

.nav-link {
    color: var(--brand-contrast);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
    background: rgba(255,255,255,0.2);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.3);
}

/* ========== MENÚ DESPLEGABLE ADMINISTRACIÓN ========== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: inherit;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 10px;
    opacity: 0.8;
    transition: transform 0.3s;
    display: inline-block;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
    background: rgba(255,255,255,0.3);
    color: white;
}

.dropdown-toggle.active::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: white;
    min-width: 260px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    border: 1px solid #e5e7eb;
    border-top: 3px solid #334155;
    overflow: hidden;
    margin-top: 0;
}

.dropdown-menu::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #334155 20%, #334155 80%, transparent 100%);
    margin-bottom: 0;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu a {
    display: block;
    padding: 14px 24px;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f9fafb;
    color: #1e293b;
    padding-left: 28px;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #334155;
    transform: scaleY(0);
    transition: transform 0.2s;
}

.dropdown-menu a:hover::before {
    transform: scaleY(1);
}

.language-selector {
    position: relative;
    display: inline-block;
    margin-left: auto;
}

.language-menu {
    min-width: 180px;
}

@media (max-width: 768px) {
    .dropdown-menu {
        right: auto;
        left: 0;
        width: 100%;
        min-width: 220px;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .language-selector {
        margin-left: 0;
        width: 100%;
    }
    
    .language-selector .nav-link {
        width: 100%;
    }

    /* Tablas y botones full-width en móviles */
    .table-container {
        margin: 0 -10px; /* permitir scroll sin cortar */
        padding: 0 10px;
    }
    table th,
    table td {
        padding: 10px;
        white-space: nowrap;
    }
    .form-actions .btn,
    .page-header .btn {
        width: 100%;
    }
}

main {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    min-height: 500px;
    border: 1px solid #e5e7eb;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #334155;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.page-header h2 {
    color: #1e293b;
    font-size: 1.8em;
    font-weight: 600;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--color-700);
}

.btn-danger {
    background: #dc2626;
    color: white;
    font-weight: 500;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-success {
    background: #047857;
    color: white;
    font-weight: 500;
}

.btn-success:hover {
    background: #065f46;
}

.btn-secondary {
    background: var(--color-500);
    color: #fff;
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--color-600);
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    min-width: 720px;
}

/* Tabla de materiales: usar todo el ancho de forma proporcionada */
.materials-table {
    table-layout: fixed;
}
.materials-table th:nth-child(1),
.materials-table td:nth-child(1) { /* ID */
    width: 8%;
}
.materials-table th:nth-child(2),
.materials-table td:nth-child(2) { /* NAME */
    width: 44%;
    white-space: normal;
}
.materials-table th:nth-child(3),
.materials-table td:nth-child(3) { /* UNIT */
    width: 12%;
}
.materials-table th:nth-child(4),
.materials-table td:nth-child(4) { /* STOCK */
    width: 16%;
}
.materials-table th:nth-child(5),
.materials-table td:nth-child(5) { /* ACTIONS */
    width: 20%;
}
.materials-table td:nth-child(5) .btn {
    margin-right: 8px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #d1d5db;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

table tr:hover {
    background: #f9fafb;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* ============================
   ESTILOS PARA PAQUETES
   ============================ */
.paquetes-info {
    display: inline-block;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #334155;
    margin: 10px 0;
    font-size: 14px;
}

.paquetes-info strong {
    color: #1e293b;
    margin-right: 8px;
}

.paquetes-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.paquetes-badge .paquete-icon {
    font-size: 16px;
}

.piezas-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* Estilos para formulario de materiales con paquetes */
#paquetesFields {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin: 15px 0;
}

#paquetesFields .form-group {
    margin-bottom: 15px;
}

#paquetesFields label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

#paquetesFields input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

#paquetesFields small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-style: italic;
}

/* ============================
   ESTILOS PARA HOJAS DE TRABAJO
   ============================ */
.form-section-header {
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.form-section-header h3 {
    color: #1e293b;
    font-size: 1.3em;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.materiales-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
    margin: 20px 0;
}

.categoria-section {
    margin-bottom: 30px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.categoria-title {
    color: #1e293b;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #334155;
}

.materiales-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.materiales-table th {
    background: #334155;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.materiales-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.materiales-table tbody tr:hover {
    background: #f9fafb;
}

.materiales-table input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.hoja-trabajo-view {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.hoja-header-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.info-item {
    padding: 10px;
}

.info-item strong {
    color: #1e293b;
    margin-right: 8px;
}

.hoja-footer-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.verification-section h4 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.verification-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.verification-item {
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.verification-item strong {
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 1px solid #e5e7eb;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.modal-header h3 {
    color: #1e293b;
    margin: 0;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #334155;
    box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-card h3 {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 2em;
    font-weight: bold;
}

.stat-card-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-left: 4px solid #ff5722;
}

.stat-card-warning .value {
    color: #fff;
}

.stat-card-warning h3 {
    color: rgba(255, 255, 255, 0.95);
}

/* ========== VISTA MÓVIL CAMIONES ========== */
.camiones-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.camiones-header h2 {
    color: #1e293b;
    margin: 0;
    font-size: 1.8em;
}

.camiones-mobile-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.camion-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.camion-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: #334155;
}

.camion-card.inactivo {
    opacity: 0.7;
    background: #f9fafb;
}

.camion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.camion-patente {
    font-size: 1.5em;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 2px;
}

.camion-modelo {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
    padding-left: 5px;
}

.camion-chofer-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.camion-chofer-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.camion-chofer-info {
    margin-bottom: 12px;
}

.chofer-nombre {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.chofer-sin-asignar {
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
}

.btn-mobile {
    min-height: 48px;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    touch-action: manipulation;
}

.btn-cambiar-chofer {
    width: 100%;
    margin-top: 10px;
}

.btn-icon {
    margin-right: 5px;
}

/* Formulario móvil para cambiar chofer */
.mobile-chofer-form {
    padding: 0;
}

.chofer-form-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.chofer-form-header h3 {
    color: #1e293b;
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.camion-info-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
}

.camion-info-mini strong {
    color: #1e293b;
    font-size: 16px;
}

.form-group-mobile {
    margin-bottom: 25px;
}

.form-group-mobile label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.select-mobile {
    width: 100%;
    padding: 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.3s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.select-mobile:focus {
    outline: none;
    border-color: #334155;
    box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.1);
}

.form-actions-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 30px;
}

.form-actions-mobile .btn {
    width: 100%;
}

/* ========== BOTONES DE CHOFERES MÓVIL ========== */
.choferes-buttons-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 5px;
}

.chofer-button {
    width: 100%;
    min-height: 70px;
    padding: 15px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    touch-action: manipulation;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.chofer-button:hover {
    border-color: #334155;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.chofer-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chofer-button-selected {
    border-color: #334155;
    background: #f0f4f8;
    box-shadow: 0 2px 8px rgba(51, 65, 85, 0.15);
}

.chofer-button-selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #334155;
    border-radius: 12px 0 0 12px;
}

.chofer-button-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chofer-button-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    max-width: 100%;
}

.chofer-button-phone {
    font-size: 13px;
    color: #6b7280;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.chofer-button-license {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.chofer-button-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #334155;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
    margin-left: 8px;
    min-width: 28px;
}

.chofer-button-unassign {
    border-style: dashed;
    background: #f9fafb;
}

.chofer-button-unassign .chofer-button-name {
    color: #6b7280;
}

.chofer-button-unassign.chofer-button-selected {
    background: #fffbf0;
    border-color: #ffc107;
}

.chofer-button-unassign.chofer-button-selected::before {
    background: #ffc107;
}

.chofer-button-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    background: #f3f4f6 !important;
    border-color: #e5e7eb !important;
}

.chofer-button-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #f3f4f6 !important;
}

.chofer-button-warning {
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Scrollbar para lista de choferes */
.choferes-buttons-container::-webkit-scrollbar {
    width: 6px;
}

.choferes-buttons-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.choferes-buttons-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.choferes-buttons-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive para botones de choferes */
@media (max-width: 768px) {
    .choferes-buttons-container {
        grid-template-columns: 1fr;
    }
    
    .chofer-button {
        min-height: 80px;
        padding: 15px;
    }
    
    .chofer-button-name {
        font-size: 17px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .choferes-buttons-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .choferes-buttons-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    nav {
        flex-direction: column;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Vista móvil camiones en pantallas pequeñas */
    .camiones-mobile-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .camiones-header {
        flex-direction: column;
        align-items: stretch;
    }

    .camiones-header .btn {
        width: 100%;
    }

    .camion-patente {
        font-size: 1.3em;
    }
}

/* Tablet y desktop - 2-3 columnas */
@media (min-width: 769px) and (max-width: 1200px) {
    .camiones-mobile-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1201px) {
    .camiones-mobile-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

