/* Estilos generales */
body {
    background-image: url('https://images.pexels.com/photos/3807226/pexels-photo-3807226.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    /* Cambia por la ruta de tu imagen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Estilos del menú */
header {
    position: relative;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

nav {
    position: relative;
    z-index: 50;
    background: rgba(0, 0, 0, 0.8);
    /* Fondo semi-transparente */
    padding: 15px;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-right: 0;
}

nav ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

nav ul li a:hover {
    background: #ffcc00;
    color: black;
    border-radius: 5px;
}

/* Estilo para el botón de cerrar sesión */
nav form {
    margin-left: auto;
    display: flex;
    align-items: center;
    /* Lo empuja a la derecha */
}

nav form button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

nav form button:hover {
    background: #c0392b;
}





/* Estilos para la vista de inicio */

/* Contenedor principal */
.contenedor-inicio {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Tarjeta de bienvenida */
.contenedor-inicio2 {
    background: rgba(255, 255, 255, 0.15); /* Fondo semi-transparente */
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px); /* Efecto Glassmorphism */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 350px;
    width: 100%;
}

.contenedor-inicio2 h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Estilos para los botones */
.botones-inicio {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Botones con diseño elegante */
.botones-inicio a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Colores personalizados */
.botones-inicio a:nth-child(1) {
    background: #3498db; /* Azul */
}

.botones-inicio a:nth-child(1):hover {
    background: #2980b9;
}

.botones-inicio a:nth-child(2) {
    background: #2ecc71; /* Verde */
}

.botones-inicio a:nth-child(2):hover {
    background: #27ae60;
}

.botones-inicio a:nth-child(3) {
    background: #f1c40f; /* Amarillo */
    color: black;
}

.botones-inicio a:nth-child(3):hover {
    background: #d4ac0d;
}

/* Animación de botones */
.botones-inicio a:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(255, 255, 255, 0.2);
}










/* Estilos para la vista de login */
.contenedor-login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.contenedor-login2 {
    background: rgba(255, 255, 255, 0.15); /* Fondo semi-transparente */
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px); /* Efecto Glassmorphism */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.contenedor-login2 h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Estilos de los campos del formulario */
.campo {
    margin-bottom: 20px;
    text-align: left;
}

.campo label {
    display: block;
    font-size: 1rem;
    color: white;
    margin-bottom: 5px;
}

.campo input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1rem;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Estilos para el recordatorio y enlace */
.recordar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recordar label {
    color: white;
    font-size: 1rem;
}

.recordar a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recordar a:hover {
    color: #ffdd44;
}

/* Botón de inicio de sesión */
.boton-login {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.boton-login:hover {
    background: #2980b9;
    transform: scale(1.05);
}












/* Estilos para la vista de registro */
.contenedor-register {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.contenedor-register2 {
    background: rgba(255, 255, 255, 0.15); /* Fondo semi-transparente */
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px); /* Efecto Glassmorphism */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.contenedor-register2 h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Estilos de los campos del formulario */
.campo {
    margin-bottom: 20px;
    text-align: left;
}

.campo label {
    display: block;
    font-size: 1rem;
    color: white;
    margin-bottom: 5px;
}

.campo input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1rem;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Botón de registro */
.boton-register {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.boton-register:hover {
    background: #27ae60;
    transform: scale(1.05);
}










/* Estilos para la vista de recuperación */
.contenedor-recuperar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.contenedor-recuperar2 {
    background: rgba(255, 255, 255, 0.15); /* Fondo semi-transparente */
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px); /* Efecto Glassmorphism */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.contenedor-recuperar2 h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Estilos de los campos del formulario */
.campo {
    margin-bottom: 20px;
    text-align: left;
}

.campo label {
    display: block;
    font-size: 1rem;
    color: white;
    margin-bottom: 5px;
}

.campo input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1rem;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Botón de recuperación */
.boton-recuperar {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.boton-recuperar:hover {
    background: #e67e22;
    transform: scale(1.05);
}










/* Estilos de la vista repuestos */

/* Contenedor principal */
.contenedor-repuestos {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15); /* Fondo semi-transparente */
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Encabezado */
h1 {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

/* Estilos de la tabla */
.tabla-repuestos {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.8); /* Fondo oscuro sólido para legibilidad */
    color: white;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    background: rgba(255, 255, 255, 0.1); /* Fondo semitransparente en celdas */
}

th {
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    font-weight: bold;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.2);
}

/* Botones */
.boton-crear, .boton-ver, .boton-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espaciado entre ícono y texto */
    padding: 10px 15px;
    margin: 10px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Botón "Crear Repuesto" */
.boton-crear {
    background: #3498db;
    color: white;
}

.boton-crear:hover {
    background: #2980b9;
}

/* Botón "Ver" con ícono */
.boton-ver {
    background: #2ecc71;
    color: white;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
}

.boton-ver:hover {
    background: #27ae60;
}

/* Ícono para botón "Ver" */
.boton-ver i {
    font-size: 1.2rem;
}

/* Botón "Volver" con estilo más llamativo */
.boton-volver {
    background: linear-gradient(135deg, #ff5733, #c0392b); /* Degradado llamativo */
    color: white;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.boton-volver:hover {
    background: linear-gradient(135deg, #c0392b, #ff5733);
    transform: scale(1.05);
}

/* Paginación */
.paginacion {
    margin-top: 20px;
}












/* estilos de crear repuestos */
/* Contenedor principal del formulario */
.formulario-repuestos {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15); /* Fondo semi-transparente */
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Encabezado */
h1 {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

/* Estilos de los labels */
label {
    display: block;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Inputs */
input,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease-in-out;
}

input:focus,
select:focus {
    border: 1px solid #3498db;
    background: rgba(255, 255, 255, 0.2);
}

/* Mensajes de error */
.error-message {
    color: #ff4d4d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Botón Enviar */
.boton-enviar {
    background: #2ecc71;
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.boton-enviar:hover {
    background: #27ae60;
    transform: scale(1.05);
}

/* Efecto de hover en los inputs */
input:hover {
    background: rgba(255, 255, 255, 0.3);
}

.formulario-repuestos__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 44px 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.82)),
        linear-gradient(45deg, transparent 50%, #60a5fa 50%),
        linear-gradient(135deg, #60a5fa 50%, transparent 50%);
    background-repeat: no-repeat;
    background-size: auto, 10px 10px, 10px 10px;
    background-position: 0 0, calc(100% - 24px) 50%, calc(100% - 18px) 50%;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
    cursor: pointer;
}

.formulario-repuestos__select:hover {
    border-color: rgba(96, 165, 250, 0.9);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.38)),
        linear-gradient(45deg, transparent 50%, #93c5fd 50%),
        linear-gradient(135deg, #93c5fd 50%, transparent 50%);
    background-repeat: no-repeat;
    background-size: auto, 10px 10px, 10px 10px;
    background-position: 0 0, calc(100% - 24px) 50%, calc(100% - 18px) 50%;
}

.formulario-repuestos__select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2), 0 14px 28px rgba(15, 23, 42, 0.26);
}

.formulario-repuestos__select option {
    background: #0f172a;
    color: #f8fafc;
}








/* vista ver repuestos */
/* Contenedor principal del detalle */
.detalle-repuesto {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Encabezado */
h1 {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

/* Lista de detalles */
ul {
    list-style: none;
    padding: 0;
}

li {
    font-size: 1.2rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: left;
}

/* Estilo común para los botones */
.boton-modificar, .boton-eliminar, .boton-volver {
    background-color: #3498db; /* Color de fondo */
    color: white;
    padding: 12px 20px; /* Espaciado interno para asegurar altura */
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block; /* Asegura que el botón se comporte como un bloque en línea */
    width: 100%; /* Asegura que los botones ocupen todo el ancho del contenedor */
    box-sizing: border-box; /* Asegura que el padding no afecte el tamaño */
}

/* Color de fondo específico para cada botón */
.boton-modificar {
    background-color: #3498db;
}

.boton-eliminar {
    background-color: #e74c3c;
}

.boton-volver {
    background-color: #2ecc71;
}

/* Efecto hover */
.boton-modificar:hover {
    background-color: #2980b9;
}

.boton-eliminar:hover {
    background-color: #c0392b;
}

.boton-volver:hover {
    background-color: #27ae60;
}

/* Contenedor para mantener los botones en la misma fila */
.botones-alineados {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

/* Aseguramos que los botones en el contenedor se estiren para tener la misma altura */
.botones-alineados a, 
.botones-alineados form button {
    flex-grow: 1; /* Los botones crecen igualmente */
    height: 50px; /* Asegura la misma altura */
    text-align: center; /* Centra el texto */
    line-height: 30px; /* Ajusta la alineación vertical del texto */
}









/* vista editar repuestos */
/* Contenedor principal del formulario */
.formulario-modificar {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(30, 30, 30, 0.9); /* Fondo oscuro sólido */
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6);
    text-align: center;
    color: white; /* Color de texto general más visible */
}

/* Estilos de los inputs */
.formulario-modificar input,
.formulario-modificar select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #00aaff;   /* Letras azules brillantes */
    background: #222; /* Fondo oscuro para contraste */
    font-size: 1rem;
}

/* Efecto al enfocar */
.formulario-modificar input:focus,
.formulario-modificar select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0px 0px 6px rgba(52, 152, 219, 0.7);
}

/* Estilos del botón "Modificar" */
.boton-modificar {
    display: inline-block;
    width: 200px;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 10px;
    border: none;
    background: #f39c12;
    color: white;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.boton-modificar:hover {
    background: #e67e22;
    transform: scale(1.05);
}








/* vista reparaciones */
/* Contenedor principal */
.contenedor-reparaciones {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Título */
.contenedor-reparaciones h1 {
    text-align: center;
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
}

.reparaciones__acciones-superiores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.reparaciones__acciones-superiores .boton-crear,
.reparaciones__acciones-superiores .boton-presupuesto {
    margin: 0;
}

/* Botón crear reparación */
.contenedor-reparaciones h2 a {
    display: inline-block;
    text-decoration: none;
    background: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.contenedor-reparaciones h2 a:hover {
    background: #2980b9;
}

.boton-presupuesto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.boton-presupuesto:hover {
    background: linear-gradient(135deg, #0d5f59, #0f9d90);
    transform: translateY(-1px);
}

.reparaciones__busqueda {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.reparaciones__busqueda-label {
    margin: 0;
    color: #1f2937;
    font-size: 1rem;
    text-shadow: none;
}

.reparaciones__busqueda-input {
    width: auto;
    min-width: 280px;
    margin-bottom: 0;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.reparaciones__busqueda-input::placeholder {
    color: #6b7280;
}

.reparaciones__busqueda-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

/* Tabla de reparaciones */
.tabla-reparaciones {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgb(26, 25, 25);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tabla-reparaciones-scroll {
    max-height: 65vh;
    overflow: auto;
    margin-top: 20px;
    border-radius: 10px;
}

.tabla-reparaciones thead {
    background: #2c3e50;
    color: white;
}

.tabla-reparaciones th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.tabla-reparaciones th, 
.tabla-reparaciones td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.tabla-reparaciones tbody tr:hover {
    background: #a8d1e6;
}

/* Botón Ver */
.boton-ver {
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.boton-ver:hover {
    background: #219150;
}

/* Paginación */
.pagination {
    text-align: center;
    margin-top: 20px;
}

/* Botón Volver */
.boton-volver {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 20px auto;
    text-align: center;
    background: #e74c3c;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.boton-volver:hover {
    background: #c0392b;
}














/* vista ver reparaciones */
/* Contenedor principal */
.contenedor-detalle-reparacion {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Título */
.contenedor-detalle-reparacion h1 {
    text-align: center;
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Detalles de la reparación */
.contenedor-detalle-reparacion ul {
    list-style-type: none;
    padding: 0;
    font-size: 1.1rem;
}

.contenedor-detalle-reparacion ul li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Botón modificar */
.boton-modificar, .boton-eliminar, .boton-volver {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
    transition: 0.3s;
    width: 200px;
    text-align: center;
}

.boton-modificar:hover, .boton-eliminar:hover, .boton-volver:hover {
    background-color: #2980b9;
}

/* Botón eliminar (color rojo) */
.boton-eliminar {
    background-color: #e74c3c;
}

.boton-eliminar:hover {
    background-color: #c0392b;
}

/* Botón volver (color verde) */
.boton-volver {
    background-color: #2ecc71;
}

.boton-volver:hover {
    background-color: #27ae60;
}

/* Alineación de botones en fila */
.botones-alineados {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}


















/* vista editar reparaciones */
/* Estilos para el formulario */
.formulario-reparacion {
    width: 50%;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos para la tabla dentro del formulario */
.formulario-reparacion table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.formulario-reparacion td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

/* Labels en negro */
.formulario-reparacion label {
    font-weight: bold;
    color: #000;
}

/* Inputs */
.formulario-reparacion input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: blue !important; 
}

/* Select de repuestos */
.formulario-reparacion select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    background-color: #fff;
}

/* Botones */
.boton-accion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #007BFF;
    color: white;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.boton-accion:hover {
    background-color: #0056b3;
}

.boton-accion i {
    font-size: 16px;
}














/* vista automoviles */
/* Contenedor general */
.contenedor-automoviles {
    width: 80%;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Estilos para la lista */
.lista-automoviles {
    list-style: none;
    padding: 0;
}

.lista-automoviles li {
    margin: 10px 0;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

/* Enlaces de los automóviles */
.lista-automoviles a {
    text-decoration: none;
    color: #cbcbcb;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s ease;
}

.lista-automoviles a:hover {
    color: #0056b3;
}

/* Botón "Volver al Inicio" */
.boton-volver {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    font-size: 16px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.boton-volver:hover {
    background-color: #0056b3;
}














/* vista automoviles */
/* Contenedor General */
.contenedor-automoviles {
    width: 80%;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Títulos */
.contenedor-automoviles h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
}

.contenedor-automoviles h2 a {
    display: inline-block;
    padding: 10px 15px;
    font-size: 18px;
    color: rgb(237, 234, 234);
    background-color: #007BFF;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.contenedor-automoviles h2 a:hover {
    background-color: #0056b3;
}

/* Tabla de Automóviles */
.automoviles__busqueda {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.automoviles__busqueda-label {
    margin: 0;
    color: #1f2937;
    font-size: 1rem;
    text-shadow: none;
}

.automoviles__busqueda-input {
    width: auto;
    min-width: 280px;
    margin-bottom: 0;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.automoviles__busqueda-input::placeholder {
    color: #6b7280;
}

.automoviles__busqueda-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.tabla-automoviles {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabla-automoviles-scroll {
    max-height: 65vh;
    overflow: auto;
    margin-top: 20px;
    border-radius: 12px;
}

.tabla-automoviles th, .tabla-automoviles td {
    border: 1px solid #fefefe;
    padding: 12px;
    text-align: center;
}

.tabla-automoviles th {
    background-color: #007BFF;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

.tabla-automoviles tr:nth-child(even) {
    background-color: #333;
}

/* Botón "Ver" */
.boton-ver {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #28a745;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease;
}

.boton-ver i {
    margin-left: 5px;
}

.boton-ver:hover {
    background-color: #218838;
}

/* Botón "Volver al Inicio" */
.boton-volver {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 12px;
    background-color: #dc3545;
    color: white;
    font-size: 16px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.boton-volver:hover {
    background-color: #c82333;
}


















/* vista ver automoviles */
/* Contenedor principal */
.contenedor-detalle-automovil {
    width: 60%;
    margin: auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Tabla de detalles */
.tabla-detalle {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.tabla-detalle th, .tabla-detalle td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.tabla-detalle th {
    background-color: #007bff;
    color: white;
}

/* Botones de acción */
.botones-accion {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.boton {
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
    text-align: center;
}

/* Estilos individuales de los botones */
.boton-modificar {
    background-color: #28a745;
    color: white;
}

.boton-modificar:hover {
    background-color: #218838;
}

/* Estilo específico para botones dentro de formularios */
.boton-eliminar {
    background-color: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

/* Aplicar hover correctamente */
.boton-eliminar:hover {
    background-color: #c82333;
    transform: scale(1.05); /* Efecto de ligera ampliación */
}

/* Para asegurarse de que el botón no tenga bordes no deseados */
.boton-eliminar:focus {
    outline: none;
}

.boton-volver {
    background-color: #6c757d;
    color: white;
}

.boton-volver:hover {
    background-color: #5a6268;
}










/*vista editar automoviles*/
/* Estilos del formulario */
.formulario {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Cada campo del formulario */
.campo {
    margin-bottom: 15px;
}

.campo label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: black;
}

/* Estilo de los inputs */
.campo input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: blue !important;
}

/* Mensaje de error */
.error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Botón Modificar */
.boton-modificar {
    width: 100%;
    background: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Efecto hover en el botón */
.boton-modificar:hover {
    background: #0056b3;
    transform: scale(1.05);
}











/*vista clientes*/
/* Encapsula todos los estilos dentro de .clientes */
.clientes {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Título */
.clientes__titulo {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Botón de crear cliente */
.clientes__boton {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.clientes__boton:hover {
    background: #218838;
    transform: scale(1.05);
}

/* Tabla de clientes */
.clientes__tabla table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.clientes__tabla {
    max-height: 65vh;
    overflow: auto;
    margin-top: 20px;
    border-radius: 10px;
}

.clientes__tabla th, .clientes__tabla td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.clientes__tabla th {
    background: #007bff;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Botón de ver cliente */
.clientes__boton-ver {
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease, transform 0.2s ease;
}

.clientes__boton-ver:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.clientes__acciones {
    min-width: 240px;
}

.clientes__acciones .clientes__boton-ver,
.clientes__acciones .clientes__boton-accion {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    box-sizing: border-box;
    font-weight: 700;
}

.clientes__acciones .clientes__boton-ver:last-child,
.clientes__acciones .clientes__boton-accion:last-child {
    margin-bottom: 0;
}

.clientes__boton-accion {
    border: none;
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.clientes__boton-accion--editar {
    background: #16a34a;
}

.clientes__boton-accion--editar:hover {
    background: #15803d;
    transform: scale(1.03);
}

.clientes__form-accion {
    margin: 0;
    width: 100%;
}

.clientes__boton-accion--eliminar {
    width: 100%;
    background: #dc2626;
}

.clientes__boton-accion--eliminar:hover {
    background: #b91c1c;
    transform: scale(1.03);
}

/* Botón de volver */
.clientes__boton-volver {
    display: inline-block;
    margin-top: 20px;
    background: #dc3545;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.clientes__boton-volver:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Paginación */
.clientes__paginacion {
    margin-top: 20px;
}















/*vista ver clientes*/

/* Contenedor de acciones */
.verclientes__acciones {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Botones generales */
.verclientes__boton {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

/* Botón Modificar */
.verclientes__boton.editar {
    background: linear-gradient(135deg, #28a745, #218838);
}

.verclientes__boton.editar:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: scale(1.08);
}

/* Botón Eliminar */
.verclientes__boton.eliminar {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.verclientes__boton.eliminar:hover {
    background: linear-gradient(135deg, #c82333, #b21f2d);
    transform: scale(1.08);
}

/* Botón Volver */
.verclientes__boton.volver {
    display: inline-flex;
    margin-top: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.verclientes__boton.volver:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: scale(1.08);
}

/* Iconos */
.verclientes__boton i {
    font-size: 18px;
}
















/*vista crear clientes*/

/* Contenedor principal */
.crearclientes {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Título */
.crearclientes__titulo {
    font-size: 24px;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 20px;
}

/* Formulario */
.crearclientes__formulario {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Etiquetas */
.crearclientes__label {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    text-align: left;
    color: #495057;
}

/* Campos de entrada */
.crearclientes__input {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.crearclientes__input:focus {
    border-color: #007bff;
    outline: none;
}

/* Errores */
.crearclientes__error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 4px;
}

/* Botones */
.crearclientes__acciones {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.crearclientes__boton {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

/* Botón Enviar */
.crearclientes__boton.enviar {
    background: linear-gradient(135deg, #28a745, #218838);
}

.crearclientes__boton.enviar:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: scale(1.08);
}

/* Botón Volver */
.crearclientes__boton.volver {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.crearclientes__boton.volver:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: scale(1.08);
}

/* Iconos */
.crearclientes__boton i {
    font-size: 18px;
}
















/*vista editar clientes*/
/* Contenedor principal */
.editarclientes {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Título */
.editarclientes__titulo {
    font-size: 24px;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 20px;
}

/* Formulario */
.editarclientes__formulario {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Etiquetas */
.editarclientes__label {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    text-align: left;
    color: #495057;
}

/* Campos de entrada */
.editarclientes__input {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    color: blue !important; /* fuerza que el texto sea azul */
    background-color: white; /* opcional, por si el fondo es oscuro */
}

.editarclientes__input:focus {
    border-color: #007bff;
    outline: none;
}

/* Deshabilitar el campo ID */
.editarclientes__input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Errores */
.editarclientes__error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 4px;
}

/* Botones */
.editarclientes__acciones {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.editarclientes__boton {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

/* Botón Modificar */
.editarclientes__boton.modificar {
    background: linear-gradient(135deg, #ffc107, #d39e00);
}

.editarclientes__boton.modificar:hover {
    background: linear-gradient(135deg, #d39e00, #b38600);
    transform: scale(1.08);
}

/* Botón Volver */
.editarclientes__boton.volver {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.editarclientes__boton.volver:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: scale(1.08);
}

/* Iconos */
.editarclientes__boton i {
    font-size: 18px;
}

/* vista detalle cliente moderna */
.verclientes {
    position: relative;
    padding: 32px 16px 48px;
}

.verclientes::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.58));
    pointer-events: none;
    z-index: 0;
}

.verclientes__panel {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.992), rgba(247, 250, 252, 0.988));
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.verclientes__encabezado {
    margin-bottom: 28px;
    padding: 0 4px;
}

.verclientes__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.verclientes__titulo {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.verclientes__descripcion {
    margin: 0;
    max-width: 720px;
    color: #334155;
    line-height: 1.7;
    font-size: 1rem;
}

.verclientes__seccion {
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f9fbfd);
    border: 1px solid #dbe4ee;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.verclientes__seccion-head {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.verclientes__seccion-head h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.verclientes__seccion-head p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.verclientes__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.verclientes__dato {
    padding: 18px 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #d7dee7;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.verclientes__dato strong {
    color: #111827;
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.55;
}

.verclientes__dato--amplio {
    grid-column: 1 / -1;
}

.verclientes__label {
    color: #374151;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.verclientes__tabla-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #d7e3f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.verclientes__tabla {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.verclientes__tabla th,
.verclientes__tabla td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.verclientes__tabla th {
    background: linear-gradient(180deg, #dbeafe, #eff6ff);
    color: #1e40af;
    font-weight: 700;
}

.verclientes__tabla tbody tr:nth-child(even) {
    background: #f8fafc;
}

.verclientes__tabla tbody tr:hover {
    background: #eef6ff;
}

.verclientes__vacio {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff, #f1f5f9);
    color: #334155;
    border: 1px dashed #94a3b8;
}

.verclientes__alerta {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(187, 247, 208, 0.95));
    border: 1px solid #86efac;
    color: #166534;
    font-weight: 700;
}

.verclientes__resumen-comprobantes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.verclientes__tabla-comprobantes th,
.verclientes__tabla-comprobantes td {
    vertical-align: middle;
    white-space: nowrap;
}

.verclientes__estado-pago {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.verclientes__estado-pago--pagada {
    background: #dcfce7;
    color: #166534;
}

.verclientes__estado-pago--parcial {
    background: #fef3c7;
    color: #92400e;
}

.verclientes__estado-pago--adeudada {
    background: #fee2e2;
    color: #991b1b;
}

.verclientes__pago-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.verclientes__pago-form input {
    width: 120px;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
}

.verclientes__pago-form button,
.verclientes__accion-tabla {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.verclientes__acciones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
    align-items: stretch;
}

.verclientes__acciones form {
    margin: 0;
    width: 100%;
}

.verclientes__boton {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.verclientes__boton:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.verclientes__boton.editar {
    background: linear-gradient(135deg, #059669, #10b981);
}

.verclientes__boton.eliminar {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.verclientes__boton.volver {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.verclientes__boton i {
    font-size: 1rem;
}

.verclientes__acciones > a,
.verclientes__acciones > form {
    width: 100%;
}

.verclientes__acciones .verclientes__boton,
.verclientes__acciones .verclientes__boton.volver,
.verclientes__acciones form .verclientes__boton {
    width: 100%;
    min-height: 54px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .verclientes__panel {
        padding: 22px 18px;
        border-radius: 18px;
    }

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

    .verclientes__resumen-comprobantes {
        grid-template-columns: 1fr;
    }

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

    .verclientes__boton,
    .verclientes__acciones form {
        width: 100%;
    }
}

/* ajustes vista automoviles */
.tabla-automoviles-scroll {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
}

.tabla-automoviles__celda-acciones {
    min-width: 180px;
    vertical-align: middle;
}

.tabla-automoviles__celda-acciones .boton-ver,
.tabla-automoviles__celda-acciones .boton-editar,
.tabla-automoviles__celda-acciones .boton-eliminar {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.tabla-automoviles__celda-acciones .boton-editar {
    background: #2563eb;
    color: #ffffff;
}

.tabla-automoviles__celda-acciones .boton-editar:hover {
    background: #1d4ed8;
}

.tabla-automoviles__form {
    margin: 0;
    width: 100%;
}

.tabla-automoviles__celda-acciones {
    padding: 12px;
}

.tabla-automoviles__celda-acciones > .boton-ver,
.tabla-automoviles__celda-acciones > .boton-editar,
.tabla-automoviles__celda-acciones > .tabla-automoviles__form {
    margin-bottom: 8px;
}

.tabla-automoviles__celda-acciones > .tabla-automoviles__form:last-child,
.tabla-automoviles__celda-acciones > .boton-editar:last-child,
.tabla-automoviles__celda-acciones > .boton-ver:last-child {
    margin-bottom: 0;
}

/* vista crear reparacion moderna */
.reparacion-crear {
    position: relative;
    padding: 32px 16px 48px;
}

.reparacion-crear::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.52));
    pointer-events: none;
    z-index: 0;
}

.reparacion-crear__panel {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.985), rgba(246, 248, 251, 0.98));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.reparacion-crear__encabezado {
    margin-bottom: 28px;
}

.reparacion-crear__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reparacion-crear__encabezado h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 2rem;
}

.reparacion-crear__encabezado p {
    margin: 0;
    color: #334155;
    font-size: 1rem;
    line-height: 1.6;
}

.reparacion-crear__form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.reparacion-crear__seccion {
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.reparacion-crear__seccion--resaltada {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.reparacion-crear__seccion-head {
    margin-bottom: 18px;
}

.reparacion-crear__seccion-head h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1.15rem;
}

.reparacion-crear__seccion-head p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.reparacion-crear__controles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem 1.2rem;
}

.reparacion-crear__control-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #f8fbff;
    color: #0f172a;
    cursor: pointer;
}

.reparacion-crear__control-check {
    margin-top: 0.2rem;
    accent-color: #0f766e;
}

.reparacion-crear__control-texto,
.reparacion-crear__control-texto strong {
    color: #0f172a;
}

.reparacion-crear__control-texto small {
    color: #64748b;
}

.reparacion-crear__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.reparacion-crear__campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reparacion-crear__campo label {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.reparacion-crear__campo input,
.reparacion-crear__campo select,
.reparacion-crear__campo textarea {
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.45;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.reparacion-crear__campo input::placeholder,
.reparacion-crear__campo textarea::placeholder {
    color: #64748b;
}

.reparacion-crear__campo textarea {
    min-height: 130px;
    resize: vertical;
}

.reparacion-crear__campo input:focus,
.reparacion-crear__campo select:focus,
.reparacion-crear__campo textarea:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
}

.reparacion-crear__bloque {
    padding: 22px;
    border-radius: 20px;
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.reparacion-crear__bloque-head {
    margin-bottom: 18px;
}

.reparacion-crear__bloque-head h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1.2rem;
}

.reparacion-crear__bloque-head p {
    margin: 0;
    color: #64748b;
}

.reparacion-crear__repuestos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.repuestos-ventas__scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.repuestos-ventas__scroll::-webkit-scrollbar {
    width: 10px;
}

.repuestos-ventas__scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.85);
    border-radius: 999px;
}

.repuestos-ventas__scroll::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.6);
    border-radius: 999px;
}

.compra-form__grid.repuestos-ventas__documento-grid {
    grid-template-columns: minmax(170px, 0.9fr) minmax(170px, 0.9fr) minmax(170px, 0.9fr);
    align-items: start;
}

.repuestos-ventas__cliente-field {
    position: relative;
}

.repuestos-ventas__cliente-field .repuestos-ventas__cliente-sugerencias {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    width: auto;
    margin-top: 0;
    box-sizing: border-box;
    z-index: 80;
    max-height: 240px;
}

.repuestos-ventas__scroll .reparacion-crear__repuesto-item {
    grid-template-columns: minmax(260px, 1fr) 120px 170px 170px;
    align-items: start;
}

.repuestos-ventas__scroll .reparacion-crear__campo-repuesto .reparacion-crear__repuesto-sugerencias {
    position: static;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
}

.reparacion-crear__repuesto-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(203, 213, 225, 0.9);
}

.reparacion-crear__repuesto-item--edicion {
    grid-template-columns: minmax(0, 1fr) 150px 190px;
}

.reparacion-crear__campo-repuesto {
    position: relative;
}

.reparacion-crear__repuesto-busqueda {
    padding-right: 42px;
}

.reparacion-crear__repuesto-sugerencias {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 8px;
    max-height: 260px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.reparacion-crear__repuesto-opcion {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #f8fbff;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.reparacion-crear__repuesto-opcion:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    transform: translateY(-1px);
}

.reparacion-crear__repuesto-opcion strong,
.reparacion-crear__repuesto-opcion span,
.reparacion-crear__repuesto-opcion small {
    display: block;
}

.reparacion-crear__repuesto-opcion span {
    margin-top: 4px;
    color: #1e293b;
}

.reparacion-crear__repuesto-opcion small {
    margin-top: 6px;
    color: #64748b;
}

.reparacion-crear__repuesto-ayuda {
    color: #64748b;
}

.reparacion-crear__repuesto-ayuda--error {
    color: #b91c1c;
    font-weight: 700;
}

.reparacion-crear__campo-cantidad input {
    text-align: center;
}

.reparacion-crear__acciones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.reparacion-crear__boton {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.reparacion-crear__boton:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
}

.reparacion-crear__boton-principal {
    background: linear-gradient(135deg, #0f766e, #0ea5a4);
    color: #ffffff;
}

.reparacion-crear__boton-secundario {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #ffffff;
}

.reparacion-crear__alerta {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(187, 247, 208, 0.95));
    border: 1px solid #86efac;
    color: #166534;
    font-weight: 700;
}

.reparacion-crear__errores {
    margin: 0 0 18px;
    padding: 16px 18px 16px 34px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(254, 226, 226, 0.96));
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.reparacion-crear__resumen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.reparacion-crear__dato {
    padding: 18px 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #d7dee7;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.reparacion-crear__dato--amplio {
    grid-column: 1 / -1;
}

.reparacion-crear__dato-label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.reparacion-crear__dato-valor {
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.55;
    font-weight: 600;
}

.reparacion-crear__totales {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.reparacion-crear__total-card {
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #dbe3ec;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.reparacion-crear__total-card strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reparacion-crear__total-card span {
    color: #0f766e;
    font-size: 1.6rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .reparacion-crear__panel {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .reparacion-crear__grid,
    .reparacion-crear__acciones,
    .reparacion-crear__repuesto-item,
    .reparacion-crear__resumen,
    .reparacion-crear__totales {
        grid-template-columns: 1fr;
    }
}

/* vista proveedores */
.proveedores-panel {
    position: relative;
    padding: 32px 16px 48px;
}

.proveedores-panel__card {
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.985), rgba(246, 248, 251, 0.98));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.proveedores-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.proveedores-panel__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proveedores-panel__title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.proveedores-panel__subtitle {
    margin: 0;
    max-width: 720px;
    color: #475569;
    line-height: 1.6;
}

.proveedores-panel__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.24);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.proveedores-panel__cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.proveedores-panel__table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid #d7e3f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.proveedores-panel__table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.proveedores-panel__table th,
.proveedores-panel__table td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.proveedores-panel__table th {
    background: linear-gradient(180deg, #dbeafe, #eff6ff);
    color: #1e40af;
    font-weight: 700;
}

.proveedores-panel__table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.proveedores-panel__table tbody tr:hover {
    background: #eef6ff;
}

.proveedores-panel__actions-cell {
    min-width: 220px;
}

.proveedores-panel__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.proveedores-panel__form {
    margin: 0;
}

.proveedores-panel__action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.proveedores-panel__action:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.proveedores-panel__action--edit {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.proveedores-panel__action--delete {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.proveedores-panel__empty {
    text-align: center;
    color: #64748b;
    padding: 24px;
}

@media (max-width: 768px) {
    .proveedores-panel__card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .proveedores-panel__header {
        flex-direction: column;
        align-items: stretch;
    }

    .proveedores-panel__cta {
        width: 100%;
    }

    .proveedores-panel__actions {
        flex-direction: column;
    }

    .proveedores-panel__action,
    .proveedores-panel__form {
        width: 100%;
    }
}

/* vista crear proveedor */
.proveedor-form {
    position: relative;
    padding: 32px 16px 48px;
}

.proveedor-form__card {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.985), rgba(246, 248, 251, 0.98));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.proveedor-form__header {
    margin-bottom: 26px;
}

.proveedor-form__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proveedor-form__title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.proveedor-form__subtitle {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.proveedor-form__errors {
    margin: 0 0 20px;
    padding: 16px 18px 16px 34px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(254, 226, 226, 0.96));
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.proveedor-form__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.proveedor-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.proveedor-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.proveedor-form__field--wide {
    grid-column: 1 / -1;
}

.proveedor-form__label {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.proveedor-form__input {
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.45;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.proveedor-form__input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
}

.proveedor-form__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.proveedor-form__button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.proveedor-form__button:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
}

.proveedor-form__button--primary {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #ffffff;
}

.proveedor-form__button--secondary {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #ffffff;
}

@media (max-width: 768px) {
    .proveedor-form__card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .proveedor-form__grid,
    .proveedor-form__actions {
        grid-template-columns: 1fr;
    }
}

/* vista cargar compra */
.compra-form {
    position: relative;
    padding: 32px 16px 48px;
}

.compra-form__card {
    max-width: 940px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.985), rgba(246, 248, 251, 0.98));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.compra-form__header {
    margin-bottom: 26px;
}

.compra-form__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.12);
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compra-form__title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.compra-form__subtitle {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.compra-form__alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.compra-form__alert--success {
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(187, 247, 208, 0.95));
    border: 1px solid #86efac;
    color: #166534;
}

.compra-form__errors {
    margin: 0 0 20px;
    padding: 16px 18px 16px 34px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(254, 226, 226, 0.96));
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.compra-form__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.compra-form__section {
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.compra-form__section--highlight {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.compra-form__section-head {
    margin-bottom: 18px;
}

.compra-form__section-head h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1.15rem;
}

.compra-form__section-head p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.compra-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.compra-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compra-form__field--wide {
    grid-column: 1 / -1;
}

.compra-form__field label {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.compra-form__field input,
.compra-form__field select {
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.45;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.compra-form__field input:focus,
.compra-form__field select:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
    transform: translateY(-1px);
}

.compra-form__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px !important;
    background-image:
        linear-gradient(45deg, transparent 50%, #3b82f6 50%),
        linear-gradient(135deg, #3b82f6 50%, transparent 50%);
    background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%;
    background-size: 10px 10px, 10px 10px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.compra-form__repuesto {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.compra-form__actions-inline {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.compra-form__footer {
    display: flex;
    justify-content: center;
}

.compra-form__button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.compra-form__button:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
}

.compra-form__button--primary {
    min-width: 240px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #ffffff;
}

.compra-form__button--secondary {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #ffffff;
}

.compra-form__status {
    font-weight: 700;
}

.compra-form__status--ok {
    color: #15803d;
}

.compra-form__status--error {
    color: #b91c1c;
}

@media (max-width: 768px) {
    .compra-form__card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .compra-form__grid,
    .compra-form__repuesto {
        grid-template-columns: 1fr;
    }

    .repuestos-ventas__documento-grid {
        grid-template-columns: 1fr;
    }

    .repuestos-ventas__scroll .reparacion-crear__repuesto-item {
        grid-template-columns: 1fr;
    }

    .compra-form__button--primary {
        width: 100%;
    }
}

/* legibilidad global de formularios */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select,
textarea {
    color: #111827;
    background-color: #ffffff;
    caret-color: #111827;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"])::placeholder,
textarea::placeholder {
    color: #6b7280;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):focus,
select:focus,
textarea:focus {
    color: #111827;
    background-color: #ffffff;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #111827;
    transition: background-color 9999s ease-in-out 0s;
}
