<!-- Modal de Edición de Vehículo -->
<div class="modal fade" id="editVehiculoModal" tabindex="-1" role="dialog" aria-labelledby="editVehiculoLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg modal-dialog-centered" role="document">
    <div class="modal-content shadow-lg border-0 rounded-3">
      <form action="../controller/update_vehiculo.php" method="POST">
        <div class="modal-header bg-primary text-white">
          <h5 class="modal-title" id="editVehiculoLabel"><i class="fa fa-edit"></i> Actualizar Vehículo</h5>
          <button type="button" class="close text-white" data-dismiss="modal" aria-label="Cerrar">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>

        <div class="modal-body">
          <input type="hidden" id="edit_id" name="id">

          <div class="row g-3">
            <div class="col-md-6">
              <label class="form-label">Tipo</label>
              <input type="text" id="edit_tipo" name="tipo" class="form-control" required>
            </div>
            <div class="col-md-6">
              <label class="form-label">Marca</label>
              <input type="text" id="edit_marca" name="marca" class="form-control" required>
            </div>
            <div class="col-md-6">
              <label class="form-label">Modelo</label>
              <input type="text" id="edit_modelo" name="modelo" class="form-control" required>
            </div>
            <div class="col-md-6">
              <label class="form-label">Placa</label>
              <input type="text" id="edit_placa" name="placa" class="form-control" required>
            </div>
            <div class="col-md-6">
              <label class="form-label">N° Serie</label>
              <input type="text" id="edit_nro_serie" name="nro_serie" class="form-control">
            </div>
            <div class="col-md-6">
              <label class="form-label">Año</label>
              <input type="number" id="edit_ano" name="ano" class="form-control">
            </div>
            <div class="col-md-6">
              <label class="form-label">Carga Máxima (kg)</label>
              <input type="number" id="edit_carga_maxima" name="carga_maxima" class="form-control">
            </div>
            <div class="col-md-6">
              <label class="form-label">Tipo Combustible</label>
              <input type="text" id="edit_tipo_combustible" name="tipo_combustible" class="form-control">
            </div>
            <div class="col-md-6">
              <label class="form-label">Tipo Aceite</label>
              <input type="text" id="edit_tipo_de_aceite" name="tipo_de_aceite" class="form-control">
            </div>
            <div class="col-md-6">
              <label class="form-label">Cantidad Aceite (L)</label>
              <input type="number" id="edit_cantidad_aceite" name="cantidad_aceite" class="form-control" step="0.1">
            </div>
          </div>
        </div>

        <div class="modal-footer">
          <button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Cancelar</button>
          <button type="submit" name="editar" class="btn btn-primary">Actualizar</button>
        </div>
      </form>
    </div>
  </div>
</div>
